Urho.Resources.XmlElement Class

Element in an XML file.

See Also: XmlElement

Syntax

public class XmlElement

Requirements

Namespace: Urho.Resources
Assembly: Urho (in Urho.dll)
Assembly Versions: 1.0.0.0

The members of Urho.Resources.XmlElement are listed below.

See Also: Object

Public Constructors

Constructs a new instance of Urho.Resources.XmlElement, given a raw pointer to an unmanaged object

Public Properties

[read-only]
BoundingBoxBoundingBox. Return bounding box attribute, or empty if missing.
[read-only]
FileXmlFile. Return XML file.
[read-only]
NameString. Return element name (or attribute name if it is an attribute only XPath query result).
[read-only]
NullBoolean. Return whether does not refer to an element or an XPath node.
[read-only]
NumAttributesUInt32. Return number of attributes.
[read-only]
ResourceRefResourceRef. Return a resource reference attribute, or empty if missing.
[read-only]
ResourceRefListResourceRefList. Return a resource reference list attribute, or empty if missing.
[read-only]
ValueString. Return inner value, or empty if missing for nodes like value
[read-only]
VariantVariant. Return a variant attribute, or empty if missing.
[read-only]
XPathResultIndexUInt32. Return current result index.
[read-only]
XPathResultSetXPathResultSet*. Return XPath query result set.

Public Methods

GetAttribute(String) : String
Return attribute, or empty if missing.
GetAttributeLower(String) : String
Return attribute in lowercase, or empty if missing.
GetAttributeUpper(String) : String
Return attribute in lowercase, or empty if missing.
GetBool(String) : Boolean
Return bool attribute, or false if missing.
GetBuffer(String, IntPtr, UInt32) : Boolean
Copy buffer attribute into a supplied buffer. Return true if buffer was large enough.
GetColor(String) : Color
Return a color attribute, or default if missing.
GetDouble(String) : Double
Return a double attribute, or zero if missing.
GetFloat(String) : Single
Return a float attribute, or zero if missing.
GetInt(String) : Int32
Return an integer attribute, or zero if missing.
GetIntRect(String) : IntRect
Return an IntRect attribute, or default if missing.
GetIntVector2(String) : IntVector2
Return an IntVector2 attribute, or default if missing.
GetMatrix3(String) : Matrix3
Return a Matrix3 attribute, or zero matrix if missing.
GetMatrix3x4(String) : Matrix3x4
Return a Matrix3x4 attribute, or zero matrix if missing.
GetMatrix4(String) : Matrix4
Return a Matrix4 attribute, or zero matrix if missing.
GetQuaternion(String) : Quaternion
Return a quaternion attribute, or default if missing.
GetRect(String) : Rect
Return a Rect attribute, or default if missing.
GetUInt(String) : UInt32
Return an unsigned integer attribute, or zero if missing.
GetVariantValue(VariantType) : Variant
Return a variant attribute with static type.
GetVector(String) : Vector4
Return any Vector attribute as Vector4. Missing coordinates will be zero.
GetVector2(String) : Vector2
Return a Vector2 attribute, or zero vector if missing.
GetVector3(String) : Vector3
Return a Vector3 attribute, or zero vector if missing.
GetVector4(String) : Vector4
Return a Vector4 attribute, or zero vector if missing.
GetVectorVariant(String) : Variant
Return a float, Vector or Matrix attribute as Variant.
HasAttribute(String) : Boolean
Return whether has an attribute.
HasChild(String) : Boolean
Return whether has a child element.
NotNull() : Boolean
Return whether refers to an element or an XPath node.
RemoveAttribute(String) : Boolean
Remove an attribute by name. Return true if successful.
RemoveChild(String) : Boolean
Remove a child element by name. Return true if successful.
RemoveChild(XmlElement) : Boolean
RemoveChildren(String) : Boolean
Remove child elements of certain name, or all child elements if name is empty. Return true if successful.
SetAttribute(String) : Boolean
Set an attribute. Only valid if it is an attribute only XPath query result.
SetAttribute(String, String) : Boolean
Set an attribute.
SetBool(String, Boolean) : Boolean
Set a bool attribute.
SetBoundingBox(BoundingBox) : Boolean
Set a BoundingBox attribute.
SetBuffer(String, Void*, UInt32) : Boolean
Set a buffer attribute.
SetColor(String, Color) : Boolean
Set a color attribute.
SetDouble(String, Double) : Boolean
Set a double attribute.
SetFloat(String, Single) : Boolean
Set a float attribute.
SetInt(String, Int32) : Boolean
Set an integer attribute.
SetIntRect(String, IntRect) : Boolean
Set an IntRect attribute.
SetIntVector2(String, IntVector2) : Boolean
Set an IntVector2 attribute.
SetMatrix3x4(String, Matrix3x4) : Boolean
SetMatrix4(String, Matrix4) : Boolean
SetQuaternion(String, Quaternion) : Boolean
Set a quaternion attribute.
SetString(String, String) : Boolean
Set a string attribute.
SetUInt(String, UInt32) : Boolean
Set an unsigned integer attribute.
SetValue(String) : Boolean
Set the value for an inner node in the following format value .
SetVariant(Int32) : Boolean
Set a variant attribute.
SetVariant(Single) : Boolean
Set a variant attribute.
SetVariant(String) : Boolean
Set a variant attribute.
SetVariant(Color) : Boolean
Set a variant attribute.
SetVariant(IntRect) : Boolean
Set a variant attribute.
SetVariant(IntVector2) : Boolean
Set a variant attribute.
SetVariant(Matrix3x4) : Boolean
SetVariant(Matrix4) : Boolean
SetVariant(Quaternion) : Boolean
Set a variant attribute.
SetVariant(Vector2) : Boolean
Set a variant attribute.
SetVariant(Vector3) : Boolean
Set a variant attribute.
SetVariant(Vector4) : Boolean
Set a variant attribute.
SetVariantValue(Int32) : Boolean
Set a variant attribute excluding the type.
SetVariantValue(Single) : Boolean
Set a variant attribute excluding the type.
SetVariantValue(String) : Boolean
Set a variant attribute excluding the type.
SetVariantValue(Color) : Boolean
Set a variant attribute excluding the type.
SetVariantValue(IntRect) : Boolean
Set a variant attribute excluding the type.
SetVariantValue(IntVector2) : Boolean
Set a variant attribute excluding the type.
SetVariantValue(Matrix3x4) : Boolean
SetVariantValue(Matrix4) : Boolean
SetVariantValue(Quaternion) : Boolean
Set a variant attribute excluding the type.
SetVariantValue(Vector2) : Boolean
Set a variant attribute excluding the type.
SetVariantValue(Vector3) : Boolean
Set a variant attribute excluding the type.
SetVariantValue(Vector4) : Boolean
Set a variant attribute excluding the type.
SetVector2(String, Vector2) : Boolean
Set a Vector2 attribute.
SetVector3(String, Vector3) : Boolean
Set a Vector3 attribute.
SetVector4(String, Vector4) : Boolean
Set a Vector4 attribute.
SetVectorVariant(String, Int32) : Boolean
Set a float, Vector or Matrix attribute stored in a variant.
SetVectorVariant(String, Single) : Boolean
Set a float, Vector or Matrix attribute stored in a variant.
SetVectorVariant(String, String) : Boolean
Set a float, Vector or Matrix attribute stored in a variant.
SetVectorVariant(String, Color) : Boolean
Set a float, Vector or Matrix attribute stored in a variant.
SetVectorVariant(String, IntRect) : Boolean
Set a float, Vector or Matrix attribute stored in a variant.
SetVectorVariant(String, IntVector2) : Boolean
Set a float, Vector or Matrix attribute stored in a variant.
SetVectorVariant(String, Matrix3x4) : Boolean
SetVectorVariant(String, Matrix4) : Boolean
SetVectorVariant(String, Quaternion) : Boolean
Set a float, Vector or Matrix attribute stored in a variant.
SetVectorVariant(String, Vector2) : Boolean
Set a float, Vector or Matrix attribute stored in a variant.
SetVectorVariant(String, Vector3) : Boolean
Set a float, Vector or Matrix attribute stored in a variant.
SetVectorVariant(String, Vector4) : Boolean
Set a float, Vector or Matrix attribute stored in a variant.