I don't want white space included in my tree:

I use  parser.setIncludeIgnorableWhitespace(false);

but text nodes that can be considered "ignorable whitespace" still appear in
the dom tree.
What am I doing wrong.


DOMParser parser = new DOMParser();
        
        try
        {
            //parser.setFeature("http://xml.org/sax/features/validation";,
true);
            parser.setIncludeIgnorableWhitespace(false);
            parser.parse("gi.xml");
            
        }
        catch (java.io.IOException ioe)
        {
            System.out.println(ioe.toString());
        }

        catch (SAXNotRecognizedException snre)
        {
            snre.printStackTrace();
        }
        catch (SAXException saxe)
        {
            saxe.printStackTrace();
        }
        
        
        Document document = parser.getDocument();
       


TIA, Keith

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

Reply via email to