R
Random
I have an XML document that I am retrieving from a Web Service as a String.
I need to load this String into a locally accessible XMLDocument and a
custom class that I will Deserialize it into. I know how to do the
serialization, but am having trouble getting the string into the XMLReader.
Here is what I've been working with:
Dim oXML As New XmlDocument
Dim sXML As String = [WebMethod Request, returning XML]
oXML.LoadXml(sXML)
Dim xSer As New XmlSerializer(GetType(MyCustomClass))
Return xSer.Deserialize(???)
Now, I obviously need to create the XmlReader for deserailization, but how
can I get the contents of the XML document in there?
I need to load this String into a locally accessible XMLDocument and a
custom class that I will Deserialize it into. I know how to do the
serialization, but am having trouble getting the string into the XMLReader.
Here is what I've been working with:
Dim oXML As New XmlDocument
Dim sXML As String = [WebMethod Request, returning XML]
oXML.LoadXml(sXML)
Dim xSer As New XmlSerializer(GetType(MyCustomClass))
Return xSer.Deserialize(???)
Now, I obviously need to create the XmlReader for deserailization, but how
can I get the contents of the XML document in there?