XML file manipulation functions

XML file manipulation functions allow to load and save an XML document, create, read, write and delete XML elements and attributes. Function names are created by the prefix %XML_.

Example:

INT _doc
 _doc := %XML_CreateDocument()
 INT _el
 _el := %XML_AddElement(_doc, "element")
INT _txt
_txt := %XML_AddTextNode(_el, "element contents")
BOOL _ok
_ok := %XML_SaveDocument(_doc, "c:\document.xml")

There is created an empty XML document. The element is inserted into the document and the text is inserted into the element. Finally, the XML document is saved on the disk.

%XML file manipulation functions:

0 komentárov

Nie ste prihlásený. Akékoľvek zmeny, ktoré vykonáte, sa označia ako anonymné. Ak už máte svoj účet, pravdepodobne sa budete chcieť prihlásiť .