Module LibXML::XML::Parser::Options

  1. ext/libxml/libxml.c

Options that control the operation of the HTMLParser. The easiest way to set a parser’s options is to use the methods XML::Parser.file, XML::Parser.io or XML::Parser.string. For additional control, see XML::Parser::Context#options=.

Constants

RECOVER = INT2NUM(XML_PARSE_RECOVER)   recover on errors
NOENT = INT2NUM(XML_PARSE_NOENT)   substitute entities
DTDLOAD = INT2NUM(XML_PARSE_DTDLOAD)   load the external subset
DTDATTR = INT2NUM(XML_PARSE_DTDATTR)   default DTD attributes
DTDVALID = INT2NUM(XML_PARSE_DTDVALID)   validate with the DTD
NOERROR = INT2NUM(XML_PARSE_NOERROR)   suppress error reports
NOWARNING = INT2NUM(XML_PARSE_NOWARNING)   suppress warning reports
PEDANTIC = INT2NUM(XML_PARSE_PEDANTIC)   pedantic error reporting
NOBLANKS = INT2NUM(XML_PARSE_NOBLANKS)   remove blank nodes
SAX1 = INT2NUM(XML_PARSE_SAX1)   use the SAX1 interface internally
XINCLUDE = INT2NUM(XML_PARSE_XINCLUDE)   Implement XInclude substitition
NONET = INT2NUM(XML_PARSE_NONET)   Forbid network access
NODICT = INT2NUM(XML_PARSE_NODICT)   Do not reuse the context dictionnary
NSCLEAN = INT2NUM(XML_PARSE_NSCLEAN)   remove redundant namespaces declarations
NOCDATA = INT2NUM(XML_PARSE_NOCDATA)   merge CDATA as text nodes
NOXINCNODE = INT2NUM(XML_PARSE_NOXINCNODE)   do not generate XINCLUDE START/END nodes
COMPACT = INT2NUM(XML_PARSE_COMPACT)   compact small text nodes
PARSE_OLD10 = INT2NUM(XML_PARSE_OLD10)   parse using XML-1.0 before update 5
NOBASEFIX = do not fixup XINCLUDE xml   base uris
HUGE = INT2NUM(XML_PARSE_HUGE)   relax any hardcoded limit from the parser