Programmatically schema validating an XML file in a BizTalk pipeline

In our BizTalk 2010 solution, we needed to programmatically validate an XML message in our receive pipeline. Our pipeline is fairly customized, and we found it most convenient to perform this validation as a part of the “Disassemble” step.

We use BizTalk’s XmlValidator component and the standard .NET XmlReader, thereby maintaining a data streams approach to avoid loading entire XML documents into RAM.
Continue reading