Gdome2 Reference Manual
<<< Previous Page | Home | Up | Next Page >>>

# GdomeXPathNamespace

## Name

GdomeXPathNamespace -- Interface XPathNamespace implementation.

## Synopsis

    struct      GdomeXPathNamespace;
    GdomeDOMString* gdome_xpns_namespaceURI     (GdomeXPathNamespace *self,
                                                 GdomeException *exc);
    GdomeDOMString* gdome_xpns_nodeName         (GdomeXPathNamespace *self,
                                                 GdomeException *exc);
    unsigned short gdome_xpns_nodeType          (GdomeXPathNamespace *self,
                                                 GdomeException *exc);
    GdomeDocument* gdome_xpns_ownerDocument     (GdomeXPathNamespace *self,
                                                 GdomeException *exc);
    GdomeElement* gdome_xpns_ownerElement       (GdomeXPathNamespace *self,
                                                 GdomeException *exc);
    GdomeDOMString* gdome_xpns_prefix           (GdomeXPathNamespace *self,
                                                 GdomeException *exc);

## Description

This implements the DOM Level 3 XPath W3C Working Draft 08 February 2002. API SUBJECT TO CHANGE!

The GdomeXPathNamespace interface is returned by GdomeXPathResult interfaces to represent the XPath namespace node type that DOM lacks. There is no public constructor for this node type. Attempts to place it into a hierarchy or a GdomeNamedNodeMap result in a GdomeDOMException with the code GDOME_HIERARCHY_REQUEST_ERR. This node is read only, so methods or setting of attributes that would mutate the node result in a GdomeDOMException with the code GDOME_NO_MODIFICATION_ALLOWED_ERR. The core specification describes attributes of the Node interface that are different for different node node types but does not describe GDOME_XPATH_NAMESPACE_NODE, so here is a description of those attributes for this node type. All attributes of Node not described in this section have a `NULL` or `FALSE` value.

## Details

### struct GdomeXPathNamespace

    struct GdomeXPathNamespace {
    	gpointer user_data;
    };

### gdome_xpns_namespaceURI ()

    GdomeDOMString* gdome_xpns_namespaceURI     (GdomeXPathNamespace *self,
                                                 GdomeException *exc);

`self` : | Node Objects ref
`exc` : | Exception Object ref
Returns : | the namespace URI of this node, or `NULL` if it is unspecified. For nodes of any type other than `GDOME_ELEMENT_NODE` and `GDOME_ATTRIBUTE_NODE` and nodes created with a DOM Level 1 method, this is always `NULL`.

### gdome_xpns_nodeName ()

    GdomeDOMString* gdome_xpns_nodeName         (GdomeXPathNamespace *self,
                                                 GdomeException *exc);

`self` : | Node Object ref
`exc` : | Exception Object ref
Returns : | the name of this node, depending on its type.

### gdome_xpns_nodeType ()

    unsigned short gdome_xpns_nodeType          (GdomeXPathNamespace *self,
                                                 GdomeException *exc);

`self` : | Node Object ref
`exc` : | Exception Object ref
Returns : | an integer bigger than `0` representing the type of the underlying object or `0` on error.

### gdome_xpns_ownerDocument ()

    GdomeDocument* gdome_xpns_ownerDocument     (GdomeXPathNamespace *self,
                                                 GdomeException *exc);

`self` : | Node Objects ref
`exc` : | Exception Object ref
Returns : | the documment object associated with this node. This is also the Document object used to create new nodes. When this node is a Document or a DocumentType which is not used with any Document yet, this is `NULL`.

### gdome_xpns_ownerElement ()

    GdomeElement* gdome_xpns_ownerElement       (GdomeXPathNamespace *self,
                                                 GdomeException *exc);

NOT IMPLEMENTED

`self` : | XPathNamespace Object ref
`exc` : | Exception Object ref
Returns : | `NULL`

### gdome_xpns_prefix ()

    GdomeDOMString* gdome_xpns_prefix           (GdomeXPathNamespace *self,
                                                 GdomeException *exc);

`self` : | Node Objects ref
`exc` : | Exception Object ref
Returns : | the namespace prefix of this node, or `NULL` if it is unspecified. For nodes of any type other than `GDOME_ELEMENT_NODE` and `GDOME_ATTRIBUTE_NODE` and nodes created with a DOM Level 1 method, this is always `NULL`.

<<< Previous Page | Home | Up | Next Page >>>
GdomeXPathEvaluator | GdomeXPathNSResolver