XMLAttr
classin packageklyn.io.xml.dom
public class XMLAttr extends XMLNode implements Attr:
└ XMLNode
└ XMLAttr
All Implemented Interfaces: Attr

DOM attribute implementation.

@example `klyn import klyn.io.xml.dom

attr = XMLAttr("id", "42", document) print(attr.value)

Attributes inherited from Node: ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
Properties
Modifier and Type Member Description
public readonly property isId
isId as Boolean:
No summary.
public readonly property name
name as String:
No summary.
public readonly property ownerElement
ownerElement as Element:
No summary.
public readonly property schemaTypeInfo
schemaTypeInfo as TypeInfo:
No summary.
public readonly property specified
specified as Boolean:
No summary.
public property value
value as String:
No summary.
Properties inherited from XMLNode: attributes, baseURI, childNodes, firstChild, lastChild, localName, namespaceURI, nextSibling, nodeName, nodeType, nodeValue, ownerDocument, parentNode, prefix, previousSibling, textContent
Properties inherited from Attr: isId, name, ownerElement, schemaTypeInfo, specified, value
Properties inherited from Object: type
Properties inherited from Node: attributes, baseURI, childNodes, firstChild, lastChild, localName, namespaceURI, nextSibling, nodeName, nodeType, nodeValue, ownerDocument, parentNode, prefix, previousSibling, textContent
Constructors
Modifier and Type Member Description
public XMLAttr
XMLAttr(name as String, value as String = "", ownerDocument as Document = null):
Creates an attribute node.
Methods
Modifier and Type Member Description
public _setIsId
_setIsId(isId as Boolean) as Void:
Marks or unmarks this attribute as an identifier.
public _setOwnerElement
_setOwnerElement(owner as Element) as Void:
Updates the owning element.
public override toString
toString() as String:
No summary.
Methods inherited from XMLNode: _collectElementsByTagName, _collectElementsByTagNameNS, _setNamespace, _setOwnerDocument, _setOwnerDocumentRecursive, _setParentNode, appendChild, cloneNode, compareDocumentPosition, getAttribute, getFeature, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setUserData
Methods inherited from Object: fromJson, toDict, toJson, toString, toXml
Methods inherited from Node: appendChild, cloneNode, compareDocumentPosition, getAttribute, getFeature, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setUserData