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