cancel
Showing results for 
Search instead for 
Did you mean: 

Extract Data from PDF to XML from different nodes

Former Member
0 Kudos

Hi experts,

i have a problem with extracting data from a PDF to XML, when I am using

node = document->find_from_name( name = 'name').

z_name = node->get_value( ).

it works, but i cant read the data from different nodes with the same fields.

My XML structure looks like this:

<data>

<userdata>

<name> </name>

<email> </email>

</userdata>

<action1>

<mandt> </mandt>

<role> </role>

<system> </system>

</action1>

<action1>

<mandt> </mandt>

<role> </role>

<system> </system>

</action1>

</data>

I can read the <useredata> but how to read the data from <action1> and <action2>? There are the same fields and i don't know how to do it! I tried it with get_children and get_items but still no result.

Please help me or give me some hints!

Thanks a lot!!!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Try to modify your XML schema to get something like this.

<data>

<userdata>

<name> </name>

<email> </email>

</userdata>

<Table>

<mandt> </mandt>

<role> </role>

<system> </system>

<mandt> </mandt>

<role> </role>

<system> </system>

</Table>

</data>

Then look a node Table and process it, for help you can have a look here https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/sampleCodeforprocessingInboundMailwithAdobeInteractive+Forms