Drag[en]gine Script Module DragonScript 1.23
|
XML Document. More...
Public Member Functions | |
Constructors | |
EasyXML | new () |
Create empty document for building XML to write to file. | |
EasyXML | new (String filename) |
Load xml from file. | |
EasyXML | new (String filename, bool stripComments, bool cleanCharData) |
Load xml from file. | |
Management | |
String | getFilename () |
Filename of the xml file. | |
bool | hasParseFailed () |
Parsing failed. | |
String | getParseLog () |
Parse log. | |
EasyXMLElement | getRootElement () |
Root element. | |
void | setRootElement (EasyXMLElement element) |
Set root element. | |
void | writeToFile (FileWriter fileWriter, bool compact) |
Write document to file. | |
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 | ( | ) |
Create empty document for building XML to write to file.
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 | ||
) |
Load xml from file.
filename | Filename to load XML from. |
stripComments | Strip comments from XML. |
cleanCharData | Clean character data similar to HTML |
void Dragengine.XML.EasyXML.setRootElement | ( | EasyXMLElement | element | ) |
Set root element.
void Dragengine.XML.EasyXML.writeToFile | ( | FileWriter | fileWriter, |
bool | compact | ||
) |
Write document to file.