I have a Web Service in which I am trying to pass an XMLDocument as a
parameter to one of the methods. I would like to use the XMLTextReader to
read the XML but I am getting the following error:
Value of type System.xml.xmld ocument cannot be converted to
System.IO.textr eader.
I would think this is possible to do.
Code snippet is below:
-------------------------------------------------------
Public Function ChangeAddress(B yVal xml As
XmlDocument) As Boolean
Try
Dim xtr As New XmlTextReader(x ml)
-------------------------------------------------------
Any and all help is greatfully appreciated.
--
Thanks,
Scott
parameter to one of the methods. I would like to use the XMLTextReader to
read the XML but I am getting the following error:
Value of type System.xml.xmld ocument cannot be converted to
System.IO.textr eader.
I would think this is possible to do.
Code snippet is below:
-------------------------------------------------------
Public Function ChangeAddress(B yVal xml As
XmlDocument) As Boolean
Try
Dim xtr As New XmlTextReader(x ml)
-------------------------------------------------------
Any and all help is greatfully appreciated.
--
Thanks,
Scott
Comment