Changes

Jump to navigation Jump to search
1,079 bytes added ,  12:43, 2 February 2011
Created page with "=XML Parsers= By default, the standard [http://download.oracle.com/javase/6/docs/api/javax/xml/parsers/SAXParser.html Java SAXParser] is used to parse the input XML documents. S..."
=XML Parsers=

By default, the standard [http://download.oracle.com/javase/6/docs/api/javax/xml/parsers/SAXParser.html 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:

==GUI==

Go to Menu ''Database'' → ''New'', 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 [[Options#Database options|INTPARSE]] before parsing documents: <code>SET INTPARSE ON</code>.

Entity and DTD parsing can be changed by modifying the [[Options#Database options|ENTITY]]
and [[Options#Database options|DTD]] options.

[[Category: Internal]]
bueraucrat, Bureaucrats, editor, reviewer, Administrators
907

edits

Navigation menu