From BaseX Documentation
Revision as of 11:43, 2 February 2011 by AW (talk | contribs) (Created page with "=XML Parsers= By default, the standard [ Java SAXParser] is used to parse the input XML documents. S...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

XML Parsers

By default, the standard Java SAXParser is used to parse the input XML documents. Some documents may not be fully processed by the default parser. This may e.g. be the case if they are too large or contain too many or incorrect entities. The internal, built-in XML parser of BaseX is more fault-tolerant than the default parser. Additionally, it allows you to switch off DTD and/or entity parsing.

There are two ways to switch to the internal XML parser:


Go to Menu DatabaseNew, then choose the Parsing tab and activate Use internal XML parser.

The parsing of entities and DTDs can be turned on/off by clicking on the two checkboxes below.

Command Line

Turn on the database database option INTPARSE before parsing documents: SET INTPARSE ON.

Entity and DTD parsing can be changed by modifying the ENTITY and DTD options.