Drag[en]gine Script Module DragonScript
1.23
|
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... | |
XML Document.
Can be used to read XML from file or construct an XML to be written to file.
This is a native class.
String Dragengine.XML.EasyXML.getFilename | ( | ) |
Filename of the xml file.
String Dragengine.XML.EasyXML.getParseLog | ( | ) |
Parse log.
EasyXMLElement Dragengine.XML.EasyXML.getRootElement | ( | ) |
Root element.
bool Dragengine.XML.EasyXML.hasParseFailed | ( | ) |
Parsing failed.
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.
EasyXML Dragengine.XML.EasyXML.new | ( | String | filename, |
bool | stripComments, | ||
bool | cleanCharData | ||
) |
void Dragengine.XML.EasyXML.setRootElement | ( | EasyXMLElement | element | ) |
Set root element.
void Dragengine.XML.EasyXML.writeToFile | ( | FileWriter | fileWriter, |
bool | compact | ||
) |
Write document to file.