==XML Parsers==
By default, the standard Java [http://download.oracle.com/javase/6/docs/api/javax/xml/BaseX provides two parsers/SAXParser.html SAXParser] is used to parse the input import 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.data:
The * by default, the standard Java [http://download.oracle.com/javase/6/docs/api/javax/xml/parsers/SAXParser.html 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, and supports all standard HTML entities out-of-the-box. AdditionallyIn turn, it allows you to switch off DTD and/or entity parsingdoes not support all peculiarities introduced by DTDs. There are two ways to switch to the internal XML parser:
===GUI===
Go to Menu ''Database'' → ''New'', then choose the ''Parsing'' tab and (de)activate ''Use internal XML parser''. The parsing of entities and DTDs can be turned on/off by clicking on selecting the two check boxes checkbox below.
===Command Line===
Turn on the [[Options#INTPARSE|INTPARSE]] option before parsing documents to use To activate the internal XML parserand activate DTD parsing, modfify the <code>INTPARSE</code> and <code>DTD</code> options:
SET [[Options#INTPARSE|INTPARSE]] ON
Entity and DTD parsing can be changed by modifying the SET [[Options#DTD|DTD]] options.ON
===XQuery===