The type of an XML attribute for element from the DTD

DESCRIPTION:

This examines the definition of the attribute, usually returned by parsing the DTD with and determines its type from the possible values: Fixed, string data, implied, required, an identifier, an identifier reference, a list of identifier references, an entity, a list of entities, a name, a list of names, an element of enumerated set, a notation entity.

USAGE:

xmlAttributeType(def, defaultType=F)

ARGUMENTS:

def
the attribute definition object, usually retrieved from the DTD via .
defaultType
whether to return the default value if this attribute is defined as being a value from an enumerated set.

VALUE:

A string identifying the type for the sspecified attributed.

AUTHOR(S):

Duncan Temple Lang

REFERENCES:

http://www.w3.org/XML, http://www.omegahat.org/RSXML

SEE ALSO:

EXAMPLES:

 dtdFile <- system.file("exampleData", "foo.dtd", package="XML")
 foo.dtd <- parseDTD(dtdFile)
 xmlAttributeType(dtdElement("entry", foo.dtd)$attributes$a)