wx.xml.XmlAttribute¶Represents a node attribute.
Example: in <img src="hello.gif" id="3"/> , src is an attribute with value hello.gif and id is an attribute with value 3 .
See also
wx.xml.XmlDocument, wx.xml.XmlNode
Class Hierarchy¶
Inheritance diagram for class XmlAttribute:
Methods Summary¶Default constructor. |
|
Returns the name of this attribute. |
|
Returns the sibling of this attribute or |
|
Returns the value of this attribute. |
|
Sets the name of this attribute. |
|
Sets the sibling of this attribute. |
|
Sets the value of this attribute. |
Properties Summary¶
Class API¶wx.xml.XmlAttribute(object)¶Possible constructors:
XmlAttribute() -> None
XmlAttribute(name : str, value : str, next: Optional[XmlAttribute]=None)
-> None
Represents a node attribute.
__init__(self, *args, **kw)¶__init__ (self)
Default constructor.
None
__init__ (self, name : str, value : str, next: Optional[XmlAttribute]=None)
Creates the attribute with given name and value.
If next is not None, then sets it as sibling of this attribute.
name (string) –
value (string) –
next (wx.xml.XmlAttribute) –
None
GetName(self)¶Returns the name of this attribute.
str
GetNext(self)¶Returns the sibling of this attribute or None if there are no siblings.
GetValue(self)¶Returns the value of this attribute.
str
SetName(self, name : str)¶Sets the name of this attribute.
name (string) –
None
SetNext(self, next : XmlAttribute)¶Sets the sibling of this attribute.
next (wx.xml.XmlAttribute) –
None
SetValue(self, value : str)¶Sets the value of this attribute.
value (string) –
None