revXMLNodeContents | ||||||||||
Type | function | |||||||||
Dictionary | LCS | |||||||||
Library | LiveCode Script | |||||||||
Syntax |
| |||||||||
Associations | xml library | |||||||||
Summary | Returns the text contained in the specified node in an XML tree. | |||||||||
Introduced | 2.0 | |||||||||
OS | mac, windows, linux, ios, android | |||||||||
Platforms | desktop, server, mobile | |||||||||
Parameters |
| |||||||||
Example |
| |||||||||
Values |
| |||||||||
Related | Keyword: string Glossary: node, Standalone Application Settings, standalone application, XML tree, return, LiveCode custom library Command: revXMLDeleteNode, revXMLAppend Function: revXMLAttribute, revXMLCreateTree, revXMLCreateTreeFromFile Library: XML library Control Structure: function | |||||||||
Security | disk | |||||||||
Description | Use the revXMLNodeContents function to get the text contents of a node. If the revXMLNodeContents function encounters an error, it returns an error message starting with "xmlerr". The revXMLNodeContents function returns the text content of a node. This is defined as the first piece of text not contained within a child node. For example: <root>Text<child>Child Text</child>Text 2</root> In the preceeding XML document, revXMLNodeContents will return the string "Text" when called with "root" as the node.
| |||||||||
Tags | text processing |