TiXmlAttribute

from panda3d.core import TiXmlAttribute
class TiXmlAttribute

Bases: TiXmlBase

An attribute is a name-value pair. Elements have an arbitrary number of attributes, each with a unique name.

Note

The attributes are not TiXmlNodes, since they are not part of the tinyXML document object model. There are other suggested ways to look at this problem.

Inheritance diagram

Inheritance diagram of TiXmlAttribute

DoubleValue()float

///< Return the value of this attribute, converted to a double.

IntValue()int

///< Return the value of this attribute, converted to an integer.

Name()str

///< Return the name of this attribute.

NameTStr()str

Get the tinyxml string representation

Next()TiXmlAttribute
Next()TiXmlAttribute

/// Get the next sibling attribute in the DOM. Returns null at end.

Previous()TiXmlAttribute
Previous()TiXmlAttribute

/// Get the previous sibling attribute in the DOM. Returns null at beginning.

SetDocument(doc: TiXmlDocument)None

[internal use] Set the document pointer so the attribute can report errors.

SetDoubleValue(_value: float)None

///< Set the value from a double.

SetIntValue(_value: int)None

///< Set the value from an integer.

SetName(_name: str)None

///< Set the name of this attribute.

SetName(_name: str)None

/// STL std::string form.

SetValue(_value: str)None

///< Set the value.

SetValue(_value: str)None

/// STL std::string form.

Value()str

///< Return the value of this attribute.

ValueStr()str

///< Return the value of this attribute.

__eq__(rhs: TiXmlAttribute)bool
__gt__(rhs: TiXmlAttribute)bool
__init__()

/// Construct an empty attribute.

__init__(_name: str, _value: str)

/// Construct an attribute with a name and value.

__init__(_name: str, _value: str)

/// std::string constructor.

__lt__(rhs: TiXmlAttribute)bool