dtdIsAttribute.RdExamines the definition of the DTD element definition identified
by element to see if it supports an attribute named
name.
dtdIsAttribute(name, element, dtd)A logical value indicating if the
list of attributes suppported by the
specified element has an entry named
name.
This does indicate what type of value
that attribute has, whether it is required, implied,
fixed, etc.
dtdFile <- system.file("exampleData", "foo.dtd", package="XML")
foo.dtd <- parseDTD(dtdFile)
# true
dtdIsAttribute("numRecords", "dataset", foo.dtd)
#> [1] TRUE
# false
dtdIsAttribute("date", "dataset", foo.dtd)
#> [1] FALSE