![]() |
Cyclone 3DR Script
from Technodigit, part of Hexagon. Copyright 1997-2023.
|
Allow to write xml files. More...
Public Member Functions | |
| SetFile (SFile file) | |
| Set the current file to device. Setting the device resets reader. More... | |
| SXmlWriter () | |
| Default constructor to instantiate a XmlWriter. More... | |
| string | toString () |
| Get the type of the variable. More... | |
| 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. More... | |
| WriteEndDocument () | |
| Close all remaining open start elements and write a newline. More... | |
| WriteEndElement () | |
| Close the previous start element. More... | |
| WriteStartDocument () | |
| Write a document start with XML version number "1.0". This also writes the encoding information. More... | |
| WriteStartElement (string qualifiedName) | |
| Write a start element with qualifiedName. Subsequent calls to WriteAttribute() will add attributes to this element. More... | |
Static Public Member Functions | |
| static SXmlWriter | New () |
| Default constructor to instantiate a XmlWriter. More... | |
Allow to write xml files.
Sample on how you can write an xml file.
| SXmlWriter::SXmlWriter | ( | ) |
Default constructor to instantiate a XmlWriter.
|
static |
Default constructor to instantiate a XmlWriter.
| SXmlWriter::SetFile | ( | SFile | file | ) |
| string SXmlWriter::toString | ( | ) |
Get the type of the variable.
| SXmlWriter::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.
| qualifiedName | (string) The name of the attribute to write |
| value | (any) The value of the attribute to write |
| SXmlWriter::WriteEndDocument | ( | ) |
Close all remaining open start elements and write a newline.
| SXmlWriter::WriteEndElement | ( | ) |
Close the previous start element.
| SXmlWriter::WriteStartDocument | ( | ) |
Write a document start with XML version number "1.0". This also writes the encoding information.
| SXmlWriter::WriteStartElement | ( | string | qualifiedName | ) |
Write a start element with qualifiedName. Subsequent calls to WriteAttribute() will add attributes to this element.
| qualifiedName | (string) The name of the element |