[jdom-interest] XMLOutputter.output() and xml:lang attribute
results in lang output
Laurent Bihanic
laurent.bihanic at atosorigin.com
Mon Dec 9 06:21:55 PST 2002
Rasmus Pedersen wrote:
> I think I might have a related question, and I can't (sorry) answer the first one.
>
> Can the first line in the XML output
> "<?xml version="1.0" encoding="UTF-8"?>"
> be avoided? I am using java.lang.String outputString(Document doc) of the XMLOutputter class.
> Thanks in advance, Rasmus
Try
XMLOutputter out = ...;
out.setOmitDeclaration(true);
Laurent
More information about the jdom-interest
mailing list