Xml.XMLIntf.IXMLNode.GetChildValue

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetChildValue(const IndexOrName: OleVariant): OleVariant;

C++

virtual System::OleVariant __fastcall GetChildValue(const System::OleVariant &IndexOrName) = 0 ;

Properties

Type Visibility Source Unit Parent
function public
Xml.XMLIntf.pas
Xml.XMLIntf.hpp
Xml.XMLIntf IXMLNode

Description

Returns the value of a specified child node.

GetChildValue is the read implementation of the ChildValues property.

IndexOrName identifies the desired child node by either its interface, or by a string that is the local name of the child node.

The return value depends on the type of the child node, as indicated in the following table:



NodeType Value

ntAttribute

The attribute value

ntElement

If the element contains only text, this is that text value. Otherwise, reading the child's value causes an exception.

ntText

The text

ntCData

The content of the CDATA section.

ntEntityRef

nil (Delphi) or NULL (C++)

ntProcessingInstr

The content of the processing instruction except for the target.

ntComment

The value (text) of the comment.

ntDocFragment

nil (Delphi) or NULL (C++)



See Also