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

TXMLObjectReader.Create

Constructor for the class instance.

Declaration

Source position: laz_xmlstreaming.pas line 112

public constructor TXMLObjectReader.Create(

  ADoc: TDOMDocument;

  const APath: string

);

Arguments

ADoc

  

TDOMDocument instance with the values read in the object reader.

APath

  

Path to the node in ADoc where the object instance is stored.

Description

Create is the constructor for the object instance. It uses values passed in the ADoc and APath arguments to access the DOM document and node(s) where the XML content for the object reader is stored.

ADoc is assigned to the Doc property in the class instance, and its DocumentElement is used to access nodes in the DOM tree.

APath contains an expression used to locate the DOM node with the content for the object reader. It provides the hierarchy of DOM nodes used to access the XML content for the class instance.

Remark: Create raises an Exception in the constructor if a node cannot be located using the path in APath, or when the node is not a valid TDOMElement instance. Use exception handling when calling the method.

See also

TXMLObjectReader.Doc

  

TDomDocument instance with the XML content read in the object reader.

TXMLObjectReader.Element

  

Contains the DOM element currently being processed in the XML object reader.

TDOMNode

  

Implements the DOM Node interface.

TDOMElement

  

Implements the DOM Element interface from the DOM specification.

TDOMDocument

  

Implements the DOM Document interface.


Version 4.0 Generated 2025-05-03 Home