CHAPTER 4Validating XML with DTDs and XML Schemas

Although XML enables users to define their own markup languages to describe and encapsulate data into XML files, all XML documents must conform to basic “grammar” rules so that application developers can develop software with the assurance that all XML documents conform to certain basic rules of syntax. Document type definitions (DTDs) and XML schemas (XSDs) help you to ensure that your XML documents adhere to specified structures, constraints, and in the case of XSDs, datatypes so that they can be used by applications. This chapter discusses both of these methods while comparing and contrasting how and when they should be used. It will then discuss how these relate to database data and specifically ...

Get Oracle Database 10g XML & SQL: Design, Build, & Manage XML Applications in Java, C, C++, & PL/SQL 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.