Hello Isomorphic,
I am trying to load an xml file into a DataSource using:
dataFormat: 'xml'
dataURL: < path to my xml file >
clientOnly: true
My xml snapshot has 6 or 7 namespace declarations peppered through the document. In this format, I cannot get the data to load correctly. If I move all the namespaces to the root node, it will work fine. This xml will eventually come from a web service I have no control over, so moving the namespaces is not a real solution.
I've snooped through the code, and following it the best I can it looks like the 'selectNodes' method in the XMLDoc is being called for my valueXPath statements (which have xmlns aliases on them). I've checked the 'namespaces' parameter that is passed in, but it is always undefined. The comment in the codes says something about the default namespaces as well as the namespaces on the "document element" should be available. By "document element" I'm guessing this is in ref to the xml documentElement aka root node?
It looks as if the namespaces param should be able to be passed to the selectNodes method, but DataSource is calling this on my behalf. It further looks that namespaces can be set on a DataSource operationBinding, which I tried to send via xmlNamespaces on a type 'fetch', but it didn't seem to have any effect.
My question is how do I get this style of xml to load?
Thanks,
I am trying to load an xml file into a DataSource using:
dataFormat: 'xml'
dataURL: < path to my xml file >
clientOnly: true
My xml snapshot has 6 or 7 namespace declarations peppered through the document. In this format, I cannot get the data to load correctly. If I move all the namespaces to the root node, it will work fine. This xml will eventually come from a web service I have no control over, so moving the namespaces is not a real solution.
I've snooped through the code, and following it the best I can it looks like the 'selectNodes' method in the XMLDoc is being called for my valueXPath statements (which have xmlns aliases on them). I've checked the 'namespaces' parameter that is passed in, but it is always undefined. The comment in the codes says something about the default namespaces as well as the namespaces on the "document element" should be available. By "document element" I'm guessing this is in ref to the xml documentElement aka root node?
It looks as if the namespaces param should be able to be passed to the selectNodes method, but DataSource is calling this on my behalf. It further looks that namespaces can be set on a DataSource operationBinding, which I tried to send via xmlNamespaces on a type 'fetch', but it didn't seem to have any effect.
My question is how do I get this style of xml to load?
Thanks,
Comment