The form was created in the designer. I would like to get that structure using livecycle process. Please note that I don´t want all the xfa structure, but only the data part (from a pdf without data value assigned to it).
Ah...now I understand ....if you built the form with a schema definition you can import the schema into the xfaForm variable and the xPath builder will allow you to navigate down to indivuidual node items (thus showing you the structure). If no schema was used then the xPath builder will not know of the stucture (it will still exist) and you as a process developer will have to indicate the path to the nodes (or you can use the // notation to do a search).
What if you merely exported a data file ...then the file will have the structure as well as any data that you have entered into the form. You can export data in Acrobat by using the Forms/Manage Form Data/Export Data option. This will create an xml file that has the structure of the data as you defined it in Designer or using the structure of the schema (if you are using one).
I will not use Acrobat, just reader and workbench. Plus, I would want to turn this step automatic, and not to have someone exporting the file by hand. What I was hopping was that there would be a component in workbench that would output something like Acrobat/Designer does...
Depending on which option of LiveCycle you bought there are services in the Common folder that allow you to extract data from a PDF. Look under the Form Data Integration service and there is an export Data operation there. It is simple to use, pass the form as a dcument variable and the data will come out as a document as well. Then you can use a SetValue to equate an XML var to the Doc var and now you have the xml you seek.