你能告诉我错误在哪里吗? [英] Can you please tell me where the error is

查看:96
本文介绍了你能告诉我错误在哪里吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<OUTPUT>
<Email_Alert>
<Current_Date>
05/02/13
</Current_Date>
<Current_Time>
12:37:13
</Current_Time>
<Reservation_Type>
NEW Booking
</Reservation_Type>
<Shipment_ID>
0700046038
</Shipment_ID>
<Carrier_SCAC>
MAEU
</Carrier_SCAC>
<Transport_Mode>
FCL
</Transport_Mode>
<Requested_Pickup_Date>
05/22/2013
</Requested_Pickup_Date>
<Requested_Delivery_Date>
06/22/2013
</Requested_Delivery_Date>
<Y2>
<Container_Number>
1
</Container_Number>
<Service_Type>
Door to Port using Rail Container Pool
</Service_Type>
</Y2><References>

<Ref_Qual>CR</Ref_Qual>
<Ref_Value>0000035138</Ref_Value>
</References>
<N102_SH>Pringles Manufacturing Co</N102_SH>
<N301_SH>1306 HIGHWAY 70 BYP</N301_SH>
<N401_02_03_SH>Jackson,TN,38301-5072</N401_02_03_SH

><N404_SH>US</N404_SH>
<Account_Code>025857</Account_Code>
Name>Pringles Manufacturing Co</Name>
<N102_ST>I.C.B. S.A.</N102_ST>
<N301_ST>CAUPOLICAN 9401</N301_ST>
<N401_02_03_ST>SANTIAGO,,</N401_02_03_ST>
<N404_SH>CL</N404_SH>
<Account_Code_2>KSH4200027</Account_Code_2>
Place_of_Receipt>USMKL, JACKSON</Place_of_Receipt>
<Port_of_Loading>USCHS, PORT OF CHARLESTON</Port_of_Loading>
<Port_of_Discharge>CLSAI, PORT OF SAN ANTONIO (PUN</Port_of_Discharge>
<Dispatching_Pool>38301, NO</Dispatching_Pool>
<Line_Items>
<LX_01>1</LX_01>
<N7_02>0700046037</N7_02>
<L0_04_N7_03>8331.96</L0_04_N7_03>
<L0_11_N7_04>G</L0_11_N7_04>
<L0_06_N7_08>54.964</L0_06_N7_08>
<L0_07_N7_09>X</L0_07_N7_09>
<N7_03_17>8331.96 </N7_03_17>
<N7_08_09>54.964 X</N7_08_09>
<W09_01>SA</W09_01>
<W09_01_DESC>40’ High Cube Container</W09_01_DESC>
<W09_02_03_04_05>MIN   - MAX  </W09_02_03_04_05>
</Line_Items>
</Email_Alert>
</OUTPUT>

<OUTPUT>
<Email_Alert>
<Current_Date>05/02/13</Current_Date>
<Current_Time>12:37:14</Current_Time>
<Reservation_Type>NEW Booking</Reservation_Type>
<Shipment_ID>0700046048</Shipment_ID>
<Carrier_SCAC>MOLU</Carrier_SCAC>
<Transport_Mode>FCL</Transport_Mode>
<Requested_Pickup_Date>05/03/2013</Requested_Pickup_Date>
<Requested_Delivery_Date>06/09/2013</Requested_Delivery_Date>
<Y2>
<Container_Number>5</Container_Number>
<Service_Type>Door to Port using Rail Container Pool</Service_Type>
</Y2><References>
<Ref_Qual>CR</Ref_Qual>
<Ref_Value>0000006585</Ref_Value>
</References>
<References>
<Ref_Qual>CR</Ref_Qual>
<Ref_Value>0000006586</Ref_Value>
</References>
<References>
<Ref_Qual>CR</Ref_Qual>
<Ref_Value>0000006587</Ref_Value>
</References>
<References><Ref_Qual>CR</Ref_Qual><Ref_Value>0000006588</Ref_Value></References><References><Ref_Qual>CR</Ref_Qual><Ref_Value>0000006589</Ref_Value></References><N102_SH>Pringles Manufacturing Co</N102_SH><N301_SH>1306 HIGHWAY 70 BYP</N301_SH><N401_02_03_SH>Jackson,TN,38301-5072</N401_02_03_SH><N404_SH>US</N404_SH><Account_Code>025857</Account_Code><Name>Pringles Manufacturing Co</Name><N102_ST>Kellogg Asia Marketing Inc(Taiwan B</N102_ST><N301_ST>4F-1,No.314, Sec.1, Neihu Road,Neih</N301_ST><N401_02_03_ST>Taipei,,</N401_02_03_ST><N404_SH>TW</N404_SH><Account_Code_2>KSH650062</Account_Code_2><Place_of_Receipt>USMKL, JACKSON</Place_of_Receipt><Port_of_Loading>USLAX, PORT OF LOS ANGELES</Port_of_Loading><Port_of_Discharge>TWKEL, PORT OF KEELUNG</Port_of_Discharge><Dispatching_Pool>38301, NO</Dispatching_Pool><Line_Items><LX_01>1</LX_01><N7_02>0700046046</N7_02><L0_04_N7_03>7434.341</L0_04_N7_03><L0_11_N7_04>G</L0_11_N7_04><L0_06_N7_08>53.733</L0_06_N7_08><L0_07_N7_09>X</L0_07_N7_09><N7_03_17>7434.341 </N7_03_17><N7_08_09>53.733 X</N7_08_09><W09_01>SA</W09_01><W09_01_DESC>40’ High Cube Container</W09_01_DESC><W09_02_03_04_05>MIN   - MAX  </W09_02_03_04_05></Line_Items><Line_Items><LX_01>2</LX_01><N7_02>0700046045</N7_02><L0_04_N7_03>8345.61</L0_04_N7_03><L0_11_N7_04>G</L0_11_N7_04><L0_06_N7_08>54.886</L0_06_N7_08><L0_07_N7_09>X</L0_07_N7_09><N7_03_17>8345.61 </N7_03_17><N7_08_09>54.886 X</N7_08_09><W09_01>SA</W09_01><W09_01_DESC>40’ High Cube Container</W09_01_DESC><W09_02_03_04_05>MIN   - MAX  </W09_02_03_04_05></Line_Items><Line_Items><LX_01>3</LX_01><N7_02>0700046043</N7_02><L0_04_N7_03>7964.352</L0_04_N7_03><L0_11_N7_04>G</L0_11_N7_04><L0_06_N7_08>52.594</L0_06_N7_08><L0_07_N7_09>X</L0_07_N7_09><N7_03_17>7964.352 </N7_03_17><N7_08_09>52.594 X</N7_08_09><W09_01>SA</W09_01><W09_01_DESC>40’ High Cube Container</W09_01_DESC><W09_02_03_04_05>MIN   - MAX  </W09_02_03_04_05></Line_Items><Line_Items><LX_01>4</LX_01><N7_02>0700046044</N7_02><L0_04_N7_03>7964.352</L0_04_N7_03><L0_11_N7_04>G</L0_11_N7_04><L0_06_N7_08>52.594</L0_06_N7_08><L0_07_N7_09>X</L0_07_N7_09><N7_03_17>7964.352 </N7_03_17><N7_08_09>52.594 X</N7_08_09><W09_01>SA</W09_01><W09_01_DESC>40’ High Cube Container</W09_01_DESC><W09_02_03_04_05>MIN   - MAX  </W09_02_03_04_05></Line_Items><Line_Items><LX_01>5</LX_01><N7_02>0700046047</N7_02><L0_04_N7_03>8345.61</L0_04_N7_03><L0_11_N7_04>G</L0_11_N7_04><L0_06_N7_08>54.886</L0_06_N7_08><L0_07_N7_09>X</L0_07_N7_09><N7_03_17>8345.61 </N7_03_17><N7_08_09>54.886 X</N7_08_09><W09_01>SA</W09_01><W09_01_DESC>40’ High Cube Container</W09_01_DESC><W09_02_03_04_05>MIN   - MAX  </W09_02_03_04_05></Line_Items></Email_Alert></OUTPUT>

推荐答案

If you are opening a node, you should close it. Try this:

If you are opening a node, you should close it. Try this:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<OUTPUT>
  <Email_Alert>
    <Current_Date>
      05/02/13
    </Current_Date>
    <Current_Time>
      12:37:13
    </Current_Time>
    <Reservation_Type>
      NEW Booking
    </Reservation_Type>
    <Shipment_ID>
      0700046038
    </Shipment_ID>
    <Carrier_SCAC>
      MAEU
    </Carrier_SCAC>
    <Transport_Mode>
      FCL
    </Transport_Mode>
    <Requested_Pickup_Date>
      05/22/2013
    </Requested_Pickup_Date>
    <Requested_Delivery_Date>
      06/22/2013
    </Requested_Delivery_Date>
    <Y2>
      <Container_Number>
        1
      </Container_Number>
      <Service_Type>
        Door to Port using Rail Container Pool
      </Service_Type>
    </Y2>
    <References>

      <Ref_Qual>CR</Ref_Qual>
      <Ref_Value>0000035138</Ref_Value>
    </References>
    <N102_SH>Pringles Manufacturing Co</N102_SH>
    <N301_SH>1306 HIGHWAY 70 BYP</N301_SH>
    <N401_02_03_SH>Jackson,TN,38301-5072</N401_02_03_SH>
    <N404_SH>US</N404_SH>
    <Account_Code>025857</Account_Code>
  </Email_Alert>
</OUTPUT>



You can check this XML validation here[^].





--Amit


Try closing all the nodes.Just like email alert in your code,its not closed.verify all the nodes are closed properly.Thats it.
Try closing all the nodes.Just like email alert in your code,its not closed.verify all the nodes are closed properly.Thats it.


这篇关于你能告诉我错误在哪里吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