B
Bob
I am receiving XML (not a full document, just a node tree) from a remote
party and then inserting it into my bigger XML document using
XmlWriter.WriteRaw(). The problem is that sometimes the XML from the remote
party has invalid characters (such as \x17, \x08, etc). It is a known bug
and they are working on it. But I need a quick solution ASAP to validate
their XML before passing it into my WriteRaw because it puts my XmlWriter
into a bad state (and it may take weeks for them to fix their code).
Basically I just want to detect whether or not their XML is invalid, and if
so, ignore it. What is the best way to do this?
Thanks
party and then inserting it into my bigger XML document using
XmlWriter.WriteRaw(). The problem is that sometimes the XML from the remote
party has invalid characters (such as \x17, \x08, etc). It is a known bug
and they are working on it. But I need a quick solution ASAP to validate
their XML before passing it into my WriteRaw because it puts my XmlWriter
into a bad state (and it may take weeks for them to fix their code).
Basically I just want to detect whether or not their XML is invalid, and if
so, ignore it. What is the best way to do this?
Thanks