[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'Laz2_XMLRead' (#lazutils)

TDOMParser

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Implements a parser used to de-serialize XML content into DOM Nodes.

Declaration

Source position: laz2_xmlread.pas line 133

type TDOMParser = class(TObject)

public

  constructor Create;

  

Constructor for the class instance.

  destructor Destroy; override;

  

Destructor for the class instance.

  procedure Parse();

  

Parses the input source and updates the specified XML document.

  procedure ParseUri();

  

Parses XML content from the specified URI into the XML document.

  function ParseWithContext();

  

Parses the XML input source into the specified DOM context Node.

  property Options: TDOMParseOptions; [r]

  

Options for the DOM parser.

  property OnError: TXMLErrorEvent; [rw]

  

Event handler signalled when an error occurs while reading XML content.

end;

Inheritance

TDOMParser

  

Implements a parser used to de-serialize XML content into DOM Nodes.

|

TObject

Description

TDOMParser is a class which implements a DOM Parser component. TDOMParser provides methods to parse XML content specified by its URI or using an XML input source. TDOMParser creates DOM nodes needed to represent the XML content, and stores the nodes in a TXMLDocument instance or a DOM content node.

Use the Options property to enable specific features or behavior in the parser. Of particular importance is the Validate, which enables validation when processing XML content in the parser.

DOM (Document Object Model) does not specify an interface for a parser class. TDOMParser utilizes the TXMLReader class to perform the actions required to convert and de-serialize XML content. TXMLReader closely resembles the XMLReader class defined in SAX (Simple API for XML), but uses its own methods instead of Handler class instances to process various DOM Node types. TXMLReader is compliant with the XML 1.0 specification.

See also

TXMLInputSource

  

Represents the input source for XML content.

laz2_DOM.TXMLDocument

  

Implements an XML Document.


Version 3.2 Generated 2024-02-25 Home