Hi Badari - take a look at the setExternalSchemaLocation method in AbstractDOMParser and XercesDOMParser. Pass it a space-delimited list of schema files to use.
https://xerces.apache.org/xerces-c/apiDocs-3/classAbstractDOMParser.html#a0562520a59045e3160eb361098b9a160 Lara -----Original Message----- From: Badari Prasad <[email protected]> Sent: Tuesday, April 14, 2020 1:11 PM To: [email protected] Subject: Require info on validating XML using 2 xsd. Hi All, Came across Xerces today, a very nice project in deed. I will be using xerces for my module. I have been looking for some sample code for validating an XML with 2 XSD, 1 XSD is schema for message types and another is kind of common xsd which mentions the format, for example format of email, name etc ... is mentioned in 2nd xsd. I could not figure out how to validate using 2 xsd. I was thinking of merging both XSD into a single XSD file for validating an XML. Please let me know if we have another way instead of merging the XSD files. Thanks badari
