Drag[en]gine Script Module DragonScript Script API  1.0
EasyXMLElement Class Reference

Simple XML reader element. More...

Inheritance diagram for EasyXMLElement:

Public Member Functions

Management
int getLine ()
 Line number of tag. More...
 
int getPosition ()
 Position on line of tag. More...
 
int getType ()
 Type of element. More...
 
String getTagName ()
 Name of tag. More...
 
String getCDataContent ()
 CData content or empty string if not a CData. More...
 
Attributes
int getAttributeCount ()
 Number of attributes. More...
 
String getAttributeNamed (String name)
 Named attribute. More...
 
bool hasAttributeNamed (String name)
 Named attribute is present. More...
 
Child elements
int getElementCount ()
 Number of child elements. More...
 
EasyXMLElement getElementAt (int index)
 Child element at index. More...
 
String getFirstCData ()
 First child CData or empty string if absent. More...
 

Static Public Attributes

Element type constants
static final int ELEMENT = 0
 Generic element. More...
 
static final int CDATA = 1
 CData. More...
 
static final int TAG = 2
 Tag. More...
 

Detailed Description

Simple XML reader element.

This is a native class.

Author
Roland Pl├╝ss
Version
1.0
Date
2015

Member Function Documentation

§ getAttributeCount()

int getAttributeCount ( )

Number of attributes.

§ getAttributeNamed()

String getAttributeNamed ( String  name)

Named attribute.

Exceptions
EInvalidParamNamed attribute is absent.

§ getCDataContent()

String getCDataContent ( )

CData content or empty string if not a CData.

§ getElementAt()

EasyXMLElement getElementAt ( int  index)

Child element at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getElementCount().

§ getElementCount()

int getElementCount ( )

Number of child elements.

§ getFirstCData()

String getFirstCData ( )

First child CData or empty string if absent.

§ getLine()

int getLine ( )

Line number of tag.

§ getPosition()

int getPosition ( )

Position on line of tag.

§ getTagName()

String getTagName ( )

Name of tag.

§ getType()

int getType ( )

Type of element.

§ hasAttributeNamed()

bool hasAttributeNamed ( String  name)

Named attribute is present.

Member Data Documentation

§ CDATA

final int CDATA = 1
static

CData.

§ ELEMENT

final int ELEMENT = 0
static

Generic element.

§ TAG

final int TAG = 2
static

Tag.


The documentation for this class was generated from the following file: