CMarkup GetAttrib Method
GetAttrib to get the string value of the attribute named
szAttrib in the main position element. If there is no current position, it returns an empty string. If the main position element has no attribute by the name of
sAttribName, it returns an empty string.
GetAttrib also works when the main position is a processing instruction node. See Node Methods in CMarkup.
To know whether the attribute exists, in the developer version you can call HasAttrib.