Copied to clipboard

Flag this post as spam?

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


  • Alec Colebrook-Clark 134 posts 258 karma points
    Aug 24, 2009 @ 13:59
    Alec Colebrook-Clark
    0

    XML Import

    Howdy

    Sorry for creating a new post Richard! Just wondering what limitations there are on Xpath. This wonderful package picks up All the elements but i need to perform multiple selections is this just me being bad at Xpath?

    so yeah just wondering if there are any known issues using xml and xpath

     

    Thanks

    Alec

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Aug 25, 2009 @ 08:53
    Richard Soeteman
    100

    Hi Alec,

    The Xml DataAdapter has a few limitations.

    1. It's only possible to import a flat structure
    2, You can only use Elements. Attributes are simply ignored

    You can specify an xPath just for filtering records. It's not really fancy.If you want more control over the data in xml it's maybe easier to create a custom DataAdapter. It's just a matter of creating a class for the logic and another class for the UI. I've written a blogpost on that subject a few months back. You'll find it here

    Hope this helps you,

    Richard

  • Alec Colebrook-Clark 134 posts 258 karma points
    Aug 25, 2009 @ 09:41
    Alec Colebrook-Clark
    0

    Thanks Richard.

    That just confirmed my suspicions. Anyway the workaround we implemented flattened the structure so it now works perfectly. Thanks for the reply!

    Cheers

    Alec

Please Sign in or register to post replies

Write your reply to:

Draft