I am retrieving XML from a servlet and parsing through it. the xml code is one large XML file but on through the servlet. I can parse through it easy and get my results but i am not sure when to stop it. I keep getting NullPointerException that kicks off when it reaches the end. I never know when its going to end because every file that i parse through is different in length.
I am using the DOM parser. Document messageDom = XMLParser.parse(srv.getXmlObject()); string name = messageDom.getElementsByTagName("name").item(n).getFirstChild().getNodeValue(); - n being a variable that is an integer value that increases after each loop Thanks -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.