getAttributesAndElementsForElementName: getAttributesAndElementsForElementName

Description Usage Arguments Value Author(s)

View source: R/read.schema.R

Description

Gives the type and restrictions on the values of the child elements and attributes for a given element in the document

Usage

1
getAttributesAndElementsForElementName(theEName, theXMLdoc, logLevel = 1)

Arguments

theEName

(string) The name of the element whose details are needed

theXMLdoc

(XMLInternalDocument OR string) Either: the XML schema document in which the element is present. This should have been read using xmlParseDoc or be supplied in the R workspace.

OR the path to the XML document which is to be read.

logLevel

The level of logging that will be carried out: 0 (none) 1 (limited) or 2 (full). Optional - defaults to 0

Value

The list of the details of the attributes and the child elements for the given element.

The list has two elements named "attributes" and "subelements" for the respective information.

In case the type definiton of the given element is not present in the document, both the "attributes" and the "subelements" are assigned a NULL value.

Author(s)

Lucy Bastin and Ankita Goyal


xmlschemaHelper documentation built on May 31, 2017, 1:45 a.m.