enum

XML::ParserOptions

Inherits Enum / Comparable / Value / Object

Constants

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

None = 0
All = 8388607

Constructors

default

Returns default options for parsing XML documents.

Default flags are: RECOVER | NOWARNING | NONET

Source

Instance methods

big_lines?

Returns true if this enum value contains BIG_LINES

Source
compact?

Returns true if this enum value contains COMPACT

Source
dtdattr?

Returns true if this enum value contains DTDATTR

Source
dtdload?

Returns true if this enum value contains DTDLOAD

Source
dtdvalid?

Returns true if this enum value contains DTDVALID

Source
huge?

Returns true if this enum value contains HUGE

Source
ignore_enc?

Returns true if this enum value contains IGNORE_ENC

Source
nobasefix?

Returns true if this enum value contains NOBASEFIX

Source
noblanks?

Returns true if this enum value contains NOBLANKS

Source
nocdata?

Returns true if this enum value contains NOCDATA

Source
nodict?

Returns true if this enum value contains NODICT

Source
noent?

Returns true if this enum value contains NOENT

Source
noerror?

Returns true if this enum value contains NOERROR

Source
none?
Source
nonet?

Returns true if this enum value contains NONET

Source
nowarning?

Returns true if this enum value contains NOWARNING

Source
noxincnode?

Returns true if this enum value contains NOXINCNODE

Source
nsclean?

Returns true if this enum value contains NSCLEAN

Source
old10?

Returns true if this enum value contains OLD10

Source
oldsax?

Returns true if this enum value contains OLDSAX

Source
pedantic?

Returns true if this enum value contains PEDANTIC

Source
recover?

Returns true if this enum value contains RECOVER

Source
sax1?

Returns true if this enum value contains SAX1

Source
xinclude?

Returns true if this enum value contains XINCLUDE

Source