XML library

Typelibrary
DictionaryLCS
LibraryLiveCode Script
Synonymsxml library,xml libraries
RelatedGlossary: XML, XML document, LiveCode custom library
Description

The LiveCode custom library that supports parsing and manipulating XML data and creating XMLfiles.

Tagsmultimedia
TypeNameSummarySyntax
commandrevXMLAddDTD

Adds an internal DTD to an existing XML tree.

revXMLAddDTD <treeID>, <DTDText>

- - -revXMLAddNode

Adds a child node to the specified parent node in an XML tree.

revXMLAddNode <treeID>, <parentNode>, <nodeName>, <nodeContents>, [<location>]

- - -revXMLAppend

Adds XML text to an XML tree.

revXMLAppend <treeID>, <parentNode>, <newXML>

- - -revXMLCopyNode

Duplicates a node in an XML tree and copies it to the specified position

revXMLCopyNode <treeId>, <sourceNode>, <destinationNode> [, <location>] [, <relationship>]

- - -revXMLDeleteAllTrees

Removes all XML tree structures in memory.

revXMLDeleteAllTrees

- - -revXMLDeleteNode

Removes a node from an XML tree.

revXMLDeleteNode <treeID>, <nodeToDelete>

- - -revXMLDeleteTree

Removes an XML tree structure from memory.

revXMLDeleteTree <treeID>

- - -revXMLInsertNode

Inserts a node as a sibling of siblingNode in the specified tree.

revXMLInsertNode <treeId>, <siblingNode>, <nodeName>, <contents>, [<location>]

- - -revXMLMoveNode

Moves a node in an XML tree to the specified position

revXMLMoveNode <treeID>, <sourceNode>, <destinationNode> [, <location>] [, <relationship>]

- - -revXMLPutIntoNode

Sets the contents of a node in an XML tree.

revXMLPutIntoNode <treeID>, <nodePath>, <newContents> [, <replaceTextOnly>]

- - -revXMLSetAttribute

Creates an attribute of a node, or sets the value of an existing attribute.

revXMLSetAttribute <treeID>, <node>, <attributeName>, <newValue>

functionrevXMLAttribute

Returns the value of the specified attribute of the specified node of an XML tree.

revXMLAttribute(<treeID>, <node>, <attributeName>)

- - -revXMLAttributes

Returns a list of all attributes and their values for the specified node.

revXMLAttributes(<treeID>, <node>, <valueDelim>, <attributeDelim>)

- - -revXMLAttributeValues

Returns a list of the values of a specified attribute for the specified nodes in an XML tree.

revXMLAttributeValues(<treeID>, <startNode>, <childName>, <attributeName>, <delimiter>, <depth>)

- - -revXMLChildContents

Returns a list of the tags and text contents of the specified nodes.

revXMLChildContents(<treeID>, <startNode>, <tagDelim>, <nodeDelim>, <includePathDetails>, <depth>)

- - -revXMLChildNames

Returns a list of the child nodes under the specified node in an XML tree.

revXMLChildNames(<treeID>, <startNode>, <nameDelim>, <childName>, <includeChildCount>, [incText])

- - -revXMLCreateTree

Creates an XML tree structure from XML text data.

revXMLCreateTree(<XMLText>, <dontParseBadData>, <createTree>, <sendMessages>)

- - -revXMLCreateTreeFromFile

Reads an XML file, optionally creating an XML tree.

revXMLCreateTreeFromFile(<filePath>, <parseBadData>, <createTree>, <sendMessages>)

- - -revXMLCreateTreeFromFileWithNamespaces

Reads an XML file, optionally creating an XML tree and returning XML namespace tags and attributes as part of the tree.

revXMLCreateTreeFromFileWithNamespaces(<filePath>, <parseBadData>, <createTree>, <sendMessages>)

- - -revXMLCreateTreeWithNamespaces

Creates an XML tree structure from XML text data ignoring namespace tags and attributes.

revXMLCreateTreeWithNamespaces(<XMLText>, <dontParseBadData>, <createTree>, <sendMessages>)

- - -revXMLFirstChild

Returns the path to a node's first child node.

revXMLFirstChild(<treeID>, <parentNode>, [ incText ])

- - -revXMLMatchingNode

Finds the node in an XML tree where the specified attribute of the node has the specified value.

revXMLMatchingNode(<treeID>, <startNode>, <childName>, <attributeName>, <attributeValue>, <depth> [, <caseSensitive>])

- - -revXMLNextSibling

Returns the path to a child node's next sibling node.

revXMLNextSibling(<treeID>, <siblingNode>, [incText] )

- - -revXMLNodeContents

Returns the text contained in the specified node in an XML tree.

revXMLNodeContents(<treeID>, <node>)

- - -revXMLNumberOfChildren

Returns the number of child nodes under the specified node in an XML tree.

revXMLNumberOfChildren(<treeID>, <startNode>, <childName> [, <depth>])

- - -revXMLParent

Returns the path to the parent node of a node in an XML tree.

revXMLParent(<treeID>, <childNode>)

- - -revXMLPreviousSibling

Returns the path to a child node's previous sibling node.

revXMLPreviousSibling(<treeID>, <siblingNode>, [incText])

- - -revXMLRootNode

Returns the path to the starting node of an XML tree.

revXMLRootNode(<treeID>)

- - -revXMLText

Returns the contents of an XML tree as XML text.

revXMLText(<treeID> [, <startNode>] [, <formatted>])

- - -revXMLTree

Returns a list of the nodes in an XML tree, in a form that shows their parent/child relationships.

revXMLTree(<treeID>, <startNode>, <nodeDelim>, <padding>, <includeChildCount>, <depth>)

- - -revXMLTrees

Returns a list of all XML trees in memory.

revXMLTrees()

- - -revXMLValidateDTD

Checks whether the syntax of an XML tree conforms to a DTD.

revXMLValidateDTD(<treeID>, <DTDText>)