I was using Xerces C++ and I needed to validate XML files against multiple xsd files. For single XSD I am doing this and it\'s working as well:
MemBufInputSource