Find self and parent tag in XML document

KickFacer

New Member
I have a list of terms (string) which may or may not be present in a given XML document. I need to look for this string in the attribute values and if it is found, return its own tag and its parent's tag. How can I do this in Java?EDIT:I came across multiple ways using DOM Parser or SAX Parser or write one myself. I want to know the most efficient way to do it.
 
Back
Top