A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
XML and Related Technologies
DOM Parser + XML read Data
Joined: Jan 05, 2009
Feb 13, 2009 05:07:33
I would like to read the value of CardData from sample above XML.
i am using the following code.
NodeList CardDataElemntList = element.getElementsByTagName("CardData"); Element CardDataElement = (Element) CardDataElemntList.item(0); NodeList CardData = CardDataElement.getChildNodes(); logger.info("CardData: " + CardData.item(0).getNodeValue());
But I am getting the value as 1234.
I would like to get the total value as 1234|1209. there is a special charector as | in data. How to get the toal value?
I am using DOM parser for that to fetch data from XML.
I agree. Here's the link:
subject: DOM Parser + XML read Data
Writing XML element
review this bit of XML extraction code is it efficient
To delete a sequence in an xml input
XML file Location
What is this XML information and how to get it?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014