Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

Read xml tags containing search term.

$
0
0

I have xml file and I want to read it as following rule

  1. Check for a string in xml file.
  2. Read the nearest tag with name <queryItem>...............</queryItem> that encloses the stringn in point 1.
  3. Return the name value of name tag <name locale="en">**This Name**</name>within queryItem tag.
  4. 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.readlineand 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?


Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>