From RAD Studio API Documentation
Jump to: navigation, search



TMessage = class(TDocumented, IMessage)


class PASCALIMPLEMENTATION TMessage : public TDocumented


Type Visibility Source Unit Parent
class public
Soap.WSDLBind Soap.WSDLBind


TXMLNode represents a node in an XML document.

Soap.WSDLBind.TMessage inherits from Xml.XMLDoc.TXMLNode. All content below this line refers to Xml.XMLDoc.TXMLNode.

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"> 
        <First> John </First> 
        <MI> Q. </MI> 
        <Last> Public </Last> 
    <Street> 123 Easy Street </Street> 
    <City> Anytown </City> 
    <State> CA </State> 

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