Pagina di Descrizione

Xmldocument

xmldocument

It represents a document in XML format.

appendchild

Description

Add a parameter to the XML document.

Type Value

Format

xmldocument.appendchild(target, data)

Typology

Metodo

Systems

Windows, Web, Android, IOS, Mac OS

Parametro

Tipo Valore

Description

data

string

The information of the node.

target

string

The target of the node.

Examples

xmldocument.appendchild(`target`,`data`)

createattribute

Description

Create a new XML attribute.

Type Value

xmlattribute

Format

xmlattribute = xmldocument.createattribute(attributename)

Typology

Metodo

Systems

Windows, Web, Android, IOS, Mac OS

Parametro

Tipo Valore

Description

attributename

string

"The attribute name is " The attribute name is "

Examples

attribute = xmldocument.createattribute(`attribute`)

createelement

Description

Create a new XML element.

Type Value

xmlelement

Format

xmlelement = xmldocument.createelement(elementname)

Typology

Metodo

Systems

Windows, Web, Android, IOS, Mac OS

Parametro

Tipo Valore

Description

elementname

string

"The name of the element is"

Examples

element = xmldocument.createelement(`name element`)

save

Description

Save the XML document on the device.

Type Value

Format

xmldocument.save(filename)

Typology

Metodo

Systems

Windows, Web, Android, IOS, Mac OS

Parametro

Tipo Valore

Description

filename

string

The complete path of the file name to be used for saving.

Examples

xmldocument.save(`c:filesdata.xml`)

{% endblock %}