TXMLObjectReader.Create constructor
Constructor for the class instance.
Declaration
constructor 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.
TDOMElement instance. Use exception handling when calling the
method.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
