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 ?
Subhasish Chakraborty,
Systems Analyst,
MBS Dynamics.
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.
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.
Comments
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.
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.
Systems Analyst,
MBS Dynamics.
RIS Plus, LLC
Systems Analyst,
MBS Dynamics.
RIS Plus, LLC