AnsweredAssumed Answered

XML Parser JDOM

Question asked by venkatesh.rupanagudi080702 on Oct 26, 2017
Latest reply on Oct 30, 2017 by leif.jacobsen@dagrofa.dk

Hi,

 

Here is my XML file 

 

<?xml version='1.0' encoding='UTF-8'?>
<DELVRY03>
<IDOC BEGIN="1">
<EDI_DC40 SEGMENT="1">
<TABNAM>EDI_DC40</TABNAM>
<MANDT>300</MANDT>
<DOCNUM>0000000000550216</DOCNUM>
<DOCREL>740</DOCREL>
<STATUS>30</STATUS>
<DIRECT>1</DIRECT>
<OUTMOD>2</OUTMOD>
<IDOCTYP>DELVRY03</IDOCTYP>
<CIMTYP>ZDESADV</CIMTYP>
<MESTYP>DESADV</MESTYP>
<SNDPOR>SAPECP</SNDPOR>
<SNDPRT>LS</SNDPRT>
<SNDPRN>ECPCLNT300</SNDPRN>
<RCVPOR>BOOMIXML</RCVPOR>
<RCVPRT>LS</RCVPRT>
<RCVPFC>LS</RCVPFC>
<RCVPRN>BOOMIECP</RCVPRN>
<CREDAT>20170208</CREDAT>
<CRETIM>220048</CRETIM>
<SERIAL>20170208220048</SERIAL>
</EDI_DC40>
<E1EDL20 SEGMENT="1">
<VBELN>0080055712</VBELN>
<VSTEL>1011</VSTEL>
<VKORG>1010</VKORG>
<INCO1>CIP</INCO1>
<INCO2>Carriage &amp; insurance paid to</INCO2>
<VSBED>01</VSBED>
<BTGEW>531.300</BTGEW>
<NTGEW>423.800</NTGEW>
<GEWEI>LB</GEWEI>
<VOLUM>970.410</VOLUM>
<VOLEH>DMQ</VOLEH>
<ANZPK>00000</ANZPK>
<PODAT>20170208</PODAT>
<POTIM>140048</POTIM>
<E1ADRM1 SEGMENT="1">
<PARTNER_Q>AG</PARTNER_Q>
<PARTNER_ID>0001000050</PARTNER_ID>
<LANGUAGE>EN</LANGUAGE>
<NAME1>DIST MAYORISTA NEXSYS MEXICO</NAME1>
<STREET1>BOSQUES DE CIRUELOS PISO1</STREET1>
<STREET2>COL BOSQUES DE LAS LOMA</STREET2>
<POSTL_COD1>11700</POSTL_COD1>
<CITY1>Mexico City</CITY1>
<TELEPHONE1>011-52550040050</TELEPHONE1>
<COUNTRY1>MX</COUNTRY1>
<REGION>DF</REGION>
</E1ADRM1>
<E1ADRM1 SEGMENT="1">
<PARTNER_Q>RE</PARTNER_Q>
<PARTNER_ID>0001000050</PARTNER_ID>
<LANGUAGE>EN</LANGUAGE>
<NAME1>DIST MAYORISTA NEXSYS MEXICO</NAME1>
<STREET1>BOSQUES DE CIRUELOS PISO1</STREET1>
<STREET2>COL BOSQUES DE LAS LOMA</STREET2>
<POSTL_COD1>11700</POSTL_COD1>
<CITY1>Mexico City</CITY1>
<TELEPHONE1>011-52550040050</TELEPHONE1>
<COUNTRY1>MX</COUNTRY1>
<REGION>DF</REGION>
</E1ADRM1>
<E1ADRM1 SEGMENT="1">
<PARTNER_Q>WE</PARTNER_Q>
<PARTNER_ID>WE80055712</PARTNER_ID>
<LANGUAGE>EN</LANGUAGE>
<NAME1>XCELL Logistics, Inc.</NAME1>
<STREET1>814 Union Pacific Blvd.</STREET1>
<HOUSE_SUPL>814</HOUSE_SUPL>
<POSTL_COD1>78045</POSTL_COD1>
<CITY1>Laredo</CITY1>
<CITY2>WEBB</CITY2>
<TELEPHONE1>956-724-1744</TELEPHONE1>
<COUNTRY1>US</COUNTRY1>
<REGION>TX</REGION>
</E1ADRM1>
<E1ADRM1 SEGMENT="1">
<PARTNER_Q>Z4</PARTNER_Q>
<PARTNER_ID>ABFFREIGHT</PARTNER_ID>
<LANGUAGE>EN</LANGUAGE>
<NAME1>ABF Freight</NAME1>
<NAME2>ABFS</NAME2>
<COUNTRY1>US</COUNTRY1>
<E1ADRE1 SEGMENT="1">
<EXTEND_Q>304</EXTEND_Q>
<EXTEND_D>ABFS</EXTEND_D>
</E1ADRE1>
<E1ADRE1 SEGMENT="1">
<EXTEND_Q>300</EXTEND_Q>
<EXTEND_D>ABFFREIGHT</EXTEND_D>
</E1ADRE1>
</E1ADRM1>
<E1ADRM1 SEGMENT="1">
<PARTNER_Q>Z5</PARTNER_Q>
<PARTNER_ID>GENERICLTL</PARTNER_ID>
<LANGUAGE>EN</LANGUAGE>
<NAME1>Wacom Generic LTL</NAME1>
<NAME2>Bill Wacom</NAME2>
<STREET1>1455 NW Irving Ste 800</STREET1>
<POSTL_COD1>97209</POSTL_COD1>
<CITY1>Portland</CITY1>
<COUNTRY1>US</COUNTRY1>
<REGION>OR</REGION>
<E1ADRE1 SEGMENT="1">
<EXTEND_Q>300</EXTEND_Q>
<EXTEND_D>GENERICLTL</EXTEND_D>
</E1ADRE1>
</E1ADRM1>
<E1ADRM1 SEGMENT="1">
<PARTNER_Q>Z6</PARTNER_Q>
<PARTNER_ID>STANDARD</PARTNER_ID>
<LANGUAGE>EN</LANGUAGE>
<NAME1>LTL - Standard Freight</NAME1>
<NAME2>STD</NAME2>
<COUNTRY1>US</COUNTRY1>
<E1ADRE1 SEGMENT="1">
<EXTEND_Q>300</EXTEND_Q>
<EXTEND_D>STANDARD</EXTEND_D>
</E1ADRE1>
</E1ADRM1>
<E1ADRM1 SEGMENT="1">
<PARTNER_Q>Z7</PARTNER_Q>
<PARTNER_ID>PREPAID</PARTNER_ID>
<LANGUAGE>EN</LANGUAGE>
<NAME1>Prepaid</NAME1>
<NAME2>TP</NAME2>
<COUNTRY1>US</COUNTRY1>
<E1ADRE1 SEGMENT="1">
<EXTEND_Q>300</EXTEND_Q>
<EXTEND_D>PREPAID</EXTEND_D>
</E1ADRE1>
</E1ADRM1>
<E1ADRM1 SEGMENT="1">
<PARTNER_Q>OSP</PARTNER_Q>
<PARTNER_ID>1011</PARTNER_ID>
<LANGUAGE>EN</LANGUAGE>
<NAME1>Expeditors Memphis RDC</NAME1>
<NAME2>Expeditors Memphis RDC</NAME2>
<STREET1>6005 Freeport Dr. Suite 102</STREET1>
<POSTL_COD1>38141</POSTL_COD1>
<CITY1>Memphis</CITY1>
<COUNTRY1>US</COUNTRY1>
<REGION>TN</REGION>
</E1ADRM1>
<E1ADRM1 SEGMENT="1">
<PARTNER_Q>OSO</PARTNER_Q>
<PARTNER_ID>1010</PARTNER_ID>
<LANGUAGE>EN</LANGUAGE>
<NAME1>Wacom Technology Corp</NAME1>
<STREET1>1455 NW Irving Street Suite 800</STREET1>
<HOUSE_SUPL>1455</HOUSE_SUPL>
<POSTL_COD1>97209</POSTL_COD1>
<CITY1>Portland</CITY1>
<TELEPHONE1>(503) 525-3100</TELEPHONE1>
<TELEFAX>(503) 525-3398</TELEFAX>
<COUNTRY1>US</COUNTRY1>
<REGION>OR</REGION>
</E1ADRM1>
<E1EDL21 SEGMENT="1">
<LFART>ZLF</LFART>
<LPRIO>01</LPRIO>
<TRAGR>0001</TRAGR>
<E1EDL23 SEGMENT="1">
<LFART_BEZ>Wacom Delivery Std.</LFART_BEZ>
<LPRIO_BEZ>High</LPRIO_BEZ>
<TRAGR_BEZ>On pallets</TRAGR_BEZ>
</E1EDL23>
</E1EDL21>
<ZE1EDL20 SEGMENT="1">
<Z_ASR>X</Z_ASR>
</ZE1EDL20>
<E1EDL22 SEGMENT="1">
<VSTEL_BEZ>Memphis WTC</VSTEL_BEZ>
<VKORG_BEZ>WTC USA</VKORG_BEZ>
<INCO1_BEZ>Carriage and insurance paid to</INCO1_BEZ>
<VSBED_BEZ>Standard</VSBED_BEZ>
</E1EDL22>
<E1EDL18 SEGMENT="1">
<QUALF>ORI</QUALF>
</E1EDL18>
<E1TXTH8 SEGMENT="1">
<TDOBJECT>VBBK</TDOBJECT>
<TDOBNAME>0080055712</TDOBNAME>
<TDID>ZC3P</TDID>
<TDSPRAS>E</TDSPRAS>
<LANGUA_ISO>EN</LANGUA_ISO>
<E1TXTP8 SEGMENT="1">
<TDFORMAT>*</TDFORMAT>
<TDLINE>Please include CI with shipment</TDLINE>
</E1TXTP8>
</E1TXTH8>
<E1EDT13 SEGMENT="1">
<QUALF>006</QUALF>
<NTANF>20170208</NTANF>
<NTANZ>000000</NTANZ>
<NTEND>20170208</NTEND>
<NTENZ>000000</NTENZ>
<TZONE_BEG>CST</TZONE_BEG>
<ISDD>00000000</ISDD>
<ISDZ>000000</ISDZ>
<IEDD>00000000</IEDD>
<IEDZ>000000</IEDZ>
<TZONE_END>CST</TZONE_END>
</E1EDT13>
<E1EDT13 SEGMENT="1">
<QUALF>003</QUALF>
<NTANF>20170208</NTANF>
<NTANZ>000000</NTANZ>
<NTEND>20170208</NTEND>
<NTENZ>000000</NTENZ>
<TZONE_BEG>CST</TZONE_BEG>
<ISDD>00000000</ISDD>
<ISDZ>000000</ISDZ>
<IEDD>00000000</IEDD>
<IEDZ>000000</IEDZ>
</E1EDT13>
<E1EDT13 SEGMENT="1">
<QUALF>001</QUALF>
<NTANF>20170208</NTANF>
<NTANZ>000000</NTANZ>
<NTEND>20170208</NTEND>
<NTENZ>000000</NTENZ>
<TZONE_BEG>CST</TZONE_BEG>
<ISDD>00000000</ISDD>
<ISDZ>000000</ISDZ>
<IEDD>00000000</IEDD>
<IEDZ>000000</IEDZ>
</E1EDT13>
<E1EDT13 SEGMENT="1">
<QUALF>007</QUALF>
<NTANF>20170208</NTANF>
<NTANZ>000000</NTANZ>
<NTEND>20170208</NTEND>
<NTENZ>000000</NTENZ>
<TZONE_BEG>CST</TZONE_BEG>
<ISDD>00000000</ISDD>
<ISDZ>000000</ISDZ>
<IEDD>00000000</IEDD>
<IEDZ>000000</IEDZ>
</E1EDT13>
<E1EDT13 SEGMENT="1">
<QUALF>010</QUALF>
<NTANF>20170208</NTANF>
<NTANZ>000000</NTANZ>
<NTEND>20170208</NTEND>
<NTENZ>000000</NTENZ>
<TZONE_BEG>CST</TZONE_BEG>
<ISDD>00000000</ISDD>
<ISDZ>000000</ISDZ>
<IEDD>00000000</IEDD>
<IEDZ>000000</IEDZ>
</E1EDT13>
<E1EDT13 SEGMENT="1">
<QUALF>015</QUALF>
<NTANF>20170208</NTANF>
<NTANZ>000000</NTANZ>
<NTEND>20170208</NTEND>
<NTENZ>000000</NTENZ>
<ISDD>00000000</ISDD>
<ISDZ>000000</ISDZ>
<IEDD>00000000</IEDD>
<IEDZ>000000</IEDZ>
</E1EDT13>
<E1EDL24 SEGMENT="1">
<POSNR>000010</POSNR>
<MATNR>CTL490DW</MATNR>
<MATWA>CTL490DW</MATWA>
<ARKTX>INTUOS Draw, Pen Small, White</ARKTX>
<MATKL>01</MATKL>
<WERKS>1011</WERKS>
<LGORT>0001</LGORT>
<LFIMG>170.000</LFIMG>
<VRKME>EA</VRKME>
<LGMNG>170.000</LGMNG>
<MEINS>EA</MEINS>
<NTGEW>255.000</NTGEW>
<BRGEW>272.000</BRGEW>
<GEWEI>LB</GEWEI>
<VOLUM>555.560</VOLUM>
<VOLEH>DMQ</VOLEH>
<LADGR>0001</LADGR>
<TRAGR>0001</TRAGR>
<VTWEG>20</VTWEG>
<SPART>10</SPART>
<GRKOR>000</GRKOR>
<EAN11>753218989406</EAN11>
<POSEX>000010</POSEX>
<VFDAT>00000000</VFDAT>
<EXPIRY_DATE_EXT>0</EXPIRY_DATE_EXT>
<VGBEL>0000043993</VGBEL>
<VGPOS>000010</VGPOS>
<ORMNG>170.000</ORMNG>
<EXPIRY_DATE_EXT_B>0</EXPIRY_DATE_EXT_B>
<E1EDL43 SEGMENT="1">
<QUALF>C</QUALF>
<BELNR>0000043993</BELNR>
<POSNR>000010</POSNR>
<DATUM>20170205</DATUM>
</E1EDL43>
<E1EDL41 SEGMENT="1">
<QUALI>001</QUALI>
<BSTNR>MPC-200065629</BSTNR>
<BSTDT>20170205</BSTDT>
<BSARK>MANL</BSARK>
<E1EDL42 SEGMENT="1">
<BSARK_BEZ>Order- Manual Entry</BSARK_BEZ>
</E1EDL42>
</E1EDL41>
<E1EDL35 SEGMENT="1">
<STAWN>8471.60.9050</STAWN>
<HERKL>CN</HERKL>
<E1EDL36 SEGMENT="1">
<STXT1>Input or Output units- w/o an LCD</STXT1>
<HERKL_BEZ>China</HERKL_BEZ>
</E1EDL36>
</E1EDL35>
<E1EDL26 SEGMENT="1">
<PSTYV>TAN</PSTYV>
<MATKL>01</MATKL>
<PRODH>101000171025910791</PRODH>
<UMVKZ>1</UMVKZ>
<UMVKN>1</UMVKN>
<UEBTO>0.0</UEBTO>
<UNTTO>0.0</UNTTO>
<PCKPF>A</PCKPF>
<MAGRV>YB02</MAGRV>
<MVGR1>147</MVGR1>
<MVGR2>201</MVGR2>
<MVGR3>301</MVGR3>
<MVGR4>401</MVGR4>
<MVGR5>001</MVGR5>
<E1EDL27 SEGMENT="1">
<PSTYV_BEZ>Standard Item</PSTYV_BEZ>
<MATKL_BEZ>Material group WTC</MATKL_BEZ>
<PRODH_BEZ>Pine Draw Fun S</PRODH_BEZ>
<WERKS_BEZ>Expeditors Memphis RDC</WERKS_BEZ>
<MVGR1_BEZ>Pine</MVGR1_BEZ>
<MVGR2_BEZ>FINISHED GOODS</MVGR2_BEZ>
<MVGR3_BEZ>IN-LINE</MVGR3_BEZ>
<MVGR4_BEZ>SMALL</MVGR4_BEZ>
<MVGR5_BEZ>Product</MVGR5_BEZ>
</E1EDL27>
</E1EDL26>
<ZE1EDL24 SEGMENT="1">
<Z_UNIT_PRICE>47.17</Z_UNIT_PRICE>
<Z_DOC_CURR>USD</Z_DOC_CURR>
<Z_REQ_DT>20170208</Z_REQ_DT>
</ZE1EDL24>
<E1EDL25 SEGMENT="1">
<LGORT_BEZ>General Stock</LGORT_BEZ>
<LADGR_BEZ>Wacom Group</LADGR_BEZ>
<TRAGR_BEZ>On pallets</TRAGR_BEZ>
<VTWEG_BEZ>B2R</VTWEG_BEZ>
<SPART_BEZ>Common Division</SPART_BEZ>
</E1EDL25>
</E1EDL24>
<E1EDL24 SEGMENT="1">
<POSNR>000020</POSNR>
<MATNR>CTH490AK</MATNR>
<MATWA>CTH490AK</MATWA>
<ARKTX>INTUOS Art, PT Small, Black</ARKTX>
<MATKL>01</MATKL>
<WERKS>1011</WERKS>
<LGORT>0001</LGORT>
<LFIMG>25.000</LFIMG>
<VRKME>EA</VRKME>
<LGMNG>25.000</LGMNG>
<MEINS>EA</MEINS>
<NTGEW>37.500</NTGEW>
<BRGEW>40.000</BRGEW>
<GEWEI>LB</GEWEI>
<VOLUM>81.700</VOLUM>
<VOLEH>DMQ</VOLEH>
<LADGR>0001</LADGR>
<TRAGR>0001</TRAGR>
<VTWEG>20</VTWEG>
<SPART>10</SPART>
<GRKOR>000</GRKOR>
<EAN11>753218989369</EAN11>
<POSEX>000020</POSEX>
<VFDAT>00000000</VFDAT>
<EXPIRY_DATE_EXT>0</EXPIRY_DATE_EXT>
<VGBEL>0000043993</VGBEL>
<VGPOS>000020</VGPOS>
<ORMNG>25.000</ORMNG>
<EXPIRY_DATE_EXT_B>0</EXPIRY_DATE_EXT_B>
<E1EDL43 SEGMENT="1">
<QUALF>C</QUALF>
<BELNR>0000043993</BELNR>
<POSNR>000020</POSNR>
<DATUM>20170205</DATUM>
</E1EDL43>
<E1EDL41 SEGMENT="1">
<QUALI>001</QUALI>
<BSTNR>MPC-200065629</BSTNR>
<BSTDT>20170205</BSTDT>
<BSARK>MANL</BSARK>
<E1EDL42 SEGMENT="1">
<BSARK_BEZ>Order- Manual Entry</BSARK_BEZ>
</E1EDL42>
</E1EDL41>
<E1EDL35 SEGMENT="1">
<STAWN>8471.60.9050</STAWN>
<HERKL>CN</HERKL>
<E1EDL36 SEGMENT="1">
<STXT1>Input or Output units- w/o an LCD</STXT1>
<HERKL_BEZ>China</HERKL_BEZ>
</E1EDL36>
</E1EDL35>
<E1EDL26 SEGMENT="1">
<PSTYV>TAN</PSTYV>
<MATKL>01</MATKL>
<PRODH>101000171025910788</PRODH>
<UMVKZ>1</UMVKZ>
<UMVKN>1</UMVKN>
<UEBTO>0.0</UEBTO>
<UNTTO>0.0</UNTTO>
<PCKPF>A</PCKPF>
<MAGRV>YB02</MAGRV>
<MVGR1>147</MVGR1>
<MVGR2>201</MVGR2>
<MVGR3>301</MVGR3>
<MVGR4>401</MVGR4>
<MVGR5>001</MVGR5>
<E1EDL27 SEGMENT="1">
<PSTYV_BEZ>Standard Item</PSTYV_BEZ>
<MATKL_BEZ>Material group WTC</MATKL_BEZ>
<PRODH_BEZ>Pine Art S</PRODH_BEZ>
<WERKS_BEZ>Expeditors Memphis RDC</WERKS_BEZ>
<MVGR1_BEZ>Pine</MVGR1_BEZ>
<MVGR2_BEZ>FINISHED GOODS</MVGR2_BEZ>
<MVGR3_BEZ>IN-LINE</MVGR3_BEZ>
<MVGR4_BEZ>SMALL</MVGR4_BEZ>
<MVGR5_BEZ>Product</MVGR5_BEZ>
</E1EDL27>
</E1EDL26>
<ZE1EDL24 SEGMENT="1">
<Z_UNIT_PRICE>72.47</Z_UNIT_PRICE>
<Z_DOC_CURR>USD</Z_DOC_CURR>
<Z_REQ_DT>20170208</Z_REQ_DT>
</ZE1EDL24>
<E1EDL25 SEGMENT="1">
<LGORT_BEZ>General Stock</LGORT_BEZ>
<LADGR_BEZ>Wacom Group</LADGR_BEZ>
<TRAGR_BEZ>On pallets</TRAGR_BEZ>
<VTWEG_BEZ>B2R</VTWEG_BEZ>
<SPART_BEZ>Common Division</SPART_BEZ>
</E1EDL25>
</E1EDL24>
<E1EDL24 SEGMENT="1">
<POSNR>000030</POSNR>
<MATNR>CTH490CK</MATNR>
<MATWA>CTH490CK</MATWA>
<ARKTX>INTUOS Comic, PT Small, Black</ARKTX>
<MATKL>01</MATKL>
<WERKS>1011</WERKS>
<LGORT>0001</LGORT>
<LFIMG>40.000</LFIMG>
<VRKME>EA</VRKME>
<LGMNG>40.000</LGMNG>
<MEINS>EA</MEINS>
<NTGEW>60.000</NTGEW>
<BRGEW>64.000</BRGEW>
<GEWEI>LB</GEWEI>
<VOLUM>130.720</VOLUM>
<VOLEH>DMQ</VOLEH>
<LADGR>0001</LADGR>
<TRAGR>0001</TRAGR>
<VTWEG>20</VTWEG>
<SPART>10</SPART>
<GRKOR>000</GRKOR>
<EAN11>753218989321</EAN11>
<POSEX>000030</POSEX>
<VFDAT>00000000</VFDAT>
<EXPIRY_DATE_EXT>0</EXPIRY_DATE_EXT>
<VGBEL>0000043993</VGBEL>
<VGPOS>000030</VGPOS>
<ORMNG>40.000</ORMNG>
<EXPIRY_DATE_EXT_B>0</EXPIRY_DATE_EXT_B>
<E1EDL43 SEGMENT="1">
<QUALF>C</QUALF>
<BELNR>0000043993</BELNR>
<POSNR>000030</POSNR>
<DATUM>20170205</DATUM>
</E1EDL43>
<E1EDL41 SEGMENT="1">
<QUALI>001</QUALI>
<BSTNR>MPC-200065629</BSTNR>
<BSTDT>20170205</BSTDT>
<BSARK>MANL</BSARK>
<E1EDL42 SEGMENT="1">
<BSARK_BEZ>Order- Manual Entry</BSARK_BEZ>
</E1EDL42>
</E1EDL41>
<E1EDL35 SEGMENT="1">
<STAWN>8471.60.9050</STAWN>
<HERKL>CN</HERKL>
<E1EDL36 SEGMENT="1">
<STXT1>Input or Output units- w/o an LCD</STXT1>
<HERKL_BEZ>China</HERKL_BEZ>
</E1EDL36>
</E1EDL35>
<E1EDL26 SEGMENT="1">
<PSTYV>TAN</PSTYV>
<MATKL>01</MATKL>
<PRODH>101000171025910790</PRODH>
<UMVKZ>1</UMVKZ>
<UMVKN>1</UMVKN>
<UEBTO>0.0</UEBTO>
<UNTTO>0.0</UNTTO>
<PCKPF>A</PCKPF>
<MAGRV>YB02</MAGRV>
<MVGR1>126</MVGR1>
<MVGR2>201</MVGR2>
<MVGR3>301</MVGR3>
<MVGR4>401</MVGR4>
<MVGR5>001</MVGR5>
<E1EDL27 SEGMENT="1">
<PSTYV_BEZ>Standard Item</PSTYV_BEZ>
<MATKL_BEZ>Material group WTC</MATKL_BEZ>
<PRODH_BEZ>Pine Comic S</PRODH_BEZ>
<WERKS_BEZ>Expeditors Memphis RDC</WERKS_BEZ>
<MVGR1_BEZ>HAZEL</MVGR1_BEZ>
<MVGR2_BEZ>FINISHED GOODS</MVGR2_BEZ>
<MVGR3_BEZ>IN-LINE</MVGR3_BEZ>
<MVGR4_BEZ>SMALL</MVGR4_BEZ>
<MVGR5_BEZ>Product</MVGR5_BEZ>
</E1EDL27>
</E1EDL26>
<ZE1EDL24 SEGMENT="1">
<Z_UNIT_PRICE>72.47</Z_UNIT_PRICE>
<Z_DOC_CURR>USD</Z_DOC_CURR>
<Z_REQ_DT>20170208</Z_REQ_DT>
</ZE1EDL24>
<E1EDL25 SEGMENT="1">
<LGORT_BEZ>General Stock</LGORT_BEZ>
<LADGR_BEZ>Wacom Group</LADGR_BEZ>
<TRAGR_BEZ>On pallets</TRAGR_BEZ>
<VTWEG_BEZ>B2R</VTWEG_BEZ>
<SPART_BEZ>Common Division</SPART_BEZ>
</E1EDL25>
</E1EDL24>
<E1EDL24 SEGMENT="1">
<POSNR>000040</POSNR>
<MATNR>PTH660</MATNR>
<MATWA>PTH660</MATWA>
<ARKTX>Wacom Intuos Pro - Medium</ARKTX>
<MATKL>01</MATKL>
<WERKS>1011</WERKS>
<LGORT>0001</LGORT>
<LFIMG>20.000</LFIMG>
<VRKME>EA</VRKME>
<LGMNG>20.000</LGMNG>
<MEINS>EA</MEINS>
<NTGEW>30.800</NTGEW>
<BRGEW>83.600</BRGEW>
<GEWEI>LB</GEWEI>
<VOLUM>91820.000</VOLUM>
<VOLEH>CMQ</VOLEH>
<LADGR>0001</LADGR>
<TRAGR>0001</TRAGR>
<VTWEG>20</VTWEG>
<SPART>10</SPART>
<GRKOR>000</GRKOR>
<EAN11>753218988270</EAN11>
<POSEX>000040</POSEX>
<VFDAT>00000000</VFDAT>
<EXPIRY_DATE_EXT>0</EXPIRY_DATE_EXT>
<VGBEL>0000043993</VGBEL>
<VGPOS>000040</VGPOS>
<ORMNG>20.000</ORMNG>
<EXPIRY_DATE_EXT_B>0</EXPIRY_DATE_EXT_B>
<E1EDL43 SEGMENT="1">
<QUALF>C</QUALF>
<BELNR>0000043993</BELNR>
<POSNR>000040</POSNR>
<DATUM>20170205</DATUM>
</E1EDL43>
<E1EDL41 SEGMENT="1">
<QUALI>001</QUALI>
<BSTNR>MPC-200065629</BSTNR>
<BSTDT>20170205</BSTDT>
<BSARK>MANL</BSARK>
<E1EDL42 SEGMENT="1">
<BSARK_BEZ>Order- Manual Entry</BSARK_BEZ>
</E1EDL42>
</E1EDL41>
<E1EDL35 SEGMENT="1">
<STAWN>8471.60.9050</STAWN>
<HERKL>CN</HERKL>
<E1EDL36 SEGMENT="1">
<STXT1>Input or Output units- w/o an LCD</STXT1>
<HERKL_BEZ>China</HERKL_BEZ>
</E1EDL36>
</E1EDL35>
<E1EDL26 SEGMENT="1">
<PSTYV>TAN</PSTYV>
<MATKL>01</MATKL>
<PRODH>101000181042911368</PRODH>
<UMVKZ>1</UMVKZ>
<UMVKN>1</UMVKN>
<UEBTO>0.0</UEBTO>
<UNTTO>0.0</UNTTO>
<PCKPF>A</PCKPF>
<MVGR2>201</MVGR2>
<MVGR3>301</MVGR3>
<MVGR4>402</MVGR4>
<E1EDL27 SEGMENT="1">
<PSTYV_BEZ>Standard Item</PSTYV_BEZ>
<MATKL_BEZ>Material group WTC</MATKL_BEZ>
<PRODH_BEZ>Viper PT Medium</PRODH_BEZ>
<WERKS_BEZ>Expeditors Memphis RDC</WERKS_BEZ>
<MVGR2_BEZ>FINISHED GOODS</MVGR2_BEZ>
<MVGR3_BEZ>IN-LINE</MVGR3_BEZ>
<MVGR4_BEZ>MEDIUM</MVGR4_BEZ>
</E1EDL27>
</E1EDL26>
<ZE1EDL24 SEGMENT="1">
<Z_UNIT_PRICE>265.03</Z_UNIT_PRICE>
<Z_DOC_CURR>USD</Z_DOC_CURR>
<Z_REQ_DT>20170208</Z_REQ_DT>
</ZE1EDL24>
<E1EDL25 SEGMENT="1">
<LGORT_BEZ>General Stock</LGORT_BEZ>
<LADGR_BEZ>Wacom Group</LADGR_BEZ>
<TRAGR_BEZ>On pallets</TRAGR_BEZ>
<VTWEG_BEZ>B2R</VTWEG_BEZ>
<SPART_BEZ>Common Division</SPART_BEZ>
</E1EDL25>
</E1EDL24>
<E1EDL24 SEGMENT="1">
<POSNR>000050</POSNR>
<MATNR>PTH660P</MATNR>
<MATWA>PTH660P</MATWA>
<ARKTX>Wacom Intuos Pro Paper Edition - Medium</ARKTX>
<MATKL>01</MATKL>
<WERKS>1011</WERKS>
<LGORT>0001</LGORT>
<LFIMG>5.000</LFIMG>
<VRKME>EA</VRKME>
<LGMNG>5.000</LGMNG>
<MEINS>EA</MEINS>
<NTGEW>7.700</NTGEW>
<BRGEW>20.900</BRGEW>
<GEWEI>LB</GEWEI>
<VOLUM>22955.000</VOLUM>
<VOLEH>CMQ</VOLEH>
<LADGR>0001</LADGR>
<TRAGR>0001</TRAGR>
<VTWEG>20</VTWEG>
<SPART>10</SPART>
<GRKOR>000</GRKOR>
<EAN11>753218988263</EAN11>
<POSEX>000050</POSEX>
<VFDAT>00000000</VFDAT>
<EXPIRY_DATE_EXT>0</EXPIRY_DATE_EXT>
<VGBEL>0000043993</VGBEL>
<VGPOS>000050</VGPOS>
<ORMNG>5.000</ORMNG>
<EXPIRY_DATE_EXT_B>0</EXPIRY_DATE_EXT_B>
<E1EDL43 SEGMENT="1">
<QUALF>C</QUALF>
<BELNR>0000043993</BELNR>
<POSNR>000050</POSNR>
<DATUM>20170205</DATUM>
</E1EDL43>
<E1EDL41 SEGMENT="1">
<QUALI>001</QUALI>
<BSTNR>MPC-200065629</BSTNR>
<BSTDT>20170205</BSTDT>
<BSARK>MANL</BSARK>
<E1EDL42 SEGMENT="1">
<BSARK_BEZ>Order- Manual Entry</BSARK_BEZ>
</E1EDL42>
</E1EDL41>
<E1EDL35 SEGMENT="1">
<STAWN>8471.60.9050</STAWN>
<HERKL>CN</HERKL>
<E1EDL36 SEGMENT="1">
<STXT1>Input or Output units- w/o an LCD</STXT1>
<HERKL_BEZ>China</HERKL_BEZ>
</E1EDL36>
</E1EDL35>
<E1EDL26 SEGMENT="1">
<PSTYV>TAN</PSTYV>
<MATKL>01</MATKL>
<PRODH>101000181042911369</PRODH>
<UMVKZ>1</UMVKZ>
<UMVKN>1</UMVKN>
<UEBTO>0.0</UEBTO>
<UNTTO>0.0</UNTTO>
<PCKPF>A</PCKPF>
<MVGR2>201</MVGR2>
<MVGR3>301</MVGR3>
<MVGR4>402</MVGR4>
<E1EDL27 SEGMENT="1">
<PSTYV_BEZ>Standard Item</PSTYV_BEZ>
<MATKL_BEZ>Material group WTC</MATKL_BEZ>
<PRODH_BEZ>Viper PT Medium Pape</PRODH_BEZ>
<WERKS_BEZ>Expeditors Memphis RDC</WERKS_BEZ>
<MVGR2_BEZ>FINISHED GOODS</MVGR2_BEZ>
<MVGR3_BEZ>IN-LINE</MVGR3_BEZ>
<MVGR4_BEZ>MEDIUM</MVGR4_BEZ>
</E1EDL27>
</E1EDL26>
<ZE1EDL24 SEGMENT="1">
<Z_UNIT_PRICE>308.97</Z_UNIT_PRICE>
<Z_DOC_CURR>USD</Z_DOC_CURR>
<Z_REQ_DT>20170208</Z_REQ_DT>
</ZE1EDL24>
<E1EDL25 SEGMENT="1">
<LGORT_BEZ>General Stock</LGORT_BEZ>
<LADGR_BEZ>Wacom Group</LADGR_BEZ>
<TRAGR_BEZ>On pallets</TRAGR_BEZ>
<VTWEG_BEZ>B2R</VTWEG_BEZ>
<SPART_BEZ>Common Division</SPART_BEZ>
</E1EDL25>
</E1EDL24>
<E1EDL24 SEGMENT="1">
<POSNR>000060</POSNR>
<MATNR>PTH860P</MATNR>
<MATWA>PTH860P</MATWA>
<ARKTX>Wacom Intuos Pro Paper Edition - Large</ARKTX>
<MATKL>01</MATKL>
<WERKS>1011</WERKS>
<LGORT>0001</LGORT>
<LFIMG>5.000</LFIMG>
<VRKME>EA</VRKME>
<LGMNG>5.000</LGMNG>
<MEINS>EA</MEINS>
<NTGEW>14.300</NTGEW>
<BRGEW>29.700</BRGEW>
<GEWEI>LB</GEWEI>
<VOLUM>34775.000</VOLUM>
<VOLEH>CMQ</VOLEH>
<LADGR>0001</LADGR>
<TRAGR>0001</TRAGR>
<VTWEG>20</VTWEG>
<SPART>10</SPART>
<GRKOR>000</GRKOR>
<EAN11>753218988249</EAN11>
<POSEX>000060</POSEX>
<VFDAT>00000000</VFDAT>
<EXPIRY_DATE_EXT>0</EXPIRY_DATE_EXT>
<VGBEL>0000043993</VGBEL>
<VGPOS>000060</VGPOS>
<ORMNG>5.000</ORMNG>
<EXPIRY_DATE_EXT_B>0</EXPIRY_DATE_EXT_B>
<E1EDL43 SEGMENT="1">
<QUALF>C</QUALF>
<BELNR>0000043993</BELNR>
<POSNR>000060</POSNR>
<DATUM>20170205</DATUM>
</E1EDL43>
<E1EDL41 SEGMENT="1">
<QUALI>001</QUALI>
<BSTNR>MPC-200065629</BSTNR>
<BSTDT>20170205</BSTDT>
<BSARK>MANL</BSARK>
<E1EDL42 SEGMENT="1">
<BSARK_BEZ>Order- Manual Entry</BSARK_BEZ>
</E1EDL42>
</E1EDL41>
<E1EDL35 SEGMENT="1">
<STAWN>8471.60.9050</STAWN>
<HERKL>CN</HERKL>
<E1EDL36 SEGMENT="1">
<STXT1>Input or Output units- w/o an LCD</STXT1>
<HERKL_BEZ>China</HERKL_BEZ>
</E1EDL36>
</E1EDL35>
<E1EDL26 SEGMENT="1">
<PSTYV>TAN</PSTYV>
<MATKL>01</MATKL>
<PRODH>101000181042911371</PRODH>
<UMVKZ>1</UMVKZ>
<UMVKN>1</UMVKN>
<UEBTO>0.0</UEBTO>
<UNTTO>0.0</UNTTO>
<PCKPF>A</PCKPF>
<MVGR2>201</MVGR2>
<MVGR3>301</MVGR3>
<MVGR4>402</MVGR4>
<E1EDL27 SEGMENT="1">
<PSTYV_BEZ>Standard Item</PSTYV_BEZ>
<MATKL_BEZ>Material group WTC</MATKL_BEZ>
<PRODH_BEZ>Viper PT Large Paper</PRODH_BEZ>
<WERKS_BEZ>Expeditors Memphis RDC</WERKS_BEZ>
<MVGR2_BEZ>FINISHED GOODS</MVGR2_BEZ>
<MVGR3_BEZ>IN-LINE</MVGR3_BEZ>
<MVGR4_BEZ>MEDIUM</MVGR4_BEZ>
</E1EDL27>
</E1EDL26>
<ZE1EDL24 SEGMENT="1">
<Z_UNIT_PRICE>428.34</Z_UNIT_PRICE>
<Z_DOC_CURR>USD</Z_DOC_CURR>
<Z_REQ_DT>20170208</Z_REQ_DT>
</ZE1EDL24>
<E1EDL25 SEGMENT="1">
<LGORT_BEZ>General Stock</LGORT_BEZ>
<LADGR_BEZ>Wacom Group</LADGR_BEZ>
<TRAGR_BEZ>On pallets</TRAGR_BEZ>
<VTWEG_BEZ>B2R</VTWEG_BEZ>
<SPART_BEZ>Common Division</SPART_BEZ>
</E1EDL25>
</E1EDL24>
<E1EDL24 SEGMENT="1">
<POSNR>000070</POSNR>
<MATNR>CTH690AK</MATNR>
<MATWA>CTH690AK</MATWA>
<ARKTX>INTUOS Art, PT Medium, Black</ARKTX>
<MATKL>01</MATKL>
<WERKS>1011</WERKS>
<LGORT>0001</LGORT>
<LFIMG>5.000</LFIMG>
<VRKME>EA</VRKME>
<LGMNG>5.000</LGMNG>
<MEINS>EA</MEINS>
<NTGEW>10.500</NTGEW>
<BRGEW>11.500</BRGEW>
<GEWEI>LB</GEWEI>
<VOLUM>23.640</VOLUM>
<VOLEH>DMQ</VOLEH>
<LADGR>0001</LADGR>
<TRAGR>0001</TRAGR>
<VTWEG>20</VTWEG>
<SPART>10</SPART>
<GRKOR>000</GRKOR>
<EAN11>753218989260</EAN11>
<POSEX>000070</POSEX>
<VFDAT>00000000</VFDAT>
<EXPIRY_DATE_EXT>0</EXPIRY_DATE_EXT>
<VGBEL>0000043993</VGBEL>
<VGPOS>000070</VGPOS>
<ORMNG>5.000</ORMNG>
<EXPIRY_DATE_EXT_B>0</EXPIRY_DATE_EXT_B>
<E1EDL43 SEGMENT="1">
<QUALF>C</QUALF>
<BELNR>0000043993</BELNR>
<POSNR>000070</POSNR>
<DATUM>20170205</DATUM>
</E1EDL43>
<E1EDL41 SEGMENT="1">
<QUALI>001</QUALI>
<BSTNR>MPC-200065629</BSTNR>
<BSTDT>20170205</BSTDT>
<BSARK>MANL</BSARK>
<E1EDL42 SEGMENT="1">
<BSARK_BEZ>Order- Manual Entry</BSARK_BEZ>
</E1EDL42>
</E1EDL41>
<E1EDL35 SEGMENT="1">
<STAWN>8471.60.9050</STAWN>
<HERKL>CN</HERKL>
<E1EDL36 SEGMENT="1">
<STXT1>Input or Output units- w/o an LCD</STXT1>
<HERKL_BEZ>China</HERKL_BEZ>
</E1EDL36>
</E1EDL35>
<E1EDL26 SEGMENT="1">
<PSTYV>TAN</PSTYV>
<MATKL>01</MATKL>
<PRODH>101000171025910787</PRODH>
<UMVKZ>1</UMVKZ>
<UMVKN>1</UMVKN>
<UEBTO>0.0</UEBTO>
<UNTTO>0.0</UNTTO>
<PCKPF>A</PCKPF>
<MAGRV>YB02</MAGRV>
<MVGR1>147</MVGR1>
<MVGR2>201</MVGR2>
<MVGR3>301</MVGR3>
<MVGR4>402</MVGR4>
<MVGR5>001</MVGR5>
<E1EDL27 SEGMENT="1">
<PSTYV_BEZ>Standard Item</PSTYV_BEZ>
<MATKL_BEZ>Material group WTC</MATKL_BEZ>
<PRODH_BEZ>Pine Art M</PRODH_BEZ>
<WERKS_BEZ>Expeditors Memphis RDC</WERKS_BEZ>
<MVGR1_BEZ>Pine</MVGR1_BEZ>
<MVGR2_BEZ>FINISHED GOODS</MVGR2_BEZ>
<MVGR3_BEZ>IN-LINE</MVGR3_BEZ>
<MVGR4_BEZ>MEDIUM</MVGR4_BEZ>
<MVGR5_BEZ>Product</MVGR5_BEZ>
</E1EDL27>
</E1EDL26>
<ZE1EDL24 SEGMENT="1">
<Z_UNIT_PRICE>145.96</Z_UNIT_PRICE>
<Z_DOC_CURR>USD</Z_DOC_CURR>
<Z_REQ_DT>20170208</Z_REQ_DT>
</ZE1EDL24>
<E1EDL25 SEGMENT="1">
<LGORT_BEZ>General Stock</LGORT_BEZ>
<LADGR_BEZ>Wacom Group</LADGR_BEZ>
<TRAGR_BEZ>On pallets</TRAGR_BEZ>
<VTWEG_BEZ>B2R</VTWEG_BEZ>
<SPART_BEZ>Common Division</SPART_BEZ>
</E1EDL25>
</E1EDL24>
<E1EDL24 SEGMENT="1">
<POSNR>000080</POSNR>
<MATNR>DTH1320K0</MATNR>
<MATWA>DTH1320K0</MATWA>
<ARKTX>Wacom Cintiq Pro, 13 FHD</ARKTX>
<MATKL>01</MATKL>
<WERKS>1011</WERKS>
<LGORT>0001</LGORT>
<LFIMG>4.000</LFIMG>
<VRKME>EA</VRKME>
<LGMNG>4.000</LGMNG>
<MEINS>EA</MEINS>
<NTGEW>8.000</NTGEW>
<BRGEW>9.600</BRGEW>
<GEWEI>LB</GEWEI>
<VOLUM>29240.000</VOLUM>
<VOLEH>CMQ</VOLEH>
<LADGR>0001</LADGR>
<TRAGR>0001</TRAGR>
<VTWEG>20</VTWEG>
<SPART>10</SPART>
<GRKOR>000</GRKOR>
<EAN11>753218987723</EAN11>
<MFRGR>ASR</MFRGR>
<POSEX>000080</POSEX>
<VFDAT>00000000</VFDAT>
<EXPIRY_DATE_EXT>0</EXPIRY_DATE_EXT>
<VGBEL>0000043993</VGBEL>
<VGPOS>000080</VGPOS>
<ORMNG>4.000</ORMNG>
<EXPIRY_DATE_EXT_B>0</EXPIRY_DATE_EXT_B>
<E1EDL43 SEGMENT="1">
<QUALF>C</QUALF>
<BELNR>0000043993</BELNR>
<POSNR>000080</POSNR>
<DATUM>20170205</DATUM>
</E1EDL43>
<E1EDL41 SEGMENT="1">
<QUALI>001</QUALI>
<BSTNR>MPC-200065629</BSTNR>
<BSTDT>20170205</BSTDT>
<BSARK>MANL</BSARK>
<E1EDL42 SEGMENT="1">
<BSARK_BEZ>Order- Manual Entry</BSARK_BEZ>
</E1EDL42>
</E1EDL41>
<E1EDL35 SEGMENT="1">
<STAWN>8471.41.0150</STAWN>
<HERKL>CN</HERKL>
<E1EDL36 SEGMENT="1">
<STXT1>Input and Output unit with CPU and LCD</STXT1>
<HERKL_BEZ>China</HERKL_BEZ>
</E1EDL36>
</E1EDL35>
<E1EDL26 SEGMENT="1">
<PSTYV>TAN</PSTYV>
<MATKL>01</MATKL>
<PRODH>101000131004011381</PRODH>
<UMVKZ>1</UMVKZ>
<UMVKN>1</UMVKN>
<UEBTO>0.0</UEBTO>
<UNTTO>0.0</UNTTO>
<PCKPF>A</PCKPF>
<MVGR2>201</MVGR2>
<MVGR3>301</MVGR3>
<MVGR4>421</MVGR4>
<E1EDL27 SEGMENT="1">
<PSTYV_BEZ>Standard Item</PSTYV_BEZ>
<MATKL_BEZ>Material group WTC</MATKL_BEZ>
<PRODH_BEZ>DTH-1320</PRODH_BEZ>
<WERKS_BEZ>Expeditors Memphis RDC</WERKS_BEZ>
<MVGR2_BEZ>FINISHED GOODS</MVGR2_BEZ>
<MVGR3_BEZ>IN-LINE</MVGR3_BEZ>
<MVGR4_BEZ>13 inch</MVGR4_BEZ>
</E1EDL27>
</E1EDL26>
<ZE1EDL24 SEGMENT="1">
<Z_UNIT_PRICE>842.96</Z_UNIT_PRICE>
<Z_DOC_CURR>USD</Z_DOC_CURR>
<Z_REQ_DT>20170208</Z_REQ_DT>
</ZE1EDL24>
<E1EDL25 SEGMENT="1">
<LGORT_BEZ>General Stock</LGORT_BEZ>
<LADGR_BEZ>Wacom Group</LADGR_BEZ>
<TRAGR_BEZ>On pallets</TRAGR_BEZ>
<VTWEG_BEZ>B2R</VTWEG_BEZ>
<SPART_BEZ>Common Division</SPART_BEZ>
<MFRGR_BEZ>Adult Sign Required</MFRGR_BEZ>
</E1EDL25>
</E1EDL24>
</E1EDL20>
</IDOC>
</DELVRY03>

 

