Description Usage Value Note Author(s) See Also Examples
A closure containing simple functions for the different types of events potentially called by the xmlEventParse, and some tag-specific functions to illustrate how one can add functions for specific DTDs and XML element types. Contains a local list which can be mutated by invocations of the closure's function.
1 |
List containing the functions enumerated in the closure definition along with the list.
This is just an example.
Duncan Temple Lang
xmlEventParse, xmlTreeParse
1 2 3 4 5 6 7 8 9 10 | ## Not run:
xmlURL <- "http://www.omegahat.org/Scripts/Data/mtcars.xml"
xmlText <- paste(scan(xmlURL, what="", sep="\n"),"\n",collapse="\n")
## End(Not run)
xmlURL <- system.file("exampleData", "mtcars.xml", package="XML")
xmlText <- paste(readLines(xmlURL), "\n", collapse="")
xmlEventParse(xmlText, handlers = NULL, asText=TRUE)
xmlEventParse(xmlText, xmlHandler(), useTagName=TRUE, asText=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.