You would need the PRO version and a relation to the parent id so if the document can include a parentbullet element then it's possible. Then you can select //document, select Recursive import and select parentbullet as the parent relation.
I'm using Umbraco 6.2.1 and CMSImport 2.5.2 and trying to do the nested nodes but am failing. I'm pulling XML that looks like this (I took out extraneous tags)
The xml is nested. I assume you are not using an xpath expression. What you can do is specify //Interior as xpath that will give you one list with all interor nodes and then it will work I think.
Then the filename must be the foldername instead of the real file. Otherwise it would have pointed to the filename. Maybe check the xml for that and edit it to select the filename instead of folder?
Nested xml nodes
Hi,
Is it possible to import nested xml nodes as nested document nodes into Umbraco?
Say i have this: xml:
Can that be turned into this:
Hi,
You would need the PRO version and a relation to the parent id so if the document can include a parentbullet element then it's possible. Then you can select //document, select Recursive import and select parentbullet as the parent relation.
Hope this helps,
Richard
Ok, thanks
Hi Richard,
I'm using Umbraco 6.2.1 and CMSImport 2.5.2 and trying to do the nested nodes but am failing. I'm pulling XML that looks like this (I took out extraneous tags)
<Interior id="4535" parentID="1066" level="2" nodeName="NODE ONE" path="-1,1066,4535" isDoc="">
<Interior id="4537" parentID="4535" level="3" nodeName="NODE TWO" path="-1,1066,4535,4537" isDoc="">
<Interior id="4800" parentID="4537" level="4" nodeName="NODE THREE" path="-1,1066,4535,4537,4800" isDoc="">
</Interior>
</Interior>
</Interior>
I've set up the import like so:
It only imports the top node (NODE ONE). What am I missing?
Thanks!
The xml is nested. I assume you are not using an xpath expression. What you can do is specify //Interior as xpath that will give you one list with all interor nodes and then it will work I think.
Best,
Richard
That was exactly my issue, thank you!!!
I do have one more problem though. A media picker is importing images and then linking to their folder instead of the media file.
This is the page field:
This is the media section:
Any ideas on that one?
Hi Carrie,
Then the filename must be the foldername instead of the real file. Otherwise it would have pointed to the filename. Maybe check the xml for that and edit it to select the filename instead of folder?
Best,
Richard
Ahhh, doh! I get it now, the field was just the media ID. Thank you so much for responding so quickly, you are always very helpful!
is working on a reply...