+
Point of view
All features
class XML_TREE
Summary
DOM-like representation of an XML document
See also XML_PARSER
Direct parents
Inherit list: XML_CALLBACKS
Overview
Creation features
{ANY}
Features
{ANY}
{}
{XML_PARSER}
{}
{XML_PARSER}
writable attribute
{ANY}
The root of the tree
attribute_at (a_attribute_name: UNICODE_STRING): UNICODE_STRING
effective function
{ANY}
Usually to recover the "version" or "encoding" attributes
set_processing_instruction (target: UNICODE_STRING, processor: PROCEDURE[TUPLE 1[UNICODE_STRING]])
effective procedure
{ANY}
writable attribute
{}
writable attribute
{}
writable attribute
{}
once function
{}
with_attribute (attribute_name: UNICODE_STRING, attribute_value: UNICODE_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_name: UNICODE_STRING, line: INTEGER_32, column: INTEGER_32)
effective procedure
When the parser reads an opening node
close_node (node_name: UNICODE_STRING, line: INTEGER_32, column: INTEGER_32)
effective procedure
When the parser reads a closing node
open_close_node (node_name: UNICODE_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: UNICODE_STRING, a_data: UNICODE_STRING)
effective procedure
Called by the parser if a "<?...?>"
current_node: UNICODE_STRING
effective function
The current node
entity (a_entity: UNICODE_STRING, line: INTEGER_32, column: INTEGER_32): UNICODE_STRING
effective function
Called by the parser when an &entity; is found.
open_entity_url (a_entity: UNICODE_STRING, a_url: URL)
effective procedure
Called by the parser when the entity triggers the reading of another stream (i.e. a SYSTEM or PUBLIC entity)
close_entity_url (a_entity: UNICODE_STRING, a_url: URL)
effective procedure
Called by the parser when the stream triggered by open_entity_url is disconnected
data (a_data: UNICODE_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 (url: URL)
effective procedure
{}
read the xml tree at the given url
with_error_handler (url: URL, a_error_handler: PROCEDURE[TUPLE 3[INTEGER_32, INTEGER_32, STRING]])
effective procedure
{}
new_node (node_name: UNICODE_STRING, line: INTEGER_32, column: INTEGER_32): XML_COMPOSITE_NODE
effective function
{}
parser: XML_PARSER
once function
{}
set_validator (a_validator: XML_VALIDATOR)
effective procedure
Sets a validator for this XML file.
validator: XML_VALIDATOR
writable attribute
The XML validator for this file (DTD, XML Schema...)