• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Part III: XML > XML DTD and Document Validation

Chapter 16. XML DTD and Document Validation

by Eric Ladd

In this chapter

Checking Your DTD Using DXP

Checking Your DTD Using XML for Java

Checking the Validity of XML Files with DXP

Checking the Validity of XML Files with XML for Java

Other XML Parsers

By now, you're aware that an XML document must adhere to the very specific syntax put forward in its Document Type Definition (DTD). As you design an XML document, you are essentially designing its DTD, which resides in a separate file that you must also write. Given an XML document and its DTD, you will find yourself asking two important questions:

  • How can I check that my DTD is correct?

  • How can I check that my documents comply with the rules defined in the DTD?

The answer to both questions is to use a program called a validating parser. In this chapter you will learn how to check your DTD using programs called DXF and XML for Java. Additionally, you'll also see how to verify that your XML files comply with the rules of your DTD using these programs.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint