|
Rank: Newbie
Joined: 9/2/2019 Posts: 1 Location: New Zealand
|
Hi,
I have encountered some issues trying to create a user-defined function that will map an XML file that has complex type elements that can recursively contain themselves to an infinite depth.
I have looked at the recursive search guide on the Altova website and it gave some help however it seems to solve the issue of filtering elements in a nested structuring but not mapping them to a non nested form.
The input I have is a XML file which can have multiple 'BuildingPart' elements that can further contain these elements. I want to output a list of all 'BuildingPart' elements in an excel spreadsheet where each row has the attributes of one element. Also ideally there would be a second tab in the sheet that contains ID's of directly linked parent-child BuildingParts. I can't figure out how to go from the nested XML structure to a list of all elements.
Any help would be greatly appreciated.
Cheers,
Jericho
|
|
Rank: Advanced Member
Joined: 2/27/2009 Posts: 564
|
If you could attach some example files (as well as whatever mapping you have so far) to your original post that would be helpful.
|
|
Rank: Advanced Member
Joined: 6/16/2006 Posts: 486 Location: AT
|
An example mapping named "FlattenHierarchy.mfd" is shipped with MapForce; maybe you can use it as a guidance.
|
|
guest |