+
Point of view
All features
deferred class XML_VALIDATOR
Summary
Helps the parser to validate an XML file
Direct parents
Insert list: ANY
Known children
Inherit list: XML_DTD_VALIDATOR
Overview
Features
{XML_PARSER}
with_attribute (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
  • not attribute_value.is_empty
is_valid_open_node (node_name: UNICODE_STRING, line: INTEGER_32, column: INTEGER_32): BOOLEAN
deferred function
When the parser reads an opening node
require
  • not node_name.is_empty
is_valid_close_node (node_name: UNICODE_STRING, line: INTEGER_32, column: INTEGER_32): BOOLEAN
deferred function
When the parser reads a closing node
require
is_valid_open_close_node (node_name: UNICODE_STRING, line: INTEGER_32, column: INTEGER_32): BOOLEAN
deferred function
When the parser reads a node that opens and closes immediately (syntax "<node/>")
require
  • not node_name.is_empty
open_node (node_name: UNICODE_STRING, line: INTEGER_32, column: INTEGER_32)
deferred procedure
When the parser reads an opening node
require ensure
close_node (node_name: UNICODE_STRING, line: INTEGER_32, column: INTEGER_32)
deferred procedure
When the parser reads a closing node
require
open_close_node (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
current_node: UNICODE_STRING
deferred function
The current node
entity (a_entity: UNICODE_STRING, line: INTEGER_32, column: INTEGER_32): UNICODE_STRING
deferred function
When the parser reads an &entity;'.
entity_url (a_entity: UNICODE_STRING, line: INTEGER_32, column: INTEGER_32): UNICODE_STRING
deferred function
When the parser reads an &entity;'.
Returns the entity URL if it is a SYSTEM or PUBLIC entity.
is_valid_data (a_data: UNICODE_STRING, line: INTEGER_32, column: INTEGER_32): BOOLEAN
deferred function
Called by the parser when the node contains raw data
require
  • not a_data.is_empty
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
the_end
deferred procedure
Called when the xml is totally parsed; usually it is used to recycle memory resources