dtdElementValidEntry

0th

Percentile

Determines whether an XML element allows a particular type of sub-element.

This tests whether name is a legitimate tag to use as a direct sub-element of the element tag according to the definition of the element element in the specified DTD. This is a generic function that dispatches on the element type, so that different version take effect for XMLSequenceContent, XMLOrContent, XMLElementContent.

Keywords
file
Usage
dtdElementValidEntry(element, name, pos=NULL)
Arguments
element

The XMLElementDef defining the tag in which we are asking whether the sub-element can be used.

name

The name of the sub-element about which we are querying the list of sub-tags within element.

pos

An optional argument which, if supplied, queries whether the name sub-element is valid as the pos-th child of element.

Details

This is not intended to be called directly, but indirectly by the dtdValidElement function.

Value

Logical value indicating whether the sub-element can appear in an element tag or not.

References

http://www.w3.org/XML, http://www.jclark.com/xml, http://www.omegahat.net

See Also

parseDTD, dtdValidElement, dtdElement

Aliases
  • dtdElementValidEntry.character
  • dtdElementValidEntry.XMLElementContent
  • dtdElementValidEntry.XMLElementDef
  • dtdElementValidEntry.XMLOrContent
  • dtdElementValidEntry.XMLSequenceContent
  • dtdElementValidEntry
Examples
# NOT RUN {
 dtdFile <- system.file("exampleData", "foo.dtd",package="XML")
 dtd <- parseDTD(dtdFile) 
 
  dtdElementValidEntry(dtdElement("variables",dtd), "variable")
# }
Documentation reproduced from package XML, version 3.98-1.19, License: BSD_2_clause + file LICENSE

Community examples

Looks like there are no examples yet.