Quantcast
Channel: Microsoft Dynamics AX
Viewing all articles
Browse latest Browse all 101540

Forum Post: RE: Problem in reading the XML TAG in X++ AX 2012

$
0
0
I think that you are not selecting nodes using the name spaces properly. After you instantiate your xmlDocument variable from the file, you need to create a name space manager similar to this. xmlNSMgr = new XmlNamespaceManager(xmlDocument.nameTable()); xmlNSMgr.addNamespace('svc', ' schemas.microsoft.com/.../services& ;); xmlNSMgr.addNamespace('md', ' schemas.microsoft.com/.../TrvPBSMaindata& ;); When you select a node, you need to use the abbreviation for the name space that you set up in the manager. To select your AmountCurr node, you would do something similar to this. amtCurNode = node.selectSingleNode('md:AmountCurr'); It's been a while since I've had to parse an XML document and I am writing this from memory. My apologies if I missed a step. If you need more reference, the classes work very similar to how they work in C#.

Viewing all articles
Browse latest Browse all 101540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>