Re: Filtering whitespace outside of xml elements using LSParserFilter

2008-12-10 Thread Rob Davis-5
I think I have found a solution, using "element-content-whitespace" set to false. Based on my existing code derived from O'Reilly Java and XML edition 3, I set the "element-content-whitespace" parameter to false on the DOMConfiguration instance. The code fragment from a method below is used for p

Re: Filtering whitespace outside of xml elements using LSParserFilter

2008-12-09 Thread Michael Glavassevich
Hi Rob, Whitespace outside an element is inside of another one (except for whitespace outside of the root element). Whether this whitespace is "ignorable" depends on your application and/or whether you have a grammar which declares that the content of an element is only other elements. The "incl