Learn R Programming

nonmemica (version 0.9.1)

as.xml_document: Create an xml_document in a Project Context

Description

Creates an xml_document in a project context.

Coerces xml_document to xml_document

Creates an xml_document from character (modelname or filepath).

Usage

as.xml_document(x, ...)

# S3 method for xml_document as.xml_document(x, ...)

# S3 method for character as.xml_document(x, strip.namespace = TRUE, ...)

Arguments

x

object of dispatch

...

arguments to methods

strip.namespace

whether to strip e.g. nm: from xml elements

Value

xml_document

xml_document

xml_document

Methods (by class)

  • xml_document: xml_document method

  • character: filepath method

See Also

xpath

Other xpath: as.xml_document.numeric, xpath

Other xpath: as.xml_document.numeric, xpath

Other xpath: as.xml_document.numeric, xpath

Examples

Run this code
# NOT RUN {
library(magrittr)
options(project = system.file('project/model',package='nonmemica'))
1001 %>% as.xml_document
# }

Run the code above in your browser using DataLab