Where can I find more information on how to delete a node once I import an xml doc into Navision? It looks like the removeChild method is the way to go, but I can't get it to work.
I am calling a web service and successfully receiving the xml document. I then used this article to apply the stylesheet and remove the namespace:
https://mbs.microsoft.com/partnersource ... page=false
I am left with something like this:
<dataset>
<schema id="whatever">
<element name="whatever">
...
</element>
</schema>
<mydataset>
...
</mydataset>
</dataset>
I want to completely delete the entire <schema> node and only send the <mydataset> to the XMLport. How can I accomplish this? I've seen references to removeChild, but I don't know how to use it in Navision. Help!
](*,)
EDIT: I am using 'Microsoft XML, v5.0'.DOMDocument as my Automation sub type.
Thanks in advance!
Jamison VanCleve
Comments
Node := Doc.selectSingleNode('/dataset/schema');
Doc.documentElement.removeChild(Node);
One other question. Where can I find some documentation for these types of problems? Is there a manual for the XML functions or Automation types anywhere?
Thanks
http://msdn.microsoft.com/en-us/library/aa468547.aspx
There are other pages.
You can also look at NAV codeunits
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n