2

I have 2 XSD files. DCL.xsd imports common.xsd. I have DCL.xml. Now, I want to validate DCL.xml with DCL.xsd. How can I achieve this?

Opal
  • 81,889
  • 28
  • 189
  • 210
Majdi
  • 521
  • 4
  • 9

1 Answers1

0

As long as common.xsd is properly incorporated into DCL.xsd using xsd:include or xsd:import, there is nothing extraordinary you have to do to validate DCL.xml against DCL.xsd. Simply associate DCL.xml with DCL.xsd using the usual methods such as schemaLocation or nonamespaceSchemaLocation.

Community
  • 1
  • 1
kjhughes
  • 106,133
  • 27
  • 181
  • 240