revXMLAppend

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
revXMLAppend <treeID>, <parentNode>, <newXML>
Associationsxml library
Summary

Adds XML text to an XML tree.

Introduced2.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
treeID

The number returned by the revXMLCreateTree or revXMLCreateTreeFromFile function when you created the XML tree.

parentNode

The path to the node where the newXML will be inserted. Any elements in the newXML will become child nodes of the parentNode. If no parentNode is specified, the newXML is inserted at the end of the XML tree.

newXML

The XML text to be inserted.

Example
revXMLAppend 4,"/Publications/Fiction/SF",URL "file:SF Books.xml"
revXMLAppend thisTree,the currNode of me,the text of me
Values
NameTypeDescription
The result

If the revXMLAppend command encounters an error, the result is set to an error message beginning with "xmlerr".

RelatedCommand: revXMLAddDTD, revXMLPutIntoNode, revXMLSetAttribute, revXMLInsertNode, revXMLAddNode
Function: revXMLNodeContents, result, revXMLText, revXMLCreateTreeFromFile, revXMLCreateTree, revXMLChildContents
Glossary: Standalone Application Settings, standalone application, XML tree, XML, command, LiveCode custom library
Library: XML library
Securitydisk
Description

Use the revXMLAppend command to add new XML data to an existing XML tree.

Important: The revXMLAppend command is part of the XML library. To ensure that the command works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions pane of the Standalone Application Settings window, make sure the "XML" checkbox is checked.

Tagstext processing