解析xml消息时Xml格式错误

时间:2014-10-08 08:31:50

标签: xml xml-parsing xml-validation

任何人都可以建议我这个错误我在我的控制台中使用documentbuilderfactory &#34解析时出现跟随错误;根元素后面的文档中的标记必须格式正确。"

<?xml version="1.0" encoding="utf-8"?>
<message name="LANE_SELECTED" sentDateTime="2005-10-17T08:26:00.0000000-07:00">
<submitToTos>
    <!-- InGate 01 -->
    <pedestalName>IG01</pedestalName>
    <!-- smartGate Visit Number -->
    <transactionID>124</transactionID>
    <!-- Driver details, if obtained from the card -->
    <driverID>DL23434</driverID>
    <gatePass>2323</gatePass>
    <grossWeight>40230</grossWeight>
    <consoleID>C01</consoleID>
    <!-- Container captured through OCR -->
    <container>NYKU6052654</container>
    <!-- Chassis captured through OCR -->
    <chassis>APMZ234323</chassis>
  </submitToTos>
</message>

0 个答案:

没有答案