Skip to Content
0
Jun 29, 2015 at 11:15 AM

Simple Transformation - complicated XML

44 Views

Hi experts,

I am trying to deserialize XML from attachment using Simple Transformation and I've got many questions about it.

1. How should I handle the header:

<?xml version="1.0" encoding="utf-8"?>
<Documents xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Invoice.xsd">
<Document Version="1.0" Name="XML Invoice" Type="Invoice" DocumentReference="" ImageReference="" CertificateReference="">

It should be inserted just like that in ST (Simple Transformation) or should it be parsed to some structure?

2. What to do with fields having attributes instead of elements:

<Field Name="Waluta" Type="invoicecurrency">EUR</Field>

3. Should I create structures for all levels or can I skip header and "System" and "ProcessLog" from the end of file?

I'd be very grateful for every answer.

Attachments

xml_to_parse.xml (4.7 kB)