日期:2014-05-18  浏览次数:20829 次

急救:XML 文档(2, 2)中有错误。
XML 文档(2, 2)中有错误。

如何理解这里的(2, 2)?
如何解决这个错误问题?


XML code

<?xml version="1.0"?>
<T_CTN_Container xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ContainerCTN>00000000-0000-0000-0000-000000000000</ContainerCTN>
  <VoyageDetail>00000000-0000-0000-0000-000000000000</VoyageDetail>
  <Voyage>00000000-0000-0000-0000-000000000000</Voyage>
  <Vessel>00000000-0000-0000-0000-000000000000</Vessel>
  <Organize>00000000-0000-0000-0000-000000000000</Organize>
  <Sequence>0</Sequence>
  <ContainerNO />
  <SealNO />
  <SizeCTN />
  <TypeCTN />
  <Status />
  <CarryType />
  <Weight>0</Weight>
  <NetWeight>0</NetWeight>
  <CTNWeight>0</CTNWeight>
  <TallyMaster>00000000-0000-0000-0000-000000000000</TallyMaster>
  <TallyClerk>00000000-0000-0000-0000-000000000000</TallyClerk>
  <TallyTime>1900-01-01T00:00:00</TallyTime>
  <ReeferSign>false</ReeferSign>
  <TemperatureSetting />
  <DangerSign>false</DangerSign>
  <DangerClass />
  <OverLack>0</OverLack>
  <DamageSign>false</DamageSign>
  <RestowageSign>false</RestowageSign>
  <Holiday>0</Holiday>
  <Labour>0</Labour>
  <TallyType>0</TallyType>
  <LoadPort />
  <DischargePort />
  <OrderPort />
  <ContainerSort>0</ContainerSort>
  <BayCodePrepare />
  <BayCodeTally />
  <IsUpLoad>false</IsUpLoad>
  <TruckNo />
  <Trade>0</Trade>
  <StockType>0</StockType>
  <StockDescription />
  <Packages>0</Packages>
  <CustomCode />
  <AgencyCode>AB</AgencyCode>
  <ManifestPackages>0</ManifestPackages>
  <WhereCondition> Vessel = '07f476a6-6edd-40b6-8e1b-95ed4e381cf4' And Voyage = 'a476561a-c250-472d-8275-d17098c91f68' And VoyageDetail = 'd20ef27f-e213-4c7d-8f99-9f2c85c8491d' And Organize = '6d809ca9-fe49-443c-b120-0809742ef069'</WhereCondition>
  <OrderByExpression />
  <OldVoyageDetail>00000000-0000-0000-0000-000000000000</OldVoyageDetail>
  <OldVoyage>00000000-0000-0000-0000-000000000000</OldVoyage>
  <OldVessel>00000000-0000-0000-0000-000000000000</OldVessel>
  <OldOrganize>00000000-0000-0000-0000-000000000000</OldOrganize>
  <TotalRowCount>0</TotalRowCount>
  <IsMainCell>false</IsMainCell>
  <FillStatus>0</FillStatus>
</T_CTN_Container>





------解决方案--------------------
http://topic.csdn.net/u/20090116/09/6703d9cb-e0a5-4d6e-9630-3367ba8cc441.html
------解决方案--------------------
原则上应该不是XML的问题, 这段XML可以正常解析.
检查一下代码.
------解决方案--------------------
没问题啊,IE可以载入,估计代码有问题。
------解决方案--------------------
字符编码格式是否正确,设置一下encoding试一试,有时候因为编码格式不一致会导至出错
------解决方案--------------------
改成这样
HTML code

<?xml version="1.0" encoding="utf-8" ?> 
<T_CTN_Container>
......
</T_CTN_Container>

------解决方案--------------------
IE可以载入
------解决方案--------------------
在IE下直接浏览这个xml,IE会告诉你哪儿出错了
------解决方案--------------------