I am preparing xml datamaping, but I have different records in xml. settings allow me to select only one. How can I introduce all of the records in xml?
example XML = Link
sample output = Link
Hello Halilu,
Are you saying that you want the entire XML file that you linked to be treated as one single record?
If so, then I would enable the “Use root element” option in the Input Data settings of your datamapper. Alternatively, you can simply use the drop-down list “XML elements” to select your desired root node for the record boundaries.
Hello Stephen;
Planet Press 7 Suid
when I select “Second Element” as in the first picture I send below, the same xml can be divided into records like the second picture. I want to do this in PP2018.3 as well.
1
2
What you need is the capacity to have the second level of your node structure be your record delimeter, regardless of the XPATH. Unfortunately this isn’t possible to do in the DataMapper at this time.
The dropdown list of XPaths allows you to define a record boundary deeper than the first or second level, but the downside is that your node delimeter cannot be dynamic. I will create an internal improvement request to see if we can have this functionality added to the DataMapper: since this is a loss of functionality when coming from PlanetPress Suite.
For now, the workaround would be to use the search and replace plugins in the workflow to normalize your second level nodes to all have the same name. Then use information inside the nodes to differentiate them from one another.