| DAZ Script | |
|---|---|
| String | attribute ( String name, String defValue=“” ) |
| DzDomNode | attributeNode ( String name ) |
| DzDomNode | attributeNodeNS ( String nsURI, String localName ) |
| String | attributeNS ( String nsURI, String localName, String defValue=“” ) |
| Object | attributes () |
| Array | elementsByTagName ( String tagName ) |
| Array | elementsByTagNameNS ( String nsURI, String localName ) |
| Boolean | hasAttribute ( String name ) |
| Boolean | hasAttributeNS ( String nsURI, String localName ) |
| void | removeAttribute ( String name ) |
| DzDomNode | removeAttributeNode ( DzDomAttr attr ) |
| void | removeAttributeNS ( String nsURI, String localName ) |
| void | setAttribute ( String name, String value ) |
| DzDomNode | setAttributeNode ( DzDomAttr attr ) |
| DzDomNode | setAttributeNodeNS ( DzDomAttr attr ) |
| void | setAttributeNS ( String nsURI, String qName, String value ) |
A script wrapper for QDomElement. This object represents an “Element” in a DOM document.
Instances of this object are not constructed directly, rather they are returned by calling DzDomDocument::createElement().
String : attribute( String name, String defValue=“” )
Parameter(s):
Return Value:
defValue.DzDomNode : attributeNode( String name )
Parameter(s):
Return Value:
name attribute (if any), otherwise a DzDomBasicNode.DzDomNode : attributeNodeNS( String nsURI, String localName )
Parameter(s):
Return Value:
String : attributeNS( String nsURI, String localName, String defValue=“” )
Parameter(s):
Return Value:
defValue.Object : attributes()
Return Value:
Since:
Array : elementsByTagName( String tagName )
Parameter(s):
Return Value:
tagName (if any), in the order they were encountered.Since:
Array : elementsByTagNameNS( String nsURI, String localName )
Parameter(s):
Return Value:
Since:
Boolean : hasAttribute( String name )
Parameter(s):
Return Value:
true if the element has an attribute with the specified name, otherwise false.Boolean : hasAttributeNS( String nsURI, String localName )
Parameter(s):
Return Value:
true if the element has an attribute, in the specified namespace, with the specified name, otherwise false.void : removeAttribute( String name )
Removes an attribute from this element.
Parameter(s):
DzDomNode : removeAttributeNode( DzDomAttr attr )
Removes an attribute from this element.
Parameter(s):
Return Value:
See Also:
void : removeAttributeNS( String nsURI, String localName )
Removes an attribute, in the specified namespace, from this element.
Parameter(s):
void : setAttribute( String name, String value )
Sets (or adds) an attribute with the specified name/value on this element.
Parameter(s):
See Also:
DzDomNode : setAttributeNode( DzDomAttr attr )
Sets (or adds) an attribute to this element using a DzDomAttr node.
Parameter(s):
Return Value:
attr. If no attribute was replaced, a DzDomBasicNode is returned.See Also:
DzDomNode : setAttributeNodeNS( DzDomAttr attr )
Sets (or adds) an attribute to this element using a DzDomAttr node.
Parameter(s):
Return Value:
attr, otherwise a DzDomBasicNode.See Also:
void : setAttributeNS( String nsURI, String qName, String value )
Sets (or adds) an attribute with the specified name/value, in the specified namespace, on this element.
Parameter(s):
See Also: