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:
- <?xml version="1.0" encoding="UTF-8"?>
- <details xmlns:lc="CostCentreDetails">
- <transaction>
- <customerCode>ERB001</customerCode>
- <datetime>2008-06-16T14:50:00</datetime>
- <docketNumber>257124</docketNumber>
- <quantity>25.10</quantity>
- <productType>MARKED DIESEL</productType>
- <unitNumber>6336</unitNumber>
- </transaction>
- <transaction>
- <customerCode>ERB001</customerCode>
- <datetime>2008-06-16T14:50:00</datetime>
- <docketNumber>257124</docketNumber>
- <quantity>19.30</quantity>
- <productType>MARKED DIESEL</productType>
- <unitNumber>5651</unitNumber>
- </transaction>
- ...
- </details>
|
|
|