11-21-2012 12:06 PM - edited 11-21-2012 12:07 PM
Hi All,
I have a xml file, which have tags like, code,rev_num,type...volunteer.I want to parse the xml and save the all data(code,rev_num...) of the tag <type>unknown </type>in a text file. I tried to use a Match node vi but I not geting the output i need.attach is my attempt , can anyone suggest me or help me out.(Sorry Cant attach the xml hence i saved it as an text file.)
Thanks,
Ankit G
Solved! Go to Solution.
11-21-2012 02:08 PM
Do you want to extract all the data with type='unknown'?
Then try the XPath like this:
resource[type='unknown']/code
11-21-2012 02:58 PM
@TailOfGon wrote:
Do you want to extract all the data with type='unknown'?
Then try the XPath like this:
resource[type='unknown']/code
Hi,
Yes I want to extract all the data of the type = "unknown", I tried Xpath resource[type='unknown']/code but it didnt work , I still getting all other data of different type .
Thanks,
Ankit G
11-21-2012 03:05 PM
You need to replace all instance of "resource" with "resource[type='unknown']". Did you do it?
11-21-2012 03:27 PM
@TailOfGon wrote:
You need to replace all instance of "resource" with "resource[type='unknown']". Did you do it?
Hi,
Thanks a lot changing all instance of "resource" with "resource[type='unknown'] did work.
Ankit G
11-21-2012 03:32 PM
Glad it worked!