A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Languages
»
Groovy
Author
Help me how to parse XML in Groovy
Suman Alapati
Greenhorn
Joined: Apr 11, 2012
Posts: 2
posted
Apr 11, 2012 05:59:59
0
Hi All,
Please help to retrieve : offerId and offerName Name Values which are 803 and VContract in Groovy xml Parsing
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <ns2:getAvailableProductOfferingsResponse xmlns:ns2="http://org/in/treetech/bss/ProductAvailability/ProductSearch"> <ns2:eligibleOfferings> <ns2:productOffering> <ns2:offerId>803</ns2:offerId> <ns2:offerName>VContract</ns2:offerName> </ns2:productOffering> </ns2:eligibleOfferings> </ns2:getAvailableProductOfferingsResponse> </soapenv:Body> </soapenv:Envelope>
Thanks in Advance,
Suman alapati.
Suman Alapati
Greenhorn
Joined: Apr 11, 2012
Posts: 2
posted
Apr 11, 2012 22:32:02
0
Hi All,
Can some one please help me on this issue
Thanks in Advance,
Suman Alapati.
chris webster
Bartender
Joined: Mar 01, 2009
Posts: 1103
7
I like...
posted
Apr 12, 2012 06:58:12
0
XML is one of the things Groovy is
really good
at. Try using
XmlSlurper
.
ex-Oracle bloke
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Help me how to parse XML in Groovy
Similar Threads
Error : Axis Engine Cudn't find the target
need to add namespace ns2: in the all webservices response tags.
Web service client - XML to Object problem
Not able to invoke webservice
Problem with Namespace Prefixes with Axis1 but not Axis2
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter