Question

How to read simple xml

  • 26 February 2020
  • 1 reply
  • 3 views

Badge

Hello,

I know (hope) that there is probably an easy solution for this. I'm trying to read the XML file using the Feature Paths configuration type but it seems I can't get it right...

 

I have simple xml file like this:

<A>
    <B>
        <ATT1>10</ATT1>
        <ATT2>20</ATT2>
    </B>
    <B>
        <ATT1>30</ATT1>
        <ATT2>40</ATT2>
    </B>
</A>

 

I want to read it like this:

ATT1

ATT2

 

10

 

20

 

30

 

40

 

 

Instead, I'm getting this:

ATT1

 

ATT2

 

10

 

<missing>

 

<missing>

 

20

 

30

 

<missing>

 

<missing>

 

40

 

Can somebody please tell me what setting I have to apply in XML reader.

 

Thanks!

Mario

 


1 reply

Badge

OK. I did it after 2 hours of trying just by clicking the "enable flattening" checkbox. The thing is that I did it previously but it didn't work. It seems it doesn't work if you edit the reader - after I deleted it and add it again with checked enabling flattening box, than it worked...

Reply