tag_attr_type
tag_attr_type (tagname, attr[, doc])
This function returns the declared attribute value type for the attribute named attr for the element specified by tagname. The returned value is one of the following strings:
"CDATA"
"ENTITY"
"ENTITIES"
"ID"
"IDREF"
"IDREFS"
"NAME"
"NAMES"
"NMTOKEN"
"NMTOKENS"
"NOTATION"
"NUMBER"
"NUMBERS"
"NUTOKEN"
"NUTOKENS"
"NAMEGROUP" (if the attribute was declared as a name group)
.
|
If you have applied an alias map to the document, tagname and attr can be either aliases or real names.
|
The doc argument specifies the identifier of the document tree. If doc is omitted or 0, the current document is used.
|
If the document type definition for your document instance includes the NAMECASE GENERAL NO setting, then the tagname parameter will be case sensitive.
|
Related Topics