But I need to have a DOM tree, as I need to modify some text elements
after I read document from the file. SAX2 doesn't create DOM tree, does
it ?
Andy Clark schrieb:
>
> sadlion wrote:
> > parser.setIncludeIgnorableWhitespace (false) ;
>
> It's better to use the configuration methods available via
> SAX2. There is a feature defined for this. For example:
>
>
> parser.setFeature("http://apache.org/xml/features/dom/include-ignorable-whitespace",
> false);
>
> Check the Features and Properties in the documentation for
> more info.
>
> --
> Andy Clark * IBM, TRL - Japan * [EMAIL PROTECTED]