[jdom-interest] setIgnoringElementContentWhitespace inoperant
jhunter at xquery.com
Wed Dec 8 15:37:51 PST 2004
Not all whitespace is ignorable. Ignorability comes from the DTD where
the parser knows certain sections are element only so the whitespace
Now, if you output from JDOM with a compact format then JDOM will strip
the whitespace for you.
Eric VERGNAUD wrote:
> I'm using jdom 1.0. I have the following code:
> public static Document ReadDocument(File inFile)
> throws JDOMException, IOException
> SAXBuilder sax = new SAXBuilder();
> return sax.build(inFile);
> I use this code to parse a document that has been serialized in pretty
> format. There are plenty of 0x0D 0x0A and 0x20 between the elements.
> I was hoping sax.setIgnoringElementContentWhitespace would clean that up,
> but it's not.
> Am I missing something ?
> To control your jdom-interest membership:
More information about the jdom-interest