revXMLChildContents | ||||||||||||||||||||||
Type | function | |||||||||||||||||||||
Dictionary | LCS | |||||||||||||||||||||
Library | LiveCode Script | |||||||||||||||||||||
Syntax |
| |||||||||||||||||||||
Associations | xml library | |||||||||||||||||||||
Summary | Returns a list of the tags and text contents of the specified nodes. | |||||||||||||||||||||
Introduced | 2.0 | |||||||||||||||||||||
OS | mac, windows, linux, ios, android | |||||||||||||||||||||
Platforms | desktop, server, mobile | |||||||||||||||||||||
Parameters |
| |||||||||||||||||||||
Example |
| |||||||||||||||||||||
Values |
| |||||||||||||||||||||
Related | Property: nodes Library: XML library Keyword: string Control Structure: function Function: revXMLAttributes, revXMLCreateTree, revXMLCreateTreeFromFile, revXMLNumberOfChildren Command: revXMLAppend Glossary: LiveCode custom library, Standalone Application Settings, tag, standalone application, return, XML tree | |||||||||||||||||||||
Security | disk | |||||||||||||||||||||
Description | Use the revXMLChildContents function to get information about a section of an XML tree. If the revXMLChildContents function encounters an error, it returns an error message starting with "xmlerr". The revXMLChildContents 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><child>Text<subchild>Child Text</subchild>Text 2</child></root> In the preceeding XML document, revXMLChildContents will return the string "Text" when called with "root" as the startNode and 1 as the depth.
| |||||||||||||||||||||
Tags | text processing |