It's not a secret anymore!*
The moose likes XML and Related Technologies and the fly likes Not retriving any data xml response I tried with jaxb and sax, dom tryng read map to java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Not retriving any data xml response I tried with jaxb and sax, dom tryng read map to java " Watch "Not retriving any data xml response I tried with jaxb and sax, dom tryng read map to java " New topic
Author

Not retriving any data xml response I tried with jaxb and sax, dom tryng read map to java

m kota
Greenhorn

Joined: Oct 17, 2012
Posts: 1
multiple root nodes and nodes having <FIELD NAME="strShipmentNo" VALUE="A15082271" /> how do read and map to java please repsonse any urgent look below xml file

<DTDCREPLY>
<CONSIGNMENT>
<CNHEADER>
<CNTRACK>TRUE</CNTRACK>
<FIELD NAME="strShipmentNo" VALUE="A15082271" />
<FIELD NAME="strRefNo" VALUE="N/A" />
<FIELD NAME="strMode" VALUE="AIR" />
<FIELD NAME="strOrigin" VALUE="LEAK-PROOF ENGINEERING PVT.LTD, AHMEDABAD" />
<FIELD NAME="strOriginRemarks" VALUE="Received from" />
<FIELD NAME="strBookedOn" VALUE="08072009" />
<FIELD NAME="strPieces" VALUE="1" />
<FIELD NAME="strWeightUnit" VALUE="Kg" />
<FIELD NAME="strWeight" VALUE="0.020" />
<FIELD NAME="strDestination" VALUE="PUNE" />
<FIELD NAME="strStatus" VALUE="DELIVERY" />
<FIELD NAME="strStatusTransOn" VALUE="09072009" />
<FIELD NAME="strStatusTransTime" VALUE="1210" />
<FIELD NAME="strRemarks" VALUE="CO SEAL" />
<FIELD NAME="strNoOfAttempts" VALUE="" />
</CNHEADER>
<CNBODY>
<CNACTIONTRACK>TRUE</CNACTIONTRACK>
<CNACTION>
<FIELD NAME="strAction" VALUE="DISPATCHED" />
<FIELD NAME="strRemarks" VALUE="" />
</CNACTION>
<CNACTION>
<FIELD NAME="strAction" VALUE="RECEIVED" />
<FIELD NAME="strRemarks" VALUE="" />
</CNACTION>
<CNACTION>
<FIELD NAME="strAction" VALUE="DISPATCHED" />
<FIELD NAME="strRemarks" VALUE="" />
</CNACTION>
<CNACTION>
<FIELD NAME="strAction" VALUE="RECEIVED" />
<FIELD NAME="strRemarks" VALUE="" />
</CNACTION>
<CNACTION>
<FIELD NAME="strAction" VALUE="OUT FOR DELIVERY" />
<FIELD NAME="strRemarks" VALUE="" />
</CNACTION>
</CNBODY>
</CONSIGNMENT>
</DTDCREPLY>


 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Not retriving any data xml response I tried with jaxb and sax, dom tryng read map to java
 
Similar Threads
Problem with use Castor from Spring OXM.
How to change the database in Java EE
Castor unable to Map - please help
How to map arraylist containing a list of hashmaps using castor
XML Data Mapping