posted 14 years ago
Hi I am using sax parser to parse an xml file in java.Here is the xml file
sample.xml
I parsed the code and i could get all its element name and its attribute values.But I am interested in getting the details of the Mol and Name tags.Here is the code that I am using it do it.
But what i actually want is when the tag name is mol i want its type alone.
then if the type is "compound" then i want only the attributes long_name="EzGeny" and value="2241" and dont want the rest.
How do i got about doing this,any suggestions please