in API I saw node types defined as constants,but couldn't make out what are there values,where can I find values for them?And I need to know where I am wrong in my code?Coz I am thinking on this from long time ,.....everything looks straight forward.
This is a common mistake. The value you want is in the child node of <COLUMN> <COLUMN> is an Element node - the nodeValue() of an Element node is always null - the Element has a single child node of type Node.TEXT_NODE There is an excellent table in the org.w3c.dom.Node JavaDocs that summarizes all of the node types. SO - String val = node1.getFirstChild().getNodeValue() ; You might want to .trim() the resulting String since it will start with crlf and end with crlf. Bill
Joined: Jun 20, 2002
Thank you william.I figured it out and got the solution.I knew I was doing some silly mistake.Thanks for the info.