XiMpLe.node-class: Class XiMpLe.node

Description Usage Arguments Details Slots

Description

This class is used to create DOM trees of XML documents, like objects that are returned by parseXMLTree.

Usage

1

Arguments

x

An arbitrary R object.

Details

There are certain special values predefined for the name slot to easily create special XML elements:

name=""

If the name is an empty character string, a pseudo node is created, pasteXMLNode will paste its value as plain text.

name="!--"

Creates a comment tag, i.e., this will comment out all its children.

name="![CDATA["

Creates a CDATA section and places all its children in it.

name="*![CDATA["

Creates a CDATA section and places all its children in it, where the CDATA markers are commented out by /* */, as is used for JavaScript in XHTML.

Slots

name

Name of the node (i.e., the XML tag identifier). For special names see details.

attributes

A list of named character values, representing the attributes of this node.

children

A list of further objects of class XiMpLe.node, representing child nodes of this node.

value

Plain text to be used as the enclosed value of this node. Set to value="" if you want a childless node to be forced into an non-empty pair of start and end tags by pasteXMLNode.


XiMpLe documentation built on Dec. 13, 2017, 1:04 a.m.