XML Delete Node

jvanclevejvancleve Member Posts: 20
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

Sign In or Register to comment.