class XMLNS_PARSER
Summary
Overview
creation features
features
Memory management
parse (a_callbacks: XMLNS_CALLBACKS)
effective procedure
Parse an XML documents by sending parsing events to the given callbacks
connect_to (a_stream: INPUT_STREAM)
effective procedure
Connect to the given XML document
line: INTEGER_32
effective function
column: INTEGER_32
effective function
make
effective procedure
Create a not connected parser
parser: XML_PARSER
writable attribute
callbacks: XMLNS_CALLBACKS
writable attribute
set_validator (a_validator: XMLNS_VALIDATOR)
effective procedure
validator: XMLNS_VALIDATOR
effective function
with_attribute (attribute_name: STRING, attribute_value: STRING, l: INTEGER_32, c: INTEGER_32)
effective procedure
Called by the parser to add an attribute of a node BEFORE calling open_node
open_node (node_name: STRING, l: INTEGER_32, c: INTEGER_32)
effective procedure
When the parser reads an opening node
close_node (node_name: STRING, l: INTEGER_32, c: INTEGER_32)
effective procedure
When the parser reads a closing node
open_close_node (node_name: STRING, l: INTEGER_32, c: INTEGER_32)
effective procedure
When the parser reads a node that opens and closes immediately (syntax "<node/>")
xml_header (l: INTEGER_32, c: INTEGER_32)
effective procedure
Called by the parser if a "<?xml ... ?>"
processing_instruction (a_target: STRING, a_data: STRING)
effective procedure
Called by the parser if a "<?...?>"
entity (a_entity: STRING, l: INTEGER_32, c: INTEGER_32): STRING
effective function
Called by the parser when an &entity; is found.
current_node: STRING
effective function
The current node
data (a_data: STRING, l: INTEGER_32, c: INTEGER_32)
effective procedure
Called by the parser when the node contains raw data
parse_error (l: INTEGER_32, c: INTEGER_32, message: STRING)
effective procedure
Called by the parser if there is an error
at_error: BOOLEAN
effective function
True if there was at least an error
namespace: STRING
writable attribute
set by split_namespace
name: STRING
writable attribute
set by split_namespace
split_namespace (a_name: STRING, l: INTEGER_32, c: INTEGER_32)
effective procedure
Sets namespace and name according to the given name, splitting at the first colon (':').
writable attribute
The known namespaces
xml_attribute (attribute_name: STRING, attribute_value: STRING, l: INTEGER_32, c: INTEGER_32)
effective procedure
find_namespace (a_namespace_ref: STRING): STRING
effective function
attributes_for_new_node: BOOLEAN
writable attribute
once function
new_namespaces: HASHED_DICTIONARY[STRING, STRING]
effective function
old_namespaces (a_namespaces: HASHED_DICTIONARY[STRING, STRING])
effective procedure
namespace_actions: HASHED_DICTIONARY[PROCEDURE[TUPLE 2[XMLNS_PARSER, STRING]], STRING]
once function
register_namespace_action (a_namespace: STRING, a_action: PROCEDURE[TUPLE 2[XMLNS_PARSER, STRING]])
effective procedure