Moving to XML
|
More about parsers [ii] types
-
Validating parsers
- Read the DTD (or schema)
- Read the document
- If the document isn't valid according to the DTD,
report this
- Good if you're making sure your document conforms to
the dialect standard
-
Non validating parsers
- Don't read the DTD (or schema)
- Read the document
- Will still throw an error if the document has bad
syntax
- Good if you just want to parse XML quickly