Skip to content

enum XML::ParserOptions

Members

RECOVER = 1

Recover on errors

NOENT = 2

Substitute entities

DTDLOAD = 4

Load the external subset

DTDATTR = 8

Default DTD attributes

DTDVALID = 16

Validate with the DTD

NOERROR = 32

Suppress error reports

NOWARNING = 64

Suppress warning reports

PEDANTIC = 128

Pedantic error reporting

NOBLANKS = 256

Remove blank nodes

SAX1 = 512

Use the SAX1 interface internally

XINCLUDE = 1024

Implement XInclude substitution

NONET = 2048

Forbid network access

NODICT = 4096

Do not reuse the context dictionary

NSCLEAN = 8192

Remove redundant namespaces declarations

NOCDATA = 16384

Merge CDATA as text nodes

NOXINCNODE = 32768

Do not generate XINCLUDE START/END nodes

COMPACT = 65536

Compact small text nodes; no modification of the tree allowed afterwards (will possibly crash if you try to modify the tree)

OLD10 = 131072

Parse using XML-1.0 before update 5

NOBASEFIX = 262144

Do not fixup XINCLUDE xml:base uris

HUGE = 524288

Relax any hardcoded limit from the parser

OLDSAX = 1048576

Parse using SAX2 interface before 2.7.0

IGNORE_ENC = 2097152

Ignore internal document encoding hint

BIG_LINES = 4194304

Store big lines numbers in text PSVI field

Class methods

.default : self

Returns default options for parsing XML documents.

Default flags are: RECOVER | NOERROR | NOWARNING | NONET

View source

Methods

#big_lines?

View source

#compact?

View source

#dtdattr?

View source

#dtdload?

View source

#dtdvalid?

View source

#huge?

View source

#ignore_enc?

View source

#nobasefix?

View source

#noblanks?

View source

#nocdata?

View source

#nodict?

View source

#noent?

View source

#noerror?

View source

#none?

View source

#nonet?

View source

#nowarning?

View source

#noxincnode?

View source

#nsclean?

View source

#old10?

View source

#oldsax?

View source

#pedantic?

View source

#recover?

View source

#sax1?

View source

#xinclude?

View source