Retrieves the raw value of an attribute with the specified name contained in the specified element.
This function bypasses any special processing of attribute values implied by the DSM Type (e.g. returning the default attribute value, when no actual attribute exists).
Instead, it calls directly the W3C DOM method:
and returns its result.org.w3c.dom.Element.getAttribute()
Parameters:
element
The element whose attribute is requested. If not specified, the generator context element is assumed, i.e. the same as the call:getXMLAttribute(contextElement,attrName)
Note: When called for a pseudo-element, this function works the same as
getAttrStringValue()
function. (See alsoDSMElement.pseudoElement
property.)
attrName
The attribute name.
Returns:
The attribute value as a string, or the empty string if the element has no such an attribute.
See Also:
hasXMLAttribute(), setXMLAttribute(), removeXMLAttribute(), getAttrValue()