Processing XML documents with Oracle JDeveloper 11g
上QQ阅读APP看书,第一时间看更新

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.