Skip to content

XML_WRITE_END_NODE ​

XML_WRITE_END_NODE writes an end node.

Syntax ​

leo-grammar
CC "Documentation" XML_WRITE_END_NODE strValue

#--> RESULT ecode:intValue
CC "Documentation" XML_WRITE_END_NODE 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.; 15 - XML_NODENOTEXISTING - no corresponding start node exists; 28 - XML_NOFORMATTER - no file has yet been opened for writing.

Details ​

See Also ​

XML_WRITE_START_NODE

Examples ​

asc
CC "Documentastion" 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>
#
CC "Documentastion" 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