IsXmlAttribute()
Determines whether the function parameter is an XML Document Object Model (DOM) attribute node.
IsXmlAttribute( value=any );
Returns: Boolean
| Argument | Description |
|---|---|
|
value
any,
required
|
edit
Name of an XML attribute |
Examples
edit myPath='<note><from body="sample">Bob</from></note>';
lastnames = XmlSearch(myPath, '//@body');
writeDump(lastnames);
writeOutput(isXMLAttribute(lastnames[1]));
See also
- Decision logic
- XML
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)