This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
hi all, i have an xml file,which has the following content <?xml version="1.0"?> <?xml-stylesheet href="ConvertXSL.xsl" type="text/xsl"?> <movies xmlns="x-schema:Convert.xml" > <movie> <title>first title</title> </movie> </movies> i have written a code in servlet in which i parse this document using a DOMParser just to get the number of nodes present in the whole document and the value of each node. according to this i get 3 child nodes 1.#text 2.movie->has 3 child nodes->#text,title & #text 3.#text when i get the value of the element node i.e movie i get null ,fine but the problem is i need the value of title->i.e i need first title to be printed. i used the getNodeValue() method but i am not getting anything displayed.how do i do this. can anybody help me.