newXMLDoc: Create internal XML node or document object
Description
These are used to create internal `libxml' nodes
and top-level document objects
that are used to write XML trees.
While the functions are available,
their direct use is not encouraged.
Instead, use xmlTree
as the functions need to be
used within a strict regime
to avoid corrupting C level structures.Usage
newXMLDoc(dtd, namespaces=NULL)
newXMLNode(name, ..., attrs = NULL, namespace="", doc=NULL)
Value
- Each function returns an R object that points to the
C-level structure instance.
These are of class
XMLInternalDocument
and XMLInternalNode
, respectively
Details
These create internal C level objects/structure instances
that can be added to a libxml DOM and subsequently
inserted into other document objects or ``serialized''
to textual form.References
http://www.w3.org/XML, http://www.xmlsoft.org,
http://www.omegahat.org