I think its a good idea to take an open source xml parser and use it to parse the xml. You can download one from: http://xerces.apache.org/xerces-j/ If you try to parse that on your own you will be dead. That site also has some basic usage examples. Hope this helps.
Joined: Feb 27, 2007
HI Nitesh Kant,
Firstly, Thank you for your reference link, but i think this is too difficult to understand.... Because i am just a beginner....
What you are trying to do is parsing an xml file. By parsing i mean that you run through the xml file peeping into elements and then making a decision based on the type of element you encounter. Now, if you try to do this on your own, you will be re-inventing the wheel as you are not the first person to do the same. For that we have readily available open source parsers. One of those is a xerces parser by apache. This parser implements dom and sax specifications of xml parsing. Its difficult to explain all this on a post, so i would suggest that you first understand the area of xml parsing before launching in to do what you want to.