[jdom-interest] Bug fix for XMLOutputter

Gary Thompson and Sarah Blenkin gary.and.sarah at ntlworld.com
Wed Jun 20 01:35:56 PDT 2001


Hi 
	The following methods seems to be missing from XmlOuputter

   /**
     * Return a string representing an entity. Warning: a String is
     * Unicode, which may not match the outputter's specified
     * encoding.
     *
     * @param doc <code>EntityRef</code> to format.
     **/
    public String outputString(EntityRef entity) {
        StringWriter out = new StringWriter();
        try {
            output(entity, out);  // output() flushes
        } catch (IOException e) { }
        return out.toString();
    }

Or am I missing something???

Regards
gary




More information about the jdom-interest mailing list