Links regarding XML parsing in Navision

subhaster
Member Posts: 64
Hi ,
Does anyone know , is/are there any links from where I can get an Idea of how to parse an XML file in Navision ?
Is there any e-book on such topic ?
Does anyone know , is/are there any links from where I can get an Idea of how to parse an XML file in Navision ?
Is there any e-book on such topic ?
Subhasish Chakraborty,
Systems Analyst,
MBS Dynamics.
Systems Analyst,
MBS Dynamics.
0
Comments
-
Hi,
could you be more specific what are you trying to do? Could you give an example?
And try to search the forum. There is lots of information about xml files.0 -
actually , i would like to know how would i go for parsing an xml document (using XMLDOcuments,IXMLDomDocs).
I am using a code that looks like this :-
When I print by saying :-
XmlNode;=XmlDom.Documenelement;
message(XmlNode.text);
the out put is perfect :-
<MSG>ITEM0001</MSG>
But when I use :-
InMsg := InMessage;
InS := InMsg.GetStream();
XMLDom.load(InS);
XmlNode := XMLDom.selectSingleNode('MSG');
ParseRequest(XmlNode.text);
I am getting an error like this :-
You have not instantiated the automation variable. You can instantiate it by eighter creating it/ assigning it.Subhasish Chakraborty,
Systems Analyst,
MBS Dynamics.0 -
In order to use an automation type variable, you have to instantiate it. For the XMLDom object, you first do this:
CREATE(XMLDOM);
and then you should be able to use its methods. Similarly, when you're done with the variable, you do this:CLEAR(XMLDOM);
to destroy it from memory.0 -
Thanks so much Den... I worked it out . Actually the MSMQ stream , that I was getting , was a text , but I was treating it as an XML File. Now I have changed the iussueing Web Service from where I was actually generating the XML, and now it is getting parsed properly.Subhasish Chakraborty,
Systems Analyst,
MBS Dynamics.0 -
I think there's a LoadText method in XMLDOM that you could try also.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions