GXml.Object.get_attribute – GXml-0.20 – Vala Binding Reference

GXml.Object.get_attribute – GXml-0.20 Reference Manual

# get_attribute

## Description:

public virtual string? get_attribute (string name)

Search for properties in objects, it should be an GLib.Object's property. If found a property with given name its value is returned as string representation.

If property is a GXml.Property returned value is a string representation according with object implementation.

If given property name is not found, then DomElement.get_attribute is called.

By default all GLib.Object are children of this object, see get_child