Hi All,
I am pasring an XML file using dom.
Here is my code snippet
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
factory.setIgnoringComments(true);
factory.setIgnoringElementContentWhitespace(true);
factory.setExpandEntityReferences(false);
factory.setCoalescing(true);
factory.setValidating(false);
Document document = builder.parse( inStream );
vecData = new Vector(1, 1);
Element rootElement = document.getDocumentElement();
rootElement.normalize();
I have used getNodeValue() to retrieve node's value.
The text i am getting without the text after &..
like if i have node value as
http://imypage.ashx?imageurl=http%3a...128&height=128
Can any one help me in this.
Thanks & Regards,
Sachin