Returns true
if the element has a given attribute and false
if not.
The parameter, name
, is a string with the name of the attribute being checked.
Note: Use myXML.getString() or myXML.getNum() to return an attribute's value.
Examples
Syntax
hasAttribute(name)
Parameters
name
String:
name of the attribute to be checked.
Returns
Boolean: whether the element has the attribute.
This page is generated from the comments in src/io/p5.XML.js . Please feel free to edit it and submit a pull request!