Description Usage Arguments Value Author(s) References See Also Examples
Some types of XML nodes have no children nodes, but are leaf nodes and
simply contain text. Examples are XMLTextMode
, XMLProcessingInstruction
.
This function provides access to their raw contents.
This has been extended to operate recursivel on arbitrary XML nodes
that contain a single text node.
1 2 | xmlValue(x, ignoreComments = FALSE, recursive = TRUE,
encoding = getEncoding(x), trim = FALSE)
|
x |
the |
ignoreComments |
a logical value which, if |
recursive |
a logical value indicating whether to process all
sub-nodes ( |
encoding |
experimental functionality and parameter related to encoding. |
trim |
a logical value controlling whether we remove leading or trailing white space when returning the string value |
The object stored in the
value
slot of the XMLNode
object.
This is typically a string.
Duncan Temple Lang
http://www.w3.org/XML, http://www.jclark.com/xml, http://www.omegahat.org
xmlChildren
xmlName
xmlAttrs
xmlNamespace
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | node <- xmlNode("foo", "Some text")
xmlValue(node)
xmlValue(xmlTextNode("some more raw text"))
# Setting the xmlValue().
a = newXMLNode("a")
xmlValue(a) = "the text"
xmlValue(a) = "different text"
a = newXMLNode("x", "bob")
xmlValue(a) = "joe"
b = xmlNode("bob")
xmlValue(b) = "Foo"
xmlValue(b) = "again"
b = newXMLNode("bob", "some text")
xmlValue(b[[1]]) = "change"
b
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.