[Overview][Types][Classes][Procedures and functions][Index] |
Constructor for the class instance.
Source position: laz_xmlstreaming.pas line 112
public constructor TXMLObjectReader.Create( |
ADoc: TDOMDocument; |
const APath: string |
); |
ADoc |
|
TDOMDocument instance with the values read in the object reader. |
APath |
|
Path to the node in ADoc where the object instance is stored. |
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. |
|
TDomDocument instance with the XML content read in the object reader. |
|
|
Contains the DOM element currently being processed in the XML object reader. |
|
|
Implements the DOM Node interface. |
|
|
Implements the DOM Element interface from the DOM specification. |
|
|
Implements the DOM Document interface. |
Version 4.0 | Generated 2025-05-03 | Home |