+
Point of view
All features
deferred class XMLNS_CALLBACKS
Summary
This class fulfills the same role as XML_CALLBACKS, but using namespace differentiation.
Direct parents
Insert list: ANY
Known children
Inherit list: XMLNS_TREE
Overview
Features
{XMLNS_PARSER}
set_validator (a_validator: XMLNS_VALIDATOR)
effective procedure
Sets a validator for this XML file.
require ensure
validator: XMLNS_VALIDATOR
writable attribute
The XML validator for this file (usually an XML Schema)
with_attribute (attribute_namespace: UNICODE_STRING, attribute_name: UNICODE_STRING, attribute_value: UNICODE_STRING, line: INTEGER_32, column: INTEGER_32)
deferred procedure
Called by the parser to add an attribute of a node BEFORE calling open_node
require
  • not attribute_name.is_empty
  • attribute_value /= Void
open_node (node_namespace: UNICODE_STRING, node_name: UNICODE_STRING, line: INTEGER_32, column: INTEGER_32)
deferred procedure
When the parser reads an opening node
require
  • not node_name.is_empty
ensure
close_node (node_namespace: UNICODE_STRING, node_name: UNICODE_STRING, line: INTEGER_32, column: INTEGER_32)
deferred procedure
When the parser reads a closing node
require
open_close_node (node_namespace: UNICODE_STRING, node_name: UNICODE_STRING, line: INTEGER_32, column: INTEGER_32)
deferred procedure
When the parser reads a node that opens and closes immediately (syntax "<node/>")
require
  • not node_name.is_empty
xml_header (line: INTEGER_32, column: INTEGER_32)
deferred procedure
Called by the parser if a "<?xml ... ?>"
header is read. Note that with_attribute may have been called first (usually with the version and encoding attributes)
processing_instruction (a_target: UNICODE_STRING, a_data: UNICODE_STRING)
deferred procedure
Called by the parser if a "<?...?>"
processing instruction is read.
entity (a_entity: UNICODE_STRING, line: INTEGER_32, column: INTEGER_32): UNICODE_STRING
deferred function
Called by the parser when an &entity; is found.
Note that standard XML attributes (lt, gt, amp, apos and quot) are automatically handled and not given to this feature (they cannot be bypassed). Returns Void if the entity is not recognized.
current_node: UNICODE_STRING
deferred function
The current node
current_namespace: UNICODE_STRING
deferred function
The current namespace
data (a_data: UNICODE_STRING, line: INTEGER_32, column: INTEGER_32)
deferred procedure
Called by the parser when the node contains raw data
require
  • not a_data.is_empty
parse_error (line: INTEGER_32, column: INTEGER_32, message: STRING)
deferred procedure
Called by the parser if there is an error
require
  • message /= Void
ensure
at_error: BOOLEAN
deferred function
True if there was at least an error