Skip to content

XML_WRITE_START_NODE ​

XML_WRITE_START_NODE writes a start node.

Syntax ​

leo-grammar
CC "Documentation" XML_WRITE_STARTNODE	strValue 

#--> RESULT ecode:intValue .

Parameters ​

  • <main-parameter> (strValue) - the name of the node

Returns ​

  • ecode (intValue) - Contains the error code or is 0 in case of success; 8 - XML_MISSINGATTRIBUTE - no name has been specified.; 28 - XML_NOFORMATTER - no file has yet been opened for writing.

Details ​

See Also ​

XML_WRITE_END_NODE

Examples ​

asc
CC "Documentation" XML_OPEN "test.xml" write
CC "Documentation" XML_WRITEPLAIN "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>"
CC "Documentation" XML_WRITE_START_NODE "MODEL"
CC "Documentation" XML_WRITE_ATTRIBUTE "type" value:"gp"
CC "Documentation" XML_WRITE_CONTENT "Ein Modell"
CC "Documentation" XML_WRITE_END_NODE "MODEL"
CC "Documentation" XML_CLOSE write

# produced the follofing file:
# <?xml version=\"1.0\" encoding=\"iso-8859-1\"?>
# <MODEL type="gp">Ein Modell</MODEL>

Versions and Changes ​

Available since ADOxx 1.3