Class TXMLReader

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TXMLReader = class(TWrapper)

Description

Interface providing easy read access to a XML file.

Hierarchy

Overview

Methods

Public function Advance: Boolean; inline;
Public function GetAttribute(Index: LongInt): StringType; overload; inline;
Public function GetAttribute(const Name: StringType): StringType; overload; inline;
Public function GetAttributeAsFloat(Index: LongINt): Single; overload; inline;
Public function GetAttributeAsFloat(const Name: StringType): Single; overload; inline;
Public function GetAttributeAsInteger(Index: LongInt): LongInt; overload; inline;
Public function GetAttributeAsInteger(const Name: StringType): LongInt; overload; inline;
Public function GetAttributeName(Index: LongInt): StringType; inline;
Public function GetAttributeSafe(const Name: StringType): StringType; inline;

Properties

Public property AttributeCount: LongWord read GetAttributeCount;
Public property NodeData: StringType read GetNodeData;
Public property NodeEmpty: Boolean read IsEmptyElement;
Public property NodeName: StringType read GetNodeName;
Public property NodeType: TXMLNodeType read GetNodeType;
Public property ParserFormat: TTextFormat read GetParserFormat;
Public property SourceFormat: TTextFormat read GetSourceFormat;

Description

Methods

Public function Advance: Boolean; inline;

Advances to the next xml node.

Public function GetAttribute(Index: LongInt): StringType; overload; inline;

Returns the value of an attribute.

Public function GetAttribute(const Name: StringType): StringType; overload; inline;

Returns the value of an attribute.

Public function GetAttributeAsFloat(Index: LongINt): Single; overload; inline;

Returns the value of an attribute as float.

Public function GetAttributeAsFloat(const Name: StringType): Single; overload; inline;

Returns the value of an attribute as float.

Public function GetAttributeAsInteger(Index: LongInt): LongInt; overload; inline;

Returns the value of an attribute as integer.

Public function GetAttributeAsInteger(const Name: StringType): LongInt; overload; inline;

Returns the value of an attribute as integer.

Public function GetAttributeName(Index: LongInt): StringType; inline;

Returns the name of an attribute.

Public function GetAttributeSafe(const Name: StringType): StringType; inline;

Returns the value of an attribute in a safe way.

Properties

Public property AttributeCount: LongWord read GetAttributeCount;

Attribute count of the current XML node.

Public property NodeData: StringType read GetNodeData;

The data of the current node.

Public property NodeEmpty: Boolean read IsEmptyElement;

Returns if an element is an empty element, like <foo />.

Public property NodeName: StringType read GetNodeName;

The name of the current node.

Public property NodeType: TXMLNodeType read GetNodeType;

The type of the current XML node.

Public property ParserFormat: TTextFormat read GetParserFormat;

The format of the strings returned by the parser.

Public property SourceFormat: TTextFormat read GetSourceFormat;

The source file text format.


Generated by PasDoc 0.12.1 on 2012-09-14 17:32:22