how to get nodes from string xml as string again

R.U.S.H

New Member
I have XML as string, and this XML string have more than one node: For example 4 billingDetail node. How to parse string and get 4 nodes as string out again?i am using JAVA. I try with marshall it and then unmarshall it but is slow and not working correctlyExample:\[code\]<?xml version="1.0" encoding="UTF_8" standalone="yes"?><StoreMessage xmlns="http://www.infonova.com/feed"> <billingDetail> <billingDetailId>987</billingDetailId> <contextId>0</contextId> <userId> <pan>F0F8DJH348DJ</pan> <contractSerialNumber>46446</contractSerialNumber> </userId> <declaredVehicleClass>A</declaredVehicleClass> </billingDetail> <billingDetail> <billingDetailId>987</billingDetailId> <contextId>0</contextId> <userId> <pan>F0F8DJH348DJ</pan> <contractSerialNumber>46446</contractSerialNumber> </userId> <declaredVehicleClass>A</declaredVehicleClass> </billingDetail> <billingDetail> <billingDetailId>987</billingDetailId> <contextId>0</contextId> <userId> <pan>F0F8DJH348DJ</pan> <contractSerialNumber>46446</contractSerialNumber> </userId> <declaredVehicleClass>A</declaredVehicleClass> </billingDetail> <billingDetail> <billingDetailId>987</billingDetailId> <contextId>0</contextId> <userId> <pan>F0F8DJH348DJ</pan> <contractSerialNumber>46446</contractSerialNumber> </userId> <declaredVehicleClass>A</declaredVehicleClass> </billingDetail></StoreMessage>\[/code\]
 
Back
Top