N
Norbert Pürringer
Has anyone an advice for me how to deserialize an XML document
containing special characters?
My deserializer looks like following:
public static MyObject Deserialize(XmlDocument xmlRequest)
{
MemoryStream requestStream = new MemoryStream();
xmlRequest.Save(requestStream);
requestStream.Position = 0;
XmlSerializer requestSerializer = new
XmlSerializer(typeof(MyObject));
return
(MyObject)requestSerializer.Deserialize(requestStream);
}
The call of the webservice method and the deserializer:
XmlNode xmlNode = service.GetXmlDocument();
_workflowActions = MyObject.Deserialize(xmlNode);
containing special characters?
My deserializer looks like following:
public static MyObject Deserialize(XmlDocument xmlRequest)
{
MemoryStream requestStream = new MemoryStream();
xmlRequest.Save(requestStream);
requestStream.Position = 0;
XmlSerializer requestSerializer = new
XmlSerializer(typeof(MyObject));
return
(MyObject)requestSerializer.Deserialize(requestStream);
}
The call of the webservice method and the deserializer:
XmlNode xmlNode = service.GetXmlDocument();
_workflowActions = MyObject.Deserialize(xmlNode);