Package: XML 3.99-0.17

CRAN Team

XML: Tools for Parsing and Generating XML Within R and S-Plus

Many approaches for both reading and creating XML (and HTML) documents (including DTDs), both local and accessible via HTTP or FTP. Also offers access to an 'XPath' "interpreter".

Authors:CRAN Team [ctb, cre], Duncan Temple Lang [aut], Tomas Kalibera [ctb]

XML_3.99-0.17.tar.gz
XML_3.99-0.17.tar.gz(r-4.5-noble)XML_3.99-0.17.tar.gz(r-4.4-noble)
XML.pdf |XML.html
XML/json (API)

# Install 'XML' in R:
install.packages('XML', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Uses libs:
  • libxml2– GNOME XML library

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

12.16 score 3 stars 1.3k packages 11k scripts 288k downloads 60 mentions 176 exports 0 dependencies

Last updated 6 months agofrom:3a07a98786. Checks:OK: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 31 2024
R-4.5-linux-x86_64OKOct 31 2024

Exports:addAttributesaddChildrenaddNodeaddSiblingappend.xmlNodeappend.XMLNodeasXMLNodeasXMLTreeNodecatalogAddcatalogClearTablecatalogDumpcatalogLoadcatalogResolvecoercecomment.SAXCOMPACTcompareXMLDocsdocNamedocName<-DoctypeDTDATTRdtdElementdtdElementValidEntrydtdEntitydtdIsAttributeDTDLOADDTDVALIDdtdValidElementendElement.SAXensureNamespaceentityDeclaration.SAXfindXIncludefreegenericSAXHandlersgetChildrenStringsgetDefaultNamespacegetEncodinggetHTMLExternalFilesgetHTMLLinksgetLineNumbergetNodeLocationgetNodePositiongetNodeSetgetRelativeURLgetSiblinggetXIncludesgetXMLErrorshtmlParsehtmlTreeParseHUGEisXMLStringlibxmlFeatureslibxmlVersionmakeClassTemplatematchNamespacesnames.XMLNodenewHTMLDocnewXMLCDataNodenewXMLCommentNodenewXMLDocnewXMLDTDNodenewXMLNamespacenewXMLNodenewXMLPINodenewXMLTextNodeNOBASEFIXNOBLANKSNOCDATANODICTNOENTNOERRORNONETNOWARNINGNOXINCNODENSCLEANOLD10OLDSAXparseDTDparseURIparseXMLAndAddPEDANTICprocessingInstruction.SAXprocessXIncludereadHTMLListreadHTMLTablereadKeyValueDBreadSolrDocRECOVERremoveAttributesremoveChildrenremoveNodesremoveXMLNamespacesreplaceNodesreplaceNodeWithChildrensaveXMLSAX1schemaValidationErrorHandlersetXMLNamespaceshowsourcestartElement.SAXsupportsExpatsupportsLibxmltext.SAXtoHTMLtoString.XMLNodeXINCLUDExmlxmlAncestorsxmlApplyxmlAttributeTypexmlAttrsxmlAttrs<-xmlCDataNodexmlChildrenxmlChildren<-xmlCleanNamespacesxmlClonexmlCodeFilexmlCommentNodexmlContainsElementxmlContainsEntityxmlDeserializeHookxmlDocxmlDOMApplyxmlElementsByTagNamexmlElementSummaryxmlErrorCumulatorxmlEventHandlerxmlEventParsexmlGetAttrxmlHandlerxmlHashTreexmlInternalTreeParsexmlNamexmlName<-xmlNamespacexmlNamespace<-xmlNamespaceDefinitionsxmlNamespacesxmlNamespaces<-xmlNativeTreeParsexmlNodexmlOutputBufferxmlOutputDOMxmlParentxmlParent<-xmlParsexmlParseDocxmlParserContextFunctionxmlParseStringxmlPINodexmlRootxmlSApplyxmlSchemaParsexmlSchemaValidatexmlSearchNsxmlSerializeHookxmlSizexmlSize.defaultxmlSourcexmlSourceFunctionsxmlSourceSectionxmlStopParserxmlStructuredStopxmlTextNodexmlToDataFramexmlToListxmlToS4xmlTreexmlTreeParsexmlValuexmlValue<-xmlXIncludesxpathApplyxpathSApply

Dependencies:

Readme and manuals

Help Manual

Help pageTopics
Convenience accessors for the children of XMLNode objects.[.XMLNode [[.XMLDocumentContent [[.XMLInternalElementNode [[.XMLNode
Assign sub-nodes to an XML node[<-.XMLNode [[<-.XMLNode
Add child nodes to an XML nodeaddAttributes addAttributes,XMLInternalElementNode-method addAttributes,XMLNode-method addChildren addChildren,XMLInternalNode-method addChildren,XMLNode-method removeAttributes removeAttributes,XMLInternalElementNode-method removeAttributes,XMLNode-method removeChildren removeNodes removeNodes.list removeNodes.XMLInternalNode removeNodes.XMLNodeList removeNodes.XMLNodeSet replaceNodes xmlParent<-
Add a node to a treeaddNode addNode.XMLHashTree
Add children to an XML nodeappend.XMLNode append.xmlNode
Converts non-XML node objects to XMLTextNode objectsasXMLNode coerce,XMLInternalNode,XMLNode-method
Convert a regular XML node to one for use in a "flat" treeasXMLTreeNode
Manipulate XML catalog contentscatalogAdd catalogClearTable catalogDump catalogLoad
Look up an element via the XML catalog mechanismcatalogResolve
Transform between XML representationscoerce,XMLAbstractDocument,XMLAbstractNode-method coerce,XMLHashTreeNode,XMLHashTree-method coerce,XMLInternalDocument,XMLHashTree-method coerce,XMLInternalNode,XMLHashTree-method coerce,XMLNode,XMLInternalNode-method
Indicate differences between two XML documentscompareXMLDocs
Accessors for name of XML documentdocName docName,NULL-method docName,XMLDocument-method docName,XMLDocumentContent-method docName,XMLHashTree-method docName,XMLHashTreeNode-method docName,XMLInternalDocument-method docName,XMLInternalNode-method docName,XMLNode-method docName<- docName<-,XMLHashTree-method docName<-,XMLInternalDocument-method
Constructor for DTD referencecoerce,Doctype,character-method Doctype
Class to describe a reference to an XML DTDDoctype-class
Gets the definition of an element or entity from a DTD.dtdElement dtdEntity
Determines whether an XML element allows a particular type of sub-element.dtdElementValidEntry dtdElementValidEntry.character dtdElementValidEntry.XMLElementContent dtdElementValidEntry.XMLElementDef dtdElementValidEntry.XMLOrContent dtdElementValidEntry.XMLSequenceContent
Query if a name is a valid attribute of a DTD element.dtdIsAttribute
Determines whether an XML tag is valid within another.dtdValidElement
Ensure that the node has a definition for particular XML namespacesensureNamespace
Find the XInclude node associated with an XML nodefindXInclude
Release the specified object and clean up its memory usagefree free,XMLInternalDocument-method
SAX generic callback handler listgenericSAXHandlers
Get the individualgetChildrenStrings
Determines the encoding for an XML document or nodegetEncoding getEncoding,ANY-method getEncoding,XMLInternalDocument-method getEncoding,XMLInternalNode-method
Get links or names of external files in HTML documentgetHTMLExternalFiles getHTMLLinks
Determine the location - file & line number of an (internal) XML nodegetLineNumber getNodeLocation getNodePosition
Find matching nodes in an internal XML tree/DOMgetNodeSet matchNamespaces xpathApply xpathSApply
Compute name of URL relative to a base URLgetRelativeURL
Manipulate sibling XML nodesaddSibling getSibling
Find the documents that are XInclude'd in an XML documentgetXIncludes xmlXIncludes
Get XML/HTML document parse errorsgetXMLErrors
Facilities for working with XML stringsisXMLString xml xmlParseString XMLString-class
Determine the number of children in an XMLNode object.length.XMLNode
Query the version and available features of the libxml library.libxmlFeatures libxmlVersion
Create S4 class definition based on XML node(s)makeClassTemplate
Get the names of an XML nodes children.names.XMLNode
Create internal XML node or document objectcoerce,vector,XMLInternalNode-method newHTMLDoc newXMLCDataNode newXMLCommentNode newXMLDoc newXMLDTDNode newXMLNode newXMLPINode newXMLTextNode xmlDoc
Add a namespace definition to an XML nodenewXMLNamespace
Read a Document Type Definition (DTD)parseDTD
Parse a URI string into its elementscoerce,URI,character-method parseURI URI-class
Parse XML content and add it to a nodeparseXMLAndAdd
Methods for displaying XML objectsprint.XMLAttributeDef print.XMLCDataNode print.XMLComment print.XMLElementContent print.XMLElementDef print.XMLEntity print.XMLEntityRef print.XMLNode print.XMLOrContent print.XMLProcessingInstruction print.XMLSequenceContent print.XMLTextNode
Perform the XInclude substitutionsprocessXInclude processXInclude.list processXInclude.XMLInternalDocument processXInclude.XMLInternalElement
Read data in an HTML list or all lists in a documentreadHTMLList readHTMLList,character-method readHTMLList,HTMLInternalDocument-method readHTMLList,XMLInternalNode-method
Read data from one or more HTML tablescoerce,character,Currency-method coerce,character,FormattedInteger-method coerce,character,FormattedNumber-method coerce,character,Percent-method FormattedInteger-class FormattedNumber-class Percent-class readHTMLTable readHTMLTable,character-method readHTMLTable,HTMLInternalDocument-method readHTMLTable,XMLInternalElementNode-method
Read an XML property-list style documentreadKeyValueDB readKeyValueDB,AsIs-method readKeyValueDB,character-method readKeyValueDB,XMLInternalDocument-method readKeyValueDB,XMLInternalNode-method
Read the data from a Solr documentreadSolrDoc readSolrDoc,AsIs-method readSolrDoc,character-method readSolrDoc,XMLInternalDocument-method readSolrDoc,XMLInternalNode-method
Remove namespace definitions from a XML node or documentremoveXMLNamespaces removeXMLNamespaces,XMLInternalDocument-method removeXMLNamespaces,XMLInternalElementNode-method removeXMLNamespaces,XMLInternalNode-method
Replace an XML node with it child nodesreplaceNodeWithChildren
Output internal XML Treecoerce,XMLInternalDocument,character-method coerce,XMLInternalDOM,character-method coerce,XMLInternalNode,character-method saveXML saveXML,HTMLInternalDocument-method saveXML,XMLFlatTree-method saveXML,XMLInternalDocument-method saveXML,XMLInternalDOM-method saveXML,XMLInternalNode-method saveXML,XMLNode-method saveXML,XMLOutputStream-method saveXML.XMLInternalDocument saveXML.XMLInternalDOM saveXML.XMLInternalNode saveXML.XMLNode saveXML.XMLOutputStream
A virtual base class defining methods for SAX parsingSAXState-class
Classes for working with XML Schema$,libxmlTypeTable-method $,xmlSchemaRef-method $<-,libxmlTypeTable-method coerce,libxmlTypeTable,list-method ExternalReference-class libxmlTypeTable-class names,libxmlTypeTable-method names,xmlSchemaRef-method SchemaAttributeGroupTable-class SchemaAttributeTable-class SchemaElementTable-class SchemaNotationTable-class SchemaTypeTable-class show,XMLSchemaValidationResults-method xmlSchemaAttributeGroupRef-class xmlSchemaAttributeRef-class xmlSchemaElementRef-class xmlSchemaNotationRef-class xmlSchemaRef-class xmlSchemaTypeRef-class
Set the name space on a nodesetXMLNamespace
Generic Methods for SAX callbacks.InitSAXMethods comment.SAX comment.SAX,ANY,SAXState-method endElement.SAX endElement.SAX,ANY,SAXState-method entityDeclaration.SAX entityDeclaration.SAX,ANY,ANY,ANY,ANY,ANY,SAXState-method processingInstruction.SAX processingInstruction.SAX,ANY,ANY,SAXState-method startElement.SAX startElement.SAX,ANY,ANY,SAXState-method text.SAX text.SAX,ANY,SAXState-method
Determines which native XML parsers are being used.supportsExpat supportsLibxml
Create an HTML representation of the given R object, using internal C-level nodestoHTML toHTML,call-method toHTML,matrix-method toHTML,vector-method
Creates string representation of XML nodetoString.XMLNode
Applies a function to each of the children of an XMLNodexmlApply xmlApply.XMLDocument xmlApply.XMLDocumentContent xmlApply.XMLNode xmlSApply xmlSApply.XMLDocument xmlSApply.XMLDocumentContent xmlSApply.XMLNode
Class '"XMLAttributes"'show,XMLAttributes-method XMLAttributes-class [,XMLAttributes-method
The type of an XML attribute for element from the DTDxmlAttributeType
Get the list of attributes of an XML node.xmlAttrs xmlAttrs.XMLElementDef xmlAttrs.XMLInternalNode xmlAttrs.XMLNode xmlAttrs<- xmlAttrs<-,XMLInternalElementNode-method xmlAttrs<-,XMLInternalNode xmlAttrs<-,XMLNode xmlAttrs<-,XMLNode-method
Gets the sub-nodes within an XMLNode object.xmlChildren xmlChildren.XMLInternalDocument xmlChildren.XMLInternalNode xmlChildren.XMLNode xmlChildren<- xmlChildren<-,ANY-method xmlChildren<-,XMLInternalNode-method
Remove redundant namespaces on an XML documentxmlCleanNamespaces
Create a copy of an internal XML document or nodexmlClone xmlClone,XMLInternalDocument-method xmlClone,XMLInternalNode-method
Simple classes for identifying an XML document containing R codecoerce,character,XMLCodeDoc-method coerce,character,XMLCodeFile-method coerce,XMLCodeFile,XMLCodeDoc-method source,XMLCodeFile-method XMLCodeDoc-class xmlCodeFile XMLCodeFile-class [[,XMLCodeFile,ANY-method [[,XMLCodeFile-method
Checks if an entity is defined within a DTD.xmlContainsElement xmlContainsEntity
Apply function to nodes in an XML tree/DOM.xmlDOMApply
Retrieve the children of an XML node with a specific tag namexmlElementsByTagName
Frequency table of names of elements and attributes in XML contentxmlElementSummary
Default handlers for the SAX-style event XML parserxmlEventHandler
XML Event/Callback element-wise ParserxmlEventParse
Get the value of an attribute in an XML nodexmlGetAttr
Example XML Event Parser Handler FunctionsxmlHandler
Constructors for trees stored as flat list of nodes with information about parents and children.xmlHashTree
Class to represent reference to C-level data structure for an XML documentcoerce,XMLDocument,XMLInternalDocument-method coerce,XMLInternalDocument,XMLInternalNode-method coerce,XMLInternalNode,XMLInternalDocument-method HTMLInternalDocument-class XMLAbstractDocument-class XMLInternalDocument-class
Extraces the tag name of an XMLNode object.xmlName xmlName.XMLComment xmlName.XMLInternalNode xmlName.XMLNode xmlName<-
Retrieve the namespace value of an XML node.xmlNamespace XMLNamespace-class xmlNamespace.character xmlNamespace.XMLInternalNode xmlNamespace.XMLNode xmlNamespace<- xmlNamespace<-,XMLInternalNode-method
Get definitions of any namespaces defined in this XML nodecoerce,character,XMLNamespaceDefinitions-method coerce,NULL,XMLNamespaceDefinitions-method coerce,XMLNamespace,character-method coerce,XMLNamespaceDefinition,character-method coerce,XMLNamespaceDefinitions,character-method getDefaultNamespace xmlNamespaceDefinitions xmlNamespaces xmlNamespaces<- xmlNamespaces<-,XMLInternalNode-method xmlNamespaces<-,XMLNode-method
Create an XML nodexmlCDataNode xmlCommentNode xmlNode xmlPINode xmlTextNode
Classes to describe an XML node object.coerce,XMLAbstractNode,character-method coerce,XMLAbstractNode,Date-method coerce,XMLAbstractNode,integer-method coerce,XMLAbstractNode,logical-method coerce,XMLAbstractNode,numeric-method coerce,XMLAbstractNode,POSIXct-method coerce,XMLAbstractNode,URL-method RXMLNode-class XMLAbstractNode-class XMLAttributeDeclNode-class XMLDocumentFragNode-class XMLDocumentNode-class XMLDocumentTypeNode-class XMLDTDNode-class XMLEntityDeclNode-class XMLInternalCDataNode-class XMLInternalCommentNode-class XMLInternalElementNode-class XMLInternalNode-class XMLInternalPINode-class XMLInternalTextNode-class XMLNamespaceDeclNode-class XMLNamespaceDefinitions-class XMLNode-class XMLTreeNode-class XMLXIncludeEndNode-class XMLXIncludeStartNode-class
XML output streamsxmlOutputBuffer xmlOutputDOM
Get parent node of XMLInternalNode or ancestor nodesxmlAncestors xmlParent xmlParent,XMLHashTreeNode-method xmlParent,XMLInternalNode-method xmlParent,XMLTreeNode-method xmlParent.XMLInternalNode
Parse an XML document with options controlling the parser.COMPACT DTDATTR DTDLOAD DTDVALID HUGE NOBASEFIX NOBLANKS NOCDATA NODICT NOENT NOERROR NONET NOWARNING NOXINCNODE NSCLEAN OLD10 OLDSAX PEDANTIC RECOVER SAX1 XINCLUDE xmlParseDoc
Identifies function as expecting an xmlParserContext argumentxmlParserContextFunction
Get the top-level XML node.xmlRoot xmlRoot.HTMLDocument xmlRoot.XMLDocument xmlRoot.XMLDocumentContent xmlRoot.XMLDocumentRoot xmlRoot.XMLInternalDocument xmlRoot.XMLInternalDOM
Validate an XML document relative to an XML schemaschemaValidationErrorHandler xmlSchemaValidate
Find a namespace definition object by searching ancestor nodescoerce,XMLNamespaceRef,character-method xmlSearchNs
Functions that help serialize and deserialize XML internal objectsxmlDeserializeHook xmlSerializeHook
The number of sub-elements within an XML node.xmlSize xmlSize.default xmlSize.XMLDocument xmlSize.XMLNode
Source the R code, examples, etc. from an XML documentxmlSource xmlSource,character-method xmlSource,XMLInternalDocument-method xmlSource,XMLNodeSet-method xmlSourceFunctions xmlSourceFunctions,character-method xmlSourceFunctions,XMLInternalDocument-method xmlSourceSection xmlSourceSection,character-method xmlSourceSection,XMLInternalDocument-method xmlSourceThread xmlSourceThread,character-method xmlSourceThread,list-method xmlSourceThread,XMLInternalDocument-method
Terminate an XML parserxmlStopParser
Condition/error handler functions for XML parsingxmlErrorCumulator xmlStructuredStop
Extract data from a simple XML documentxmlToDataFrame xmlToDataFrame,ANY,ANY,ANY,ANY,list-method xmlToDataFrame,ANY,ANY,ANY,ANY,XMLInternalNodeList-method xmlToDataFrame,ANY,ANY,ANY,ANY,XMLNodeSet-method xmlToDataFrame,character,ANY,ANY,ANY,ANY-method xmlToDataFrame,list,ANY,ANY,ANY,ANY-method xmlToDataFrame,XMLInternalDocument,ANY,ANY,ANY,missing-method xmlToDataFrame,XMLInternalElementNode,ANY,ANY,ANY,ANY-method xmlToDataFrame,XMLInternalNodeList,ANY,ANY,ANY,ANY-method xmlToDataFrame,XMLNodeSet,ANY,ANY,ANY,ANY-method
Convert an XML node/document to a more R-like listxmlToList
General mechanism for mapping an XML node to an S4 objectxmlToS4 xmlToS4,XMLInternalNode-method
An internal, updatable DOM object for building XML treesxmlTree
XML ParserhtmlParse htmlTreeParse xmlInternalTreeParse xmlNativeTreeParse xmlParse xmlSchemaParse xmlTreeParse
Extract or set the contents of a leaf XML nodecoerce,XMLInternalTextNode,character-method xmlValue xmlValue.XMLCDataNode xmlValue.XMLComment xmlValue.XMLNode xmlValue.XMLProcessingInstruction xmlValue.XMLTextNode xmlValue<- xmlValue<-,XMLAbstractNode-method xmlValue<-,XMLInternalTextNode-method xmlValue<-,XMLTextNode-method