Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
m kota
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic