Hi

I have an application in java which implements TreeWalker interface. This
uses DOM parser to parse an XML document and then creates a DOM Tree using
the createTreeWalker method of DocumenTraversal interface.

My problem is that I am unable to retrieve the value of the TEXT_NODE which
are the child nodes of the ELEMENT_NODES.
I would be grateful, if any of can help me out geting the value, as I get
whitespaces when I do getNodeValue() for the TEXT_NODE encountered and that
too there exists many such nodes in-between an ELEMENT_NODE.

Also, tell me, how to use the method setIgnorableWhitespace(int x) of
DOMParser. What should we pass in place of 'x' , so that it suffices our
requirement?

I am attaching my code snippet below:

(See attached file: test.xml)(See attached file: myTreeSample.txt)

In the 'test.xml', reference is made to the schema file 'test.xsd'. Plz.
ignore that for now.

Awaiting +ve response ASAP.


Thanks & Regards,

R.Lakshmi



test.xml

Text - character set unknown

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

Reply via email to