Unfortunately this did not work but I have another solution - see other
thread:
http://www.nabble.com/Filtering-whitespace-outside-of-xml-elements-using-LSParserFilter-td20918689.html#a20933774

More detail:
When I tried normalizeDocument() I got an LSException with "Premature end of
file":

Document mydoc = methodToGetDocument();
// at this point we have a Document ready for use
mydoc.normalizeDocument(); 



Sometimes I didn't get the Exception but my original problem was not solved
- the whitespaces were still there.


-- 
View this message in context: 
http://www.nabble.com/How-to-compare-Documents--Existing-library-method-available--or-use-DOMTreeWalker--tp20856968p20933784.html
Sent from the Xerces - J - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to