I know how to get XML Value by Tag in QTP but I need reverse of this
I need to know the name for a specific value
this is my XML file, I want to get Name for the value -> server03
(as answer is ServerMIMIC in this example)
I look serious because I am serious.
How about putting the entire XML into a string. Then do an instr to find out the location. Then look for the previous > and < characters. It would be in the middle of them. I don't know of a way to do this with XML.
Read up on xPath. You can use xPath to find server03 and get the value of the previous sibling. If you were going to play around with strings you'd be better using regex rather in instr.