I have xml file and I want to read it as following rule
- Check for a string in xml file.
- Read the nearest tag with name
<queryItem>...............</queryItem>
that encloses the stringn in point 1. - Return the name value of name tag
<name locale="en">**This Name**</name>
within queryItem tag. - Read the nearest tag with name
<querySubject>...............</querySubject>
that encloses the string in point 1. and return its name value as point 3.
I have already tried a lot by reading line(vbscript) Line
= contents.readline
and getting queryItem and querySubject tags from line. But as the Line returned contains many other queryItems and querySubjects so My readline fails to get me to the exact tags containing string.
Any suggestion to implement this logic?