Passing XMLDocument to WS via managed code -- CTYPE vs. LoadXML

T

TimPGade

Helllo,

I was wondering if there is a CTYPE conversion that will take a IP DOM and
make it a XmlDocument or DocumentElement so I can pass it directly to a WS as
an object versus having to manipulate it as a string.

The only way I have been able to accomplish this is via LoadXml as shown
below.


Dim oDocument As New System.Xml.XmlDocument
oDocument.LoadXml(thisXDocument.DOM.selectSingleNode("mstns:dmt0025a").xml)
Dim strResults As String = oWS.SubmitXMLDocument(oDocument)
 
Top