Greetings Malroby. I guess we won't be able to help you much on this, since most of us (or maybe all of us) use the .net framework. Anyway, I would say that with ANY xml class that can read/write/create/destroy an xml will allow you to iterate over the xml and find for the nodes/attributes to reach the values you want.
Try a better find on google, something like: java sax iterate xml nodes or: java sax get child nodes Good luck! On Thu, Oct 22, 2009 at 7:35 AM, [email protected] <[email protected]>wrote: > > Hello all, > I'm trying to read the contents of an XML file from my Java program. > For Example here is CV.xml > ======================================================== > <?xml version="1.0" encoding="UTF-8"?> > > <CV> > > <name> > <First>Marwa</First> > <middle>F</middle> > <last>ALRoby</last> > </name> > > > <Address> > <street>A....</street> > <city>K......</city> > <country>P....... </country> > <email>[email protected]</email> > </Address> > > > <references> > > <reference> > <name>carolinal</name> > <job>Doctor</job> > <title> </title> > <Address> > <street>.........</street> > <city>Londand</city> > <country>......... </country> > <email>[email protected]</email> > </Address> > </reference> > </references> > > > <college>Faculty of Information Technology</college> > <department>IT general</department> > <level> Level I </level> > <interest>Data mining and AI</interest> > > </CV> > ========================================================= > I want to extract info from the tags and after some parsing, display > > > As you can see, I dont want anything fancy, just some ability to > specify a file and some specific tags that > I'm interested in and be able to extract info b/w those tags. > > 1) Is this possible with SAX, I dont see examples dealing with > "specify tags and get info." > 2) I maynot be in a position to install the sax jars, are there any > easy ways to do this without SAX? > > Thanks, > malroby > -- Atenciosamente, Paulo Roberto S. Pellucci
