Day 20

Quiz

A1: A DTD, or Document Type Definition, is used for defining the grammar, that is, the structure, of an XML file. An XML parser uses the DTD as a validation reference while parsing and validating XML files.
A2: The two parsers available for XML files are the SAX parser and the DOM parser. The parsers differ on the mechanism used for parsing an XML file. A SAX parser is a fast-processing event handler that performs validation using the DTD but leaves the responsibility for processing the contents of an XML file to the application developer. The DOM parser, on the other hand, generates a DOM tree of objects using the contents of an XML file. This DOM tree can be easily navigated to access and change the contents of the parsed XML file. ...

Get Sams Teach Yourself BEA WebLogic Server 7.0™ in 21 Days 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.