| Explanation | Checks if there is an Attr node with the specified attribute name. |
| Call format | var ret = elm.HasAttribute( name ) |
| Return value | $TRUE if the Attr node exists , $FALSE if it does not exist |
| Arguments | String name | Attribute name |
| Exception | None |
| Example of use |
var domimpl = new XmlDOMImplementation;
var res = session.Get("/test/sample.xml");
var xmldoc = domimpl.Load(res);
var elm = xmldoc.DocumentElement;
var ret = elm.HasAttribute("style");
|
| Related item | HasAttributeNS, GetAttribute, SetAttribute, RemoveAttribute, GetAttributeNode method |