Valid XML Documents
XML documents whose syntax has been checked successfully are called valid documents; in particular, an XML document is considered valid if there is a document type definition (DTD) or XML schema associated with it and if the document complies with the DTD or schema. That's all there is to making a document valid. This chapter is all about creating basic DTDs. In the next chapter, I'll elaborate on the DTDs we create here and show how to declare entities, attributes, and notations.
You can find the formal rules for DTDs in the XML 1.0 recommendation, www.w3.org/TR/REC-xml, which also appears in Appendix A, “The XML Specification.” The constraints that documents and DTDs must adhere to in order to create a valid document are ...
Get Real World XML now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.