Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tony Kiernan 278 posts 341 karma points
    Dec 04, 2012 @ 16:14
    Tony Kiernan
    0

    Importing child nodes

    I have an xml file structured similar to this:

    <Period value="2012-12-04Z>
        <Rep max="10">Day</Rep>
        <Rep max="2">Night</Rep>
    </Period>
    <Period value="2012-12-05">
        <Rep max="10">Day</Rep>
        <Rep max="2">Night</Rep>
    </Period>

    I'd like to import those be pretty much the same heiarchy in the content tree

    2012-12-04
    --Day (with max recorded)
    --Night (with max recorded)
    2012-12-05
    --Day
    --Night
    

    I can't get anywhere with this as a child import needs to reference it's parent. Trying to select Rep for a recursive field is doing no good either

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Dec 04, 2012 @ 16:27
    Richard Soeteman
    0

    Hi Tony,

    That is not possible with the data you have here. If you can add id's to the xml elements it would work or you can create a custom DataAdapter. Then you have full control over how the data is retrieved and you have information about the relations. But this requires some coding. Page 38 of the manual shows an example of a Data Adapter.

    I can also send you an example of a DataAdapter I've used in the past to import a specific XML document if you like that.

    Thanks,

    Richard

  • Tony Kiernan 278 posts 341 karma points
    Dec 06, 2012 @ 11:50
    Tony Kiernan
    0

    Not really had much luck with datapadapters.  I think I've found another method to handle this feed, anyway though.  Thanks for your help

Please Sign in or register to post replies

Write your reply to:

Draft