revXMLAppend |
Type | command |
Dictionary | LCS |
Library | LiveCode Script |
Syntax | revXMLAppend <treeID>, <parentNode>, <newXML>
|
Associations | xml library |
Summary | Adds XML text to an XML tree.
|
Introduced | 2.0 |
OS | mac, windows, linux, ios, android |
Platforms | desktop, server, mobile |
Parameters | Name | Type | Description |
---|
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 | Name | Type | Description |
---|
The result | | If the revXMLAppend command encounters an error, the result is set
to an error message beginning with "xmlerr".
|
|
Related | Command: 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
|
Security | disk |
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.
|
Tags | text processing |