Here is the code below to Read the XML File. I was able to read the Partner_Q = "AG". my requirement is after I parse "AG" for the element <PARTNER_Q> , I need to read the next element <PARTNER_ID> value and set Blank for the value. I was unable to get the  command in Jdom for Next sibling  or Next Element ?. ( Sample XML Tag 

<E1ADRM1 SEGMENT="1">
<PARTNER_Q>AG</PARTNER_Q>
<PARTNER_ID>0001000050</PARTNER_ID>
<LANGUAGE>EN</LANGUAGE>
<NAME1>DIST MAYORISTA NEXSYS MEXICO</NAME1>
<STREET1>BOSQUES DE CIRUELOS PISO1</STREET1>
<STREET2>COL BOSQUES DE LAS LOMA</STREET2>
<POSTL_COD1>11700</POSTL_COD1>
<CITY1>Mexico City</CITY1>
<TELEPHONE1>011-52550040050</TELEPHONE1>
<COUNTRY1>MX</COUNTRY1>
<REGION>DF</REGION>
</E1ADRM1>  )

 

import org.jdom.input.SAXBuilder;
import org.jdom.Document;
import org.jdom.Namespace;
import org.jdom.Element;
import org.jdom.xpath.XPath;
import org.jdom.output.XMLOutputter;
import com.boomi.execution.ExecutionUtil;
logger = ExecutionUtil.getBaseLogger();
import java.io.*;


// Set the full path to the XML element containing the values to split.
//String xpathElementToSplit = "/customers/customer/territory";


// Loop through the Process Documents
for ( int i = 0; i < dataContext.getDataCount(); i++ ) {

InputStream is = dataContext.getStream(i);
Properties props = dataContext.getProperties(i);

// Build XML Document
SAXBuilder builder = new SAXBuilder();
Document doc = builder.build(is);

XPath x = XPath.newInstance("//PARTNER_Q");

 

 

 

// Select multiple nodes and loop through them
myElements = x.selectNodes(doc);

for (Element myElement : myElements) {
// Get the element name & value
String elementName = myElement.getName();
String elementValue = myElement.getText();

logger.info("elementname= " + myElement.getName());

}
XMLOutputter outputter = new XMLOutputter();
is = new ByteArrayInputStream(outputter.outputString(doc).getBytes());
dataContext.storeStream(is, props);
}

Outcomes