GXmlxAttr

GXmlxAttr — An XML Attr node, which represents a name="value" pair.

Functions

Types and Values

#define GXML_TYPE_XATTR
struct GXmlxAttr
struct GXmlxAttrClass

Description

These represent name="value" attributes associated with XML Elements (see GXmlElement). Values are often represented as strings but can also be more complex subtrees for some nodes.

To create one, use gxml_xdocument_create_attribute().

XML Example: Here, we have an Attr with the name 'flavour' and the value 'pumpkin'.

<pie flavour="pumpkin" />

Version: DOM Level 1 Core

URL: http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-637646024

See also: GXmlNode

Functions

gxml_xattr_get_specified ()

gboolean
gxml_xattr_get_specified (GXmlxAttr *self);

Get and return the current value of the "specified" property.

Whether an Attr was explicitly set in the underlying document. If the attribute is changed, it is set to false.

Version: DOM Level 1 Core URL: http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-862529273

Parameters

self

the GXmlxAttr instance to query

 

Returns

the value of the "specified" property

Types and Values

GXML_TYPE_XATTR

#define GXML_TYPE_XATTR (gxml_xattr_get_type ())

The type for GXmlxAttr.


struct GXmlxAttr

struct GXmlxAttr {
	GXmlBackedNode parent_instance;
	GXmlxAttrPrivate * priv;
	xmlAttr* node;
	GXmlAttrChildNodeList* _attr_list;
};

An XML Attr node, which represents a name="value" pair.

These represent name="value" attributes associated with XML Elements (see GXmlElement). Values are often represented as strings but can also be more complex subtrees for some nodes.

To create one, use gxml_xdocument_create_attribute().

XML Example: Here, we have an Attr with the name 'flavour' and the value 'pumpkin'.

<pie flavour="pumpkin" />

Version: DOM Level 1 Core

URL: http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-637646024

See also: GXmlNode


struct GXmlxAttrClass

struct GXmlxAttrClass {
	GXmlBackedNodeClass parent_class;
};

The class structure for GXML_TYPE_XATTR. All the fields in this structure are private and should never be accessed directly.

Members