Description Usage Arguments References Examples
This uses xml-viewer
to provide a simple collapsible
tree viewer for HTML/XML documents, nodes, node sets and plain character
HTML/XML in an htmlwidget
pane.
1 2 |
doc |
|
scroll |
should the |
elementId |
element id |
width |
widget |
height |
widget |
1 2 3 4 5 6 7 8 9 10 11 12 13 | library(xmlview)
# from ?xml2::read_xml
cd <- xml2::read_xml("http://www.xmlfiles.com/examples/cd_catalog.xml")
xml_tree_view(cd)
htmltools::browsable(
htmltools::tagList(
xml_tree_view(cd, width = "100%", height = "300px"),
xml_view(cd)
)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.