xml2 icon indicating copy to clipboard operation
xml2 copied to clipboard

Bindings to libxml2

Results 81 xml2 issues
Sort by recently updated
recently updated
newest added

### Issue Description It is tedious to create valid XML from a data.frame. Currently, `as_xml_document()` chokes on a variety of hacks: ``` dat

feature

e.g. like https://twitter.com/mdpacer/status/955357848053039104

feature

Transferring from Slack convo. The GoT data in repurrrsive comes from an API but for teaching purposes, after I wrangle it into the list that ships with the package, I...

help wanted :heart:
tidy-dev-day :nerd_face:

Hey @jimhester, I could be missing something, but it seems a bit clumsy that to define namespaces when calling `xml_new_root` there's no simple way to pass an existing `xml_namespace` object....

feature

### Issue Description and Expected Result `xml_validate()` returns `FALSE` when given a newly constructed `xml_document` as input. When I convert that `xml_document` to a string and back using `as.character()` and...

bug

Found this by mistake, probably a friendlier error is warranted: ```r xml_find_all(read_xml(""), "@line1 = 1") # Error in xml_nodeset(nodes) : # VECTOR_ELT() can only be applied to a 'list', not...

feature

cf. https://cran.r-project.org/web/checks/check_results_xml2.html

`xml2::read_html(x)` returns the HTML within a linked data JSON object as expected: ``` library(xml2) library(magrittr) library(rvest) test_ld % read_html() %>% html_node('script[type="application/ld+json"]') %>% as.character() [1] "{\"@context\":\"http://schema.org\",\"@type\":\"ReproducibleExample\", \"description\":\"text within tagstext after closing...

bug

When loading a fairly large XML file (~500MB), if I `print()` the document it takes a long time, and it is not interruptible. However printing the children nodes individually is...