Forums Register Login

Xml Parsing Question

+Pie Number of slices to send: Send
Hi I need to parse the following line out of this xml:
<PostagePrice TotalAmount="10.85">

I am able to use the below code to parse out other tags, however i cant figure out how to get the numeric value out of that particular tag
Any help would be appreciated

thanks
john



+Pie Number of slices to send: Send

John,



Check getAttributes() method for the Node will lead you to the value.


+Pie Number of slices to send: Send
 

Balu Sadhasivam wrote:
John,



Check getAttributes() method for the Node will lead you to the value.




Thanks, that did the trick

Solution below

All of the following truths are shameless lies. But what about this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1293 times.
Similar Threads
An exception in java-XML --kindly clarify-urgent
help with web service to display xml file contents using netbeans
Extract full path when parsing XML
Display contents in GUI format
Writing XML element
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 07:27:42.