Register / Login
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
XML and Related Technologies
DOM Parser + XML read Data
posted 8 years ago
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.
Boost this thread!
XML file Location
review this bit of XML extraction code is it efficient
Writing XML element
What is this XML information and how to get it?
To delete a sequence in an xml input