Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XInclude functionality #378

Open
krokkie opened this issue Nov 22, 2022 · 1 comment
Open

XInclude functionality #378

krokkie opened this issue Nov 22, 2022 · 1 comment
Labels
feature a feature request or enhancement

Comments

@krokkie
Copy link

krokkie commented Nov 22, 2022

Does xml2 have the XInclude functionality ?

XML has an example where they illustrate the use of the XInclude functionality, which is exactly what I need.
It appears as if xml2 cannot handle this (yet).
But I don't want to move back to XML again - having made the transition to xml2 some time back.

The example from the XML package I'm referring to:

   f = system.file("exampleData", "nodes1.xml", package = "XML")
   x1 <- XML::xmlRoot(XML::xmlTreeParse(f, xinclude = FALSE))
   x2 <- XML::xmlRoot(XML::xmlTreeParse(f, xinclude = TRUE))

I can see there is a option XINCLUDE in xml2::read_xml, but I could not manage to make this work in the example above.
It is advertised as "implement XInclude substitition", but I'm not sure what exactly this refers to.

@hadley
Copy link
Member

hadley commented Oct 30, 2023

It doesn't currently, but it looks like it might not be too much work to add it, when we're next working on xml2.

@hadley hadley added the feature a feature request or enhancement label Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants