Skip to content

XInclude functionality #378

@krokkie

Description

@krokkie

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions