Learn R Programming

XML (version 3.4-0)

xmlSearchNs: Find a namespace definition object by searching ancestor nodes

Description

This function allows one to search an XML tree from a particular node and find the namespace definition for a given namespace prefix or URL. This namespace definition can then be used to set it on a node to make it the effective namespace for that node.

Usage

xmlSearchNs(node, ns, asPrefix = TRUE, doc = as(node, "XMLInternalDocument"))

Arguments

Value

  • An object of class XMLNamespaceRef.

References

libxml2

See Also

newXMLNode