| XiMpLe_doc,-class | R Documentation |
This class is used for objects that are returned by parseXMLTree.
is.XiMpLe.doc(x)
as_XiMpLe_doc(obj, extra = list(), version = 2)
## S4 method for signature 'XiMpLe.doc'
as_XiMpLe_doc(obj, extra = list(), version = 2)
x |
An arbitrary |
obj |
An object of old class |
extra |
A list of values to set the |
version |
Integer numeric,
to set the |
Class XiMpLe.doc is the older one,
XiMpLe_doc was introduced with XiMpLe 0.11-1. It has two new slots
(extra and version) that would have made it impossible to load old objects without issues. XiMpLe_doc
inherits from XiMpLe.doc. You can convert old objects into valid new ones using the as_XiMpLe_doc method and
are also advised to do so,
as the XiMpLe.doc class might become deprecated in future releases.
A contructor function XiMpLe_doc(...) is available to be used instead of new("XiMpLe_doc",
...).
There's also XiMpLe_doc_old(...) to be used instead of new("XiMpLe.doc",
...), but you should not use that any longer.
fileCharacter string, Name of the file.
xmlEither a named list of character values (attributes for the XML declaration of the file),
or a list of XiMpLe_nodes with tags whose names must start with a "?".
dtdA named list, attributes for the doctype definition of the file.
childrenA list of objects of class XiMpLe_node (XiMpLe_doc only),
or
XiMpLe.node (old, XiMpLe.doc only),
representing the DOM structure of the XML document.
extraA named list that can be used to store additional information on a document (XiMpLe_doc only).
versionA numeric integer,
currently defaults to 2 (XiMpLe_doc only). This is a version number that can be used in the future
in combination with the added extra slot. Should that get sime supported values that are interpreted by package methods,
the version number will be increased and the differences documented here. You shouldn't set it manually.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.