
Last chance! 50% off unlimited learning
Sale ends in
Examines 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.
The name of the attribute being queried
The name of the element whose definition is to be used to obtain the list of valid attributes.
The DTD containing the definition of the elements,
specifically element
.
Duncan Temple Lang
https://www.w3.org/XML/, http://www.jclark.com/xml/, https://www.omegahat.net
parseDTD
,
dtdElement
,
xmlAttrs
dtdFile <- system.file("exampleData", "foo.dtd", package="XML")
foo.dtd <- parseDTD(dtdFile)
# true
dtdIsAttribute("numRecords", "dataset", foo.dtd)
# false
dtdIsAttribute("date", "dataset", foo.dtd)
Run the code above in your browser using DataLab