Show: Delphi C++
Display Preferences

Xml.XMLDoc.TXMLNode

From RAD Studio API Documentation
Jump to: navigation, search

System.TInterfacedObjectSystem.TObjectTXMLNode

Delphi

TXMLNode = class(TInterfacedObject, IXMLNode, IXMLNodeAccess)

C++

class PASCALIMPLEMENTATION TXMLNode : public System::TInterfacedObject

Properties

Type Visibility Source Unit Parent
class public
Xml.XMLDoc.pas
Xml.XMLDoc.hpp
Xml.XMLDoc Xml.XMLDoc

Description

TXMLNode represents a node in an XML document.

The XML Data Binding Wizard uses TXMLNode as a base class for the classes it generates to represent nodes that have child nodes. For example, if the XML document includes the following:

<Address country="US"> 
    <Name> 
        <First> John </First> 
        <MI> Q. </MI> 
        <Last> Public </Last> 
    </Name> 
    <Street> 123 Easy Street </Street> 
    <City> Anytown </City> 
    <State> CA </State> 
</Address>

then the XML Data Binding Wizard generates TXMLNode descendants for the elements Address and Name. Child nodes and node attributes appear as properties of the TXMLNode descendant.

Note: The XML Data Binding Wizard also generates code that can create TXMLNode objects for attributes as well as element nodes. However, there are no special TXMLNode descendants for attribute nodes. Rather, each attribute is represented directly by TXMLNode.

TXMLNode implements the IXMLNode interface. Each TXMLNode descendant implements a class-specific interface that descends from IXMLNode. Typically, applications do not work directly with TXMLNode. Instead, they use the IXMLNode interface or the IXMLNode descendant that is implemented by a TXMLNode descendant.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance