Chapter 3. XML Schema Validation
As we discussed in the previous chapter, an XML schema document defines the structure, content, and semantics for XML documents. In the previous chapter, we discussed the procedure to create an XML schema in JDeveloper and an XML document instance that conforms to the schema. But if you receive XML documents from another party, the validity of the documents has to be ascertained before the documents may be read and processed. That is what this chapter is about—validating an XML document with an XML schema. An instance document may be processed against a schema to verify whether the XML document conforms to the rules specified in the schema, a process called schema validation.
JDeveloper built-in schema validation
Oracle JDeveloper 11g has built-in support for XML schema validation. If an XML document includes a reference to an XML schema, the XML document may be validated with the XML schema using the built-in feature. An XML schema may be specified in an...