midrange.com code scratchpad
Name:
XML file example
Scriptlanguage:
Plain Text
Tabwidth:
4
Date:
07/11/2008 03:15:53 pm
IP:
Logged
Description:
The structure of the XML file that I'm trying to read with XML-INTO. CCSID is 1208. Leading whitespace on child elements added for readability, the actual document has no leading whitespace.
Code:
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <details xmlns:lc="CostCentreDetails">
  3.     <transaction>
  4.     <customerCode>ERB001</customerCode>
  5.     <datetime>2008-06-16T14:50:00</datetime>
  6.     <docketNumber>257124</docketNumber>
  7.     <quantity>25.10</quantity>
  8.     <productType>MARKED DIESEL</productType>
  9.     <unitNumber>6336</unitNumber>
  10.   </transaction>
  11.   <transaction>
  12.     <customerCode>ERB001</customerCode>
  13.     <datetime>2008-06-16T14:50:00</datetime>
  14.     <docketNumber>257124</docketNumber>
  15.     <quantity>19.30</quantity>
  16.     <productType>MARKED DIESEL</productType>
  17.     <unitNumber>5651</unitNumber>
  18.   </transaction>
  19. ...
  20. </details>
© 2004-2019 by midrange.com generated in 0.005s valid xhtml & css