Package: xml2 1.5.1
xml2: Parse XML
Bindings to 'libxml2' for working with XML data using asimple, consistent interface based on 'XPath' expressions. Alsosupports XML schema validation; for 'XSLT' transformations seethe 'xslt' package.
Authors:Hadley Wickham [aut],Jim Hester [aut],Jeroen Ooms [aut, cre],Posit Software, PBC [cph, fnd],R Foundation [ctb]
xml2_1.5.1.tar.gz
xml2_1.5.1.zip(r-4.6)xml2_1.5.1.zip(r-4.5)xml2_1.5.1.zip(r-4.4)
xml2_1.5.1.tgz(r-4.5-x86_64)xml2_1.5.1.tgz(r-4.5-arm64)xml2_1.5.1.tgz(r-4.4-x86_64)xml2_1.5.1.tgz(r-4.4-arm64)
xml2_1.5.1.tar.gz(r-4.6-arm64)xml2_1.5.1.tar.gz(r-4.6-x86_64)xml2_1.5.1.tar.gz(r-4.5-arm64)xml2_1.5.1.tar.gz(r-4.5-x86_64)
xml2_1.5.1.tgz(r-4.5-emscripten)
xml2.pdf |xml2.html✨
xml2/json (API)
NEWS
| # Install 'xml2' in R: |
| install.packages('xml2', repos = c('https://r-lib.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/r-lib/xml2/issues
Pkgdown/docs site:https://xml2.r-lib.org
19.32 score 225 stars 2.4k packages 8.2k scripts 1.4M downloads 6 mentions 67 exports 2 dependencies
Last updated from:a21343d3ff. Checks:13 OK. Indexed: yes.
| Target | Result | Total time | Artifact |
|---|---|---|---|
| linux-devel-arm64 | OK | 147 | |
| linux-devel-x86_64 | OK | 136 | |
| source / vignettes | OK | 203 | |
| linux-release-arm64 | OK | 150 | |
| linux-release-x86_64 | OK | 134 | |
| macos-release-arm64 | OK | 106 | |
| macos-release-x86_64 | OK | 227 | |
| macos-oldrel-arm64 | OK | 118 | |
| macos-oldrel-x86_64 | OK | 250 | |
| windows-devel | OK | 129 | |
| windows-release | OK | 124 | |
| windows-oldrel | OK | 114 | |
| wasm-release | OK | 115 |
Exports:as_listas_xml_documentdownload_htmldownload_xmlhtml_structureread_htmlread_xmlurl_absoluteurl_escapeurl_parseurl_relativeurl_unescapewrite_htmlwrite_xmlxml_add_childxml_add_parentxml_add_siblingxml_attrxml_attr<-xml_attrsxml_attrs<-xml_cdataxml_childxml_childrenxml_commentxml_contentsxml_doublexml_dtdxml_find_allxml_find_chrxml_find_firstxml_find_intxml_find_lglxml_find_numxml_find_onexml_has_attrxml_integerxml_lengthxml_missingxml_namexml_name<-xml_new_documentxml_new_rootxml_nsxml_ns_renamexml_ns_stripxml_parentxml_parentsxml_pathxml_removexml_replacexml_rootxml_serializexml_set_attrxml_set_attrsxml_set_namexml_set_namespacexml_set_textxml_siblingsxml_structurexml_textxml_text<-xml_typexml_unserializexml_urlxml_validatexml2_example
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Coerce xml nodes to a list. | as_list |
| Coerce a R list to xml nodes. | as_xml_document |
| Download a HTML or XML file | download_html download_xml |
| Read HTML or XML. | read_html read_xml read_xml.character read_xml.connection read_xml.raw |
| Convert between relative and absolute urls. | url_absolute url_relative |
| Escape and unescape urls. | url_escape url_unescape |
| Parse a url into its component pieces. | url_parse |
| Write XML or HTML to disk. | write_html write_html.xml_document write_xml write_xml.xml_document |
| Retrieve an attribute. | xml_attr xml_attr<- xml_attrs xml_attrs<- xml_has_attr xml_set_attr xml_set_attrs |
| Construct a cdata node | xml_cdata |
| Navigate around the family tree. | xml_child xml_children xml_contents xml_length xml_parent xml_parents xml_root xml_siblings |
| Construct a comment node | xml_comment |
| Construct a document type definition | xml_dtd |
| Find nodes that match an xpath expression. | xml_find_all xml_find_all.xml_nodeset xml_find_chr xml_find_first xml_find_int xml_find_lgl xml_find_num xml_find_one |
| The (tag) name of an xml element. | xml_name xml_name<- xml_set_name |
| Create a new document, possibly with a root node | xml_new_document xml_new_root |
| XML namespaces. | xml_ns xml_ns_rename |
| Strip the default namespaces from a document | xml_ns_strip |
| Retrieve the xpath to a node | xml_path |
| Modify a tree by inserting, replacing or removing nodes | xml_add_child xml_add_parent xml_add_sibling xml_remove xml_replace |
| Serializing XML objects to connections. | xml_serialize xml_unserialize |
| Set the node's namespace | xml_set_namespace |
| Show the structure of an html/xml document. | html_structure xml_structure |
| Extract or modify the text | xml_double xml_integer xml_set_text xml_text xml_text<- |
| Determine the type of a node. | xml_type |
| The URL of an XML document | xml_url |
| Validate XML schema | xml_validate |
| Get path to a xml2 example | xml2_example |
