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?
Asked
Active
Viewed 244 times
1 Answers
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
.