Drag[en]gine Script Module DragonScript  1.23
Dragengine.XML.EasyXML Class Reference

XML Document. More...

Inheritance diagram for Dragengine.XML.EasyXML:

Public Member Functions

Constructors
EasyXML new ()
 Create empty document for building XML to write to file. More...
 
EasyXML new (String filename)
 Load xml from file. More...
 
EasyXML new (String filename, bool stripComments, bool cleanCharData)
 Load xml from file. More...
 
Management
String getFilename ()
 Filename of the xml file. More...
 
bool hasParseFailed ()
 Parsing failed. More...
 
String getParseLog ()
 Parse log. More...
 
EasyXMLElement getRootElement ()
 Root element. More...
 
void setRootElement (EasyXMLElement element)
 Set root element. More...
 
void writeToFile (FileWriter fileWriter, bool compact)
 Write document to file. More...
 

Detailed Description

XML Document.

Can be used to read XML from file or construct an XML to be written to file.

This is a native class.

Member Function Documentation

◆ getFilename()

String Dragengine.XML.EasyXML.getFilename ( )

Filename of the xml file.

◆ getParseLog()

String Dragengine.XML.EasyXML.getParseLog ( )

Parse log.

◆ getRootElement()

EasyXMLElement Dragengine.XML.EasyXML.getRootElement ( )

Root element.

◆ hasParseFailed()

bool Dragengine.XML.EasyXML.hasParseFailed ( )

Parsing failed.

◆ new() [1/3]

EasyXML Dragengine.XML.EasyXML.new ( )

Create empty document for building XML to write to file.

◆ new() [2/3]

EasyXML Dragengine.XML.EasyXML.new ( String  filename)

Load xml from file.

Same as calling new(String,bool,bool) with stripComments and cleanCharData set to true.

◆ new() [3/3]

EasyXML Dragengine.XML.EasyXML.new ( String  filename,
bool  stripComments,
bool  cleanCharData 
)

Load xml from file.

Version
1.23
Parameters
filenameFilename to load XML from.
stripCommentsStrip comments from XML.
cleanCharDataClean character data similar to HTML

◆ setRootElement()

void Dragengine.XML.EasyXML.setRootElement ( EasyXMLElement  element)

Set root element.

◆ writeToFile()

void Dragengine.XML.EasyXML.writeToFile ( FileWriter  fileWriter,
bool  compact 
)

Write document to file.


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