|
| SetFile (SFile file) |
| Set the current file to device. Setting the device resets reader.
|
|
| SXmlWriter () |
| Default constructor to instantiate a XmlWriter.
|
|
string | toString () |
| Get the type of the variable.
|
|
| WriteAttribute (string qualifiedName, any value) |
| Write an attribute with qualifiedName and value. This function can only be called after SXmlWriter.writeStartElement() before any content is written.
|
|
| WriteEndDocument () |
| Close all remaining open start elements and write a newline.
|
|
| WriteEndElement () |
| Close the previous start element.
|
|
| WriteStartDocument () |
| Write a document start with XML version number "1.0". This also writes the encoding information.
|
|
| WriteStartElement (string qualifiedName) |
| Write a start element with qualifiedName. Subsequent calls to WriteAttribute() will add attributes to this element.
|
|
Allow to write xml files.
Sample on how you can write an xml file.
throw new Error( 'Failed to read file.' );
xmlWriter.SetFile(file);
xmlWriter.WriteStartDocument();
xmlWriter.WriteStartElement("Image");
xmlWriter.WriteAttribute("width", 1024);
xmlWriter.WriteAttribute("height", 1024);
xmlWriter.WriteEndElement();
xmlWriter.WriteEndDocument();
file.Close();
Provide an interface for reading from and writing to files on disk.
Definition Reshaper.h:1779
@ WriteOnly
The file is opened for writing. Note that this mode implies Truncate.
Definition Reshaper.h:1788
static SFile New(string name)
Construct a new file object to represent the file with the given name.
SXmlWriter()
Default constructor to instantiate a XmlWriter.