ASP.NET Web Service validating incoming XML

alubawlinwala

New Member
I have ASP.NET 4 Web Service (asmx). I use IXmlSerializable interface for manually serialization/deserialization. In the function ReadXml (part of IXmlSerializable) I use functin XmlReader.ReadString and if client send me invalidate XML this function throw exception. How I validate incoming XMl before deserialization? Because exception is very hard operation for perfomance.
 
Back
Top