xml2
xml2 copied to clipboard
Bindings to libxml2
When converting an xml that is read into R using `read_xml()` into an R list using 'as_list()' the list structure details are correct but the each list item is actually...
One `xml_text` example includes the following comment: ``` #' # xml_double() and xml_integer() are useful for extracting numeric attributes ``` However, this text was previously spread across two lines: ```...
``` r library(xml2) library(magrittr) xml % xml_find_all(".//a") %>% xml_find_lgl("./b") #> Error: result of type: 'list', not logical xml %>% xml_find_all(".//a") %>% xml_find_lgl("boolean(./b)") #> [1] TRUE FALSE ``` Created on 2021-10-27...
The package `XML` is orphaned on CRAN. There are still updates from time to time, but I am unsure whether [my current problem](https://github.com/52North/sos4R/issues/76), where I get a segfault the moment...
In xml2/inst/include/xml2_types.h there are two constructors for XPtr. One, XPtr(SEXP x), calls R_PreserveObject(data_) and one, XPtr(T* p), does not. The destructor calls R_ReleaseObject(data_) in either case. TERR notices that R_ReleaseObject...
I hardly ever use xml files. But I'm no stranger to R or nested hierarchies (like R's lists). Today I ended up with a big xml file in my lap...
### Issue Description and Expected Result I think the implementation of `xml_ns` is non-intuitive. When called on a node `xml_ns` retrieves all namespacess of the root document. What I think...
Re-directing from https://github.com/tidyverse/rvest/issues/255 ``` pg %>% xml_children(2L) ``` Would be the same as ``` pg %>% xml_children %>% xml_children ```
https://github.com/r-lib/xml2/blob/6fa5910008505f66aa50ab29bd8fc71a3ddf96e4/R/xml_modify.R#L9 It's especially upsetting since it sounds so frightening :wink: