trenjith
15 years agoNew Contributor
Parse XML
Hi all,
I am very new to SOAPUI & Groovy.
I am using XmlParser to parse xml file.My requirement is like following.
Suppose, if user wants to get (language_place & language_name from the following xml), he has to give the path 'address.area.language.language_place&address.area.language.language_place' in an excel file. Groovy will read that excel and will return the strings PLACE 1& LANGUAGE 1.
<addresses>
<address id="5207">
<address_type>Business</address_type>
<area id="1">
<area_name>SOUTH</area_name>
<language id="1">
<language_place>PLACE 1</language_place>
<language_name>LANGUAGE 1</language_name>
</language>
How to do this. Please help.
Thanks.
I am very new to SOAPUI & Groovy.
I am using XmlParser to parse xml file.My requirement is like following.
Suppose, if user wants to get (language_place & language_name from the following xml), he has to give the path 'address.area.language.language_place&address.area.language.language_place' in an excel file. Groovy will read that excel and will return the strings PLACE 1& LANGUAGE 1.
<addresses>
<address id="5207">
<address_type>Business</address_type>
<area id="1">
<area_name>SOUTH</area_name>
<language id="1">
<language_place>PLACE 1</language_place>
<language_name>LANGUAGE 1</language_name>
</language>
How to do this. Please help.
Thanks.