Class XmlParser

Superclasses :
xml::Parser
util::Error
Package :
xml

Source

Class summary
Methods inherited from util::Error
error(a) get_reason()
Variables inherited from util::Error
reason
Methods defined in this class
check_is_char_data(s, msg) clear_do_namespaces() clear_preserve_comments() clear_preserve_insignificant_whitespace() clear_validate() convert_element(resolve_table, el) convert_name(resolve_table, name) do_namespace_processing() do_namespace_processing_element(resolve_table, el) dtd_any(c) dtd_looking_at_space_then(s) dtd_looking_at_space_then_cset(c) dtd_many(c) dtd_many_star(c) dtd_match(s) dtd_opt_spaces() dtd_parse_name() dtd_parse_nmtoken() dtd_spaces() end_divert() err(s) get_error_handler() get_resolver() initially() invalid(s) looking_at_space_then(s) looking_at_space_then_cset(c) lookup_entity_ref(s) lookup_pe_reference(s) make_declarations_map(el) normalize_attvalue(s, attdef) normalize_attvalue1(s, circle) normalize_eol(s) opt_spaces() parse(s) parse_and_maybe_add_comment(parent) parse_att_type(attribute_def) parse_attlist_decl() parse_attribute(el, attlist) parse_attvalue() parse_cdsect() parse_char_ref(expand) parse_children() parse_choiceseq() parse_comment() parse_conditional_sect() parse_content(parent, circle) parse_content_spec() parse_cp() parse_default_decl(attribute_def) parse_doctype_decl() parse_element(parent_el) parse_element_decl() parse_enc_name() parse_encoding_decl() parse_entity_decl() parse_entity_def() parse_entity_ref() parse_entity_value() parse_enumeration() parse_eq() parse_etag(el) parse_ext_subset() parse_ext_subset_decl() parse_external_id() parse_external_parsed_entity(parent, circle) parse_ignore_sect_contents() parse_markup_decls() parse_misc_star() parse_mixed() parse_name(quiet) parse_names(quiet) parse_ndata_decl() parse_nmtoken(quiet) parse_nmtokens(quiet) parse_notation_decl() parse_notation_type() parse_pe_def() parse_pe_reference() parse_pi() parse_pi_target() parse_prolog() parse_pubid_literal() parse_reference() parse_sdecl() parse_system_literal() parse_text_decl() parse_version_info() parse_version_num() parse_xml_decl() resolve(external_id) resolve_entity(o) set_do_namespaces() set_error_handler(error_handler) set_preserve_comments() set_preserve_insignificant_whitespace() set_resolver(r) set_validate() spaces() start_divert(id) try_dtd_insert(i) validate_attribute_value(element_name, attdef, name, val) validate_attributes(el) validate_children(el, parent_el) validate_docname() validate_idrefs() warn(s)
Variables defined in this class
current_divert_id divert_stack do_namespaces_flag doc dtd_insert_shown_error error_handler in_ext_subset preserve_comments_flag preserve_insignificant_whitespace_flag resolver validate_flag

Method detail

check_is_char_data(s, msg)

Source

clear_do_namespaces()

Configure the parser to not do namespace post-processing.
Source

clear_preserve_comments()

Configure the parser to not preserve comments.
Source

clear_preserve_insignificant_whitespace()

Configure the parser to not keep insignificant whitespace (where it can be detected via the DTD), in the output document. This is the default.
Source

clear_validate()

Configure the parser to not validate.
Source

convert_element(resolve_table, el)

Private method, not intended for client invocation

convert_name(resolve_table, name)

Private method, not intended for client invocation

do_namespace_processing()

Private method, not intended for client invocation

do_namespace_processing_element(resolve_table, el)

Private method, not intended for client invocation

dtd_any(c)

Private method, not intended for client invocation

dtd_looking_at_space_then(s)

Private method, not intended for client invocation

dtd_looking_at_space_then_cset(c)

Private method, not intended for client invocation

dtd_many(c)

Private method, not intended for client invocation

dtd_many_star(c)

Private method, not intended for client invocation

dtd_match(s)

Private method, not intended for client invocation

dtd_opt_spaces()

Source

dtd_parse_name()

Private method, not intended for client invocation

dtd_parse_nmtoken()

Private method, not intended for client invocation

dtd_spaces()

Source

end_divert()

Source

err(s)

A fatal error
Source

get_error_handler()

Get the error handler
Source

get_resolver()

Get the resolver being used
Source

initially()


invalid(s)

A validity error
Source

looking_at_space_then(s)

Private method, not intended for client invocation

looking_at_space_then_cset(c)

Private method, not intended for client invocation

lookup_entity_ref(s)

Private method, not intended for client invocation

lookup_pe_reference(s)

Private method, not intended for client invocation

make_declarations_map(el)

Private method, not intended for client invocation

normalize_attvalue(s, attdef)

Private method, not intended for client invocation

normalize_attvalue1(s, circle)

Source

normalize_eol(s)

Private method, not intended for client invocation

opt_spaces()

Private method, not intended for client invocation

parse(s)

Parse the string s returning an XmlDocument object.

[1] document ::= prolog element Misc*

Source

parse_and_maybe_add_comment(parent)

Private method, not intended for client invocation

parse_att_type(attribute_def)

Private method, not intended for client invocation

parse_attlist_decl()

Private method, not intended for client invocation

parse_attribute(el, attlist)

Private method, not intended for client invocation

parse_attvalue()

Private method, not intended for client invocation

parse_cdsect()

Private method, not intended for client invocation

parse_char_ref(expand)

Private method, not intended for client invocation

parse_children()

Private method, not intended for client invocation

parse_choiceseq()

Private method, not intended for client invocation

parse_comment()

Private method, not intended for client invocation

parse_conditional_sect()

Private method, not intended for client invocation

parse_content(parent, circle)

Private method, not intended for client invocation

parse_content_spec()

Private method, not intended for client invocation

parse_cp()

Private method, not intended for client invocation

parse_default_decl(attribute_def)

Private method, not intended for client invocation

parse_doctype_decl()

Private method, not intended for client invocation

parse_element(parent_el)

Private method, not intended for client invocation

parse_element_decl()

Private method, not intended for client invocation

parse_enc_name()

Private method, not intended for client invocation

parse_encoding_decl()

Private method, not intended for client invocation

parse_entity_decl()

Private method, not intended for client invocation

parse_entity_def()

Private method, not intended for client invocation

parse_entity_ref()

Private method, not intended for client invocation

parse_entity_value()

Private method, not intended for client invocation

parse_enumeration()

Private method, not intended for client invocation

parse_eq()

Private method, not intended for client invocation

parse_etag(el)

Private method, not intended for client invocation

parse_ext_subset()

Private method, not intended for client invocation

parse_ext_subset_decl()

Private method, not intended for client invocation

parse_external_id()

Private method, not intended for client invocation

parse_external_parsed_entity(parent, circle)

Private method, not intended for client invocation

parse_ignore_sect_contents()

Private method, not intended for client invocation

parse_markup_decls()

Private method, not intended for client invocation

parse_misc_star()

Private method, not intended for client invocation

parse_mixed()

Private method, not intended for client invocation

parse_name(quiet)

Private method, not intended for client invocation

parse_names(quiet)

Private method, not intended for client invocation

parse_ndata_decl()

Private method, not intended for client invocation

parse_nmtoken(quiet)

Private method, not intended for client invocation

parse_nmtokens(quiet)

Private method, not intended for client invocation

parse_notation_decl()

Private method, not intended for client invocation

parse_notation_type()

Private method, not intended for client invocation

parse_pe_def()

Private method, not intended for client invocation

parse_pe_reference()

Private method, not intended for client invocation

parse_pi()

Private method, not intended for client invocation

parse_pi_target()

Private method, not intended for client invocation

parse_prolog()

Private method, not intended for client invocation

parse_pubid_literal()

Private method, not intended for client invocation

parse_reference()

Private method, not intended for client invocation

parse_sdecl()

Private method, not intended for client invocation

parse_system_literal()

Private method, not intended for client invocation

parse_text_decl()

Private method, not intended for client invocation

parse_version_info()

Private method, not intended for client invocation

parse_version_num()

Private method, not intended for client invocation

parse_xml_decl()

Private method, not intended for client invocation

resolve(external_id)

Private method, not intended for client invocation

resolve_entity(o)

Private method, not intended for client invocation

set_do_namespaces()

Configure the parser to do namespace post-processing (the default).
Source

set_error_handler(error_handler)

Set the error handler
Source

set_preserve_comments()

Configure the parser to preserve comments (the default).
Source

set_preserve_insignificant_whitespace()

Configure the parser to always keep insignificant whitespace in the output document. Generally only useful for testing purposes; XML canonical form needs this flag to be set because it is a byte for byte output which needs to include insignificate whitespace.
Source

set_resolver(r)

Set the resolver
Source

set_validate()

Configure the parser to validate (the default).
Source

spaces()

Private method, not intended for client invocation

start_divert(id)

Source

try_dtd_insert(i)

Private method, not intended for client invocation

validate_attribute_value(element_name, attdef, name, val)

Source

validate_attributes(el)

Validate the attributes of an element
Source

validate_children(el, parent_el)

Validate the given element child content; this may fail on error or just emit a warning
Source

validate_docname()

Source

validate_idrefs()

Private method, not intended for client invocation

warn(s)

A warning
Source

Variable detail

current_divert_id


divert_stack


do_namespaces_flag


doc


dtd_insert_shown_error


error_handler


in_ext_subset


preserve_comments_flag


preserve_insignificant_whitespace_flag


resolver


validate_flag