Page 1 of 1

Extracting data from XML

Posted: Tue Sep 21, 2010 10:43 am
by jayam_jp22
Hi Ranorex Users,

I'm new to Ranorex tool. I have a problem with me which requires your help!.

I have an XML file which as arround 300 tags and the corresponding values in it. I need to extract them from the xml file and compare it with the application. Please let me know how to proceed with the problem and if Ranorex has ability to read xml file which has data in Parent & child structure?

Thanks for your valuable time. :D

Regards,
Jayaprakash R

Re: Extracting data from XML

Posted: Tue Sep 21, 2010 12:00 pm
by Support Team
Hi,

One of the big advantages of Ranorex is, you have fully access to the .Net Framework. Just write your own XML Reader and use the validate method of Ranorex to check if each element in the XML, is also available in your software. Please take a look to following link http://support.microsoft.com/kb/307548

Regards,
Peter
Ranorex Team

Re: Extracting data from XML

Posted: Wed Sep 22, 2010 3:03 pm
by atom
Have a read of LINQ to xml...
Or if your using VB.Net look up the xml axis operators
Both are real time savers compared to XPath

Cheers