+
Point of view
All features
class XMLNS_TREE
Summary
Overview
creation features
features
Memory management
root: XMLNS_NODE
writable attribute
The root of the tree
attribute_at (a_attribute_name: STRING): STRING
effective function
Usually to recover the "version" or "encoding" attributes
set_processing_instruction (target: STRING, processor: PROCEDURE[TUPLE 1[STRING]])
effective procedure
writable attribute
tree_attributes: HASHED_DICTIONARY[STRING, STRING]
writable attribute
open_nodes: STACK[XMLNS_NODE]
writable attribute
once function
with_attribute (attribute_namespace: STRING, attribute_name: STRING, attribute_value: STRING, line: INTEGER_32, column: INTEGER_32)
effective procedure
Called by the parser to add an attribute of a node BEFORE calling open_node
open_node (node_namespace: STRING, node_name: STRING, line: INTEGER_32, column: INTEGER_32)
effective procedure
When the parser reads an opening node
close_node (node_namespace: STRING, node_name: STRING, line: INTEGER_32, column: INTEGER_32)
effective procedure
When the parser reads a closing node
open_close_node (node_namespace: STRING, node_name: STRING, line: INTEGER_32, column: INTEGER_32)
effective procedure
When the parser reads a node that opens and closes immediately (syntax "<node/>")
xml_header (line: INTEGER_32, column: 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 "<?...?>"
current_node: STRING
effective function
The current node
current_namespace: STRING
effective function
The current namespace
entity (a_entity: STRING, line: INTEGER_32, column: INTEGER_32): STRING
effective function
Called by the parser when an &entity; is found.
data (a_data: STRING, line: INTEGER_32, column: INTEGER_32)
effective procedure
Called by the parser when the node contains raw data
parse_error (line: INTEGER_32, column: INTEGER_32, message: STRING)
effective procedure
Called by the parser if there is an error
at_error: BOOLEAN
writable attribute
True if there was at least an error
writable attribute
make (in: INPUT_STREAM)
effective procedure
read the xml tree in the given input stream
with_error_handler (in: INPUT_STREAM, a_error_handler: PROCEDURE[TUPLE 3[INTEGER_32, INTEGER_32, STRING]])
effective procedure
new_node (node_namespace: STRING, node_name: STRING, line: INTEGER_32, column: INTEGER_32): XMLNS_NODE
effective function
parser: XMLNS_PARSER
once function
once function
new_attributes: HASHED_DICTIONARY[STRING, STRING]
effective function
old_attributes (a_attributes: HASHED_DICTIONARY[STRING, STRING])
effective procedure
attributes_for (namespace: STRING): HASHED_DICTIONARY[STRING, STRING]
effective function
clear_attributes
effective procedure
set_validator (a_validator: XMLNS_VALIDATOR)
effective procedure
Sets a validator for this XML file.
validator: XMLNS_VALIDATOR
writable attribute
The XML validator for this file (usually an XML Schema)