Query if a name is a valid attribute of a DTD element.
dtdIsAttribute.RdExamines the definition of the DTD element definition identified
by element to see if it supports an attribute named
name.
Since parseDTD no longer works, this function isn't
expected to work either and will be removed in a future version of
XML.
Value
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.
Examples
dtdFile <- system.file("exampleData", "foo.dtd", package="XML")
foo.dtd <- parseDTD(dtdFile)
#> Warning: 'parseDTD' no longer works, sorry.
# true
dtdIsAttribute("numRecords", "dataset", foo.dtd)
#> Warning: 'dtdIsAttribute' is deprecated and will be removed soon. Please contact maintainer('XML') if you would like it to keep working.
#> Warning: 'dtdElement' is deprecated and will be removed soon. Please contact maintainer('XML') if you would like it to keep working.
#> [1] FALSE
# false
dtdIsAttribute("date", "dataset", foo.dtd)
#> Warning: 'dtdIsAttribute' is deprecated and will be removed soon. Please contact maintainer('XML') if you would like it to keep working.
#> Warning: 'dtdElement' is deprecated and will be removed soon. Please contact maintainer('XML') if you would like it to keep working.
#> [1] FALSE