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
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
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
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
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
is working on a reply...