/* libxml-BackedNode.c generated by valac 0.28.1, the Vala compiler
 * generated from libxml-BackedNode.vala, do not modify */

/* -*- Mode: vala; indent-tabs-mode: t; c-basic-offset: 2; tab-width: 2 -*- */
/* BackedNode.vala
 *
 * Copyright (C) 2011-2013  Richard Schwarting <aquarichy@gmail.com>
 * Copyright (C) 2011,2015  Daniel Espinosa <esodan@gmail.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.

 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.

 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
 *
 * Authors:
 *      Richard Schwarting <aquarichy@gmail.com>
 *      Daniel Espinosa <esodan@gmail.com>
 */
/* NOTE: be careful about what extra data subclasses keep*/

#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <gee.h>
#include <gio/gio.h>
#include <libxml/tree.h>
#include <libxml/parser.h>


#define GXML_TYPE_NODE (gxml_node_get_type ())
#define GXML_NODE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_NODE, GXmlNode))
#define GXML_IS_NODE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_NODE))
#define GXML_NODE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_NODE, GXmlNodeIface))

typedef struct _GXmlNode GXmlNode;
typedef struct _GXmlNodeIface GXmlNodeIface;

#define GXML_TYPE_ELEMENT_LIST (gxml_element_list_get_type ())
#define GXML_ELEMENT_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_ELEMENT_LIST, GXmlElementList))
#define GXML_ELEMENT_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_ELEMENT_LIST, GXmlElementListClass))
#define GXML_IS_ELEMENT_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_ELEMENT_LIST))
#define GXML_IS_ELEMENT_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_ELEMENT_LIST))
#define GXML_ELEMENT_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_ELEMENT_LIST, GXmlElementListClass))

typedef struct _GXmlElementList GXmlElementList;
typedef struct _GXmlElementListClass GXmlElementListClass;

#define GXML_TYPE_NAMESPACE (gxml_namespace_get_type ())
#define GXML_NAMESPACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_NAMESPACE, GXmlNamespace))
#define GXML_IS_NAMESPACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_NAMESPACE))
#define GXML_NAMESPACE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_NAMESPACE, GXmlNamespaceIface))

typedef struct _GXmlNamespace GXmlNamespace;
typedef struct _GXmlNamespaceIface GXmlNamespaceIface;

#define GXML_TYPE_NODE_TYPE (gxml_node_type_get_type ())

#define GXML_TYPE_DOCUMENT (gxml_document_get_type ())
#define GXML_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_DOCUMENT, GXmlDocument))
#define GXML_IS_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_DOCUMENT))
#define GXML_DOCUMENT_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_DOCUMENT, GXmlDocumentIface))

typedef struct _GXmlDocument GXmlDocument;
typedef struct _GXmlDocumentIface GXmlDocumentIface;

#define GXML_TYPE_XNODE (gxml_xnode_get_type ())
#define GXML_XNODE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_XNODE, GXmlxNode))
#define GXML_XNODE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_XNODE, GXmlxNodeClass))
#define GXML_IS_XNODE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_XNODE))
#define GXML_IS_XNODE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_XNODE))
#define GXML_XNODE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_XNODE, GXmlxNodeClass))

typedef struct _GXmlxNode GXmlxNode;
typedef struct _GXmlxNodeClass GXmlxNodeClass;
typedef struct _GXmlxNodePrivate GXmlxNodePrivate;

#define GXML_TYPE_NAMESPACE_ATTR (gxml_namespace_attr_get_type ())
#define GXML_NAMESPACE_ATTR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_NAMESPACE_ATTR, GXmlNamespaceAttr))
#define GXML_NAMESPACE_ATTR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_NAMESPACE_ATTR, GXmlNamespaceAttrClass))
#define GXML_IS_NAMESPACE_ATTR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_NAMESPACE_ATTR))
#define GXML_IS_NAMESPACE_ATTR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_NAMESPACE_ATTR))
#define GXML_NAMESPACE_ATTR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_NAMESPACE_ATTR, GXmlNamespaceAttrClass))

typedef struct _GXmlNamespaceAttr GXmlNamespaceAttr;
typedef struct _GXmlNamespaceAttrClass GXmlNamespaceAttrClass;

#define GXML_TYPE_XNODE_LIST (gxml_xnode_list_get_type ())
#define GXML_XNODE_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_XNODE_LIST, GXmlxNodeList))
#define GXML_IS_XNODE_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_XNODE_LIST))
#define GXML_XNODE_LIST_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_XNODE_LIST, GXmlxNodeListIface))

typedef struct _GXmlxNodeList GXmlxNodeList;
typedef struct _GXmlxNodeListIface GXmlxNodeListIface;

#define GXML_TYPE_ABSTRACT_NAMED_ATTR_MAP (gxml_abstract_named_attr_map_get_type ())
#define GXML_ABSTRACT_NAMED_ATTR_MAP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_ABSTRACT_NAMED_ATTR_MAP, GXmlAbstractNamedAttrMap))
#define GXML_ABSTRACT_NAMED_ATTR_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_ABSTRACT_NAMED_ATTR_MAP, GXmlAbstractNamedAttrMapClass))
#define GXML_IS_ABSTRACT_NAMED_ATTR_MAP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_ABSTRACT_NAMED_ATTR_MAP))
#define GXML_IS_ABSTRACT_NAMED_ATTR_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_ABSTRACT_NAMED_ATTR_MAP))
#define GXML_ABSTRACT_NAMED_ATTR_MAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_ABSTRACT_NAMED_ATTR_MAP, GXmlAbstractNamedAttrMapClass))

typedef struct _GXmlAbstractNamedAttrMap GXmlAbstractNamedAttrMap;
typedef struct _GXmlAbstractNamedAttrMapClass GXmlAbstractNamedAttrMapClass;

#define GXML_TYPE_NAMED_ATTR_MAP (gxml_named_attr_map_get_type ())
#define GXML_NAMED_ATTR_MAP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_NAMED_ATTR_MAP, GXmlNamedAttrMap))
#define GXML_NAMED_ATTR_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_NAMED_ATTR_MAP, GXmlNamedAttrMapClass))
#define GXML_IS_NAMED_ATTR_MAP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_NAMED_ATTR_MAP))
#define GXML_IS_NAMED_ATTR_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_NAMED_ATTR_MAP))
#define GXML_NAMED_ATTR_MAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_NAMED_ATTR_MAP, GXmlNamedAttrMapClass))

typedef struct _GXmlNamedAttrMap GXmlNamedAttrMap;
typedef struct _GXmlNamedAttrMapClass GXmlNamedAttrMapClass;

#define GXML_TYPE_ABSTRACT_NAMESPACE_ATTR_NODE_LIST (gxml_abstract_namespace_attr_node_list_get_type ())
#define GXML_ABSTRACT_NAMESPACE_ATTR_NODE_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_ABSTRACT_NAMESPACE_ATTR_NODE_LIST, GXmlAbstractNamespaceAttrNodeList))
#define GXML_ABSTRACT_NAMESPACE_ATTR_NODE_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_ABSTRACT_NAMESPACE_ATTR_NODE_LIST, GXmlAbstractNamespaceAttrNodeListClass))
#define GXML_IS_ABSTRACT_NAMESPACE_ATTR_NODE_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_ABSTRACT_NAMESPACE_ATTR_NODE_LIST))
#define GXML_IS_ABSTRACT_NAMESPACE_ATTR_NODE_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_ABSTRACT_NAMESPACE_ATTR_NODE_LIST))
#define GXML_ABSTRACT_NAMESPACE_ATTR_NODE_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_ABSTRACT_NAMESPACE_ATTR_NODE_LIST, GXmlAbstractNamespaceAttrNodeListClass))

typedef struct _GXmlAbstractNamespaceAttrNodeList GXmlAbstractNamespaceAttrNodeList;
typedef struct _GXmlAbstractNamespaceAttrNodeListClass GXmlAbstractNamespaceAttrNodeListClass;

#define GXML_TYPE_NAMESPACE_ATTR_NODE_LIST (gxml_namespace_attr_node_list_get_type ())
#define GXML_NAMESPACE_ATTR_NODE_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_NAMESPACE_ATTR_NODE_LIST, GXmlNamespaceAttrNodeList))
#define GXML_NAMESPACE_ATTR_NODE_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_NAMESPACE_ATTR_NODE_LIST, GXmlNamespaceAttrNodeListClass))
#define GXML_IS_NAMESPACE_ATTR_NODE_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_NAMESPACE_ATTR_NODE_LIST))
#define GXML_IS_NAMESPACE_ATTR_NODE_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_NAMESPACE_ATTR_NODE_LIST))
#define GXML_NAMESPACE_ATTR_NODE_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_NAMESPACE_ATTR_NODE_LIST, GXmlNamespaceAttrNodeListClass))

typedef struct _GXmlNamespaceAttrNodeList GXmlNamespaceAttrNodeList;
typedef struct _GXmlNamespaceAttrNodeListClass GXmlNamespaceAttrNodeListClass;

#define GXML_TYPE_BACKED_NODE (gxml_backed_node_get_type ())
#define GXML_BACKED_NODE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_BACKED_NODE, GXmlBackedNode))
#define GXML_BACKED_NODE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_BACKED_NODE, GXmlBackedNodeClass))
#define GXML_IS_BACKED_NODE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_BACKED_NODE))
#define GXML_IS_BACKED_NODE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_BACKED_NODE))
#define GXML_BACKED_NODE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_BACKED_NODE, GXmlBackedNodeClass))

typedef struct _GXmlBackedNode GXmlBackedNode;
typedef struct _GXmlBackedNodeClass GXmlBackedNodeClass;
typedef struct _GXmlBackedNodePrivate GXmlBackedNodePrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define GXML_TYPE_XDOCUMENT (gxml_xdocument_get_type ())
#define GXML_XDOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_XDOCUMENT, GXmlxDocument))
#define GXML_XDOCUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_XDOCUMENT, GXmlxDocumentClass))
#define GXML_IS_XDOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_XDOCUMENT))
#define GXML_IS_XDOCUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_XDOCUMENT))
#define GXML_XDOCUMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_XDOCUMENT, GXmlxDocumentClass))

typedef struct _GXmlxDocument GXmlxDocument;
typedef struct _GXmlxDocumentClass GXmlxDocumentClass;
typedef struct _GXmlxDocumentPrivate GXmlxDocumentPrivate;

#define GXML_TYPE_XELEMENT (gxml_xelement_get_type ())
#define GXML_XELEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_XELEMENT, GXmlxElement))
#define GXML_XELEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_XELEMENT, GXmlxElementClass))
#define GXML_IS_XELEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_XELEMENT))
#define GXML_IS_XELEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_XELEMENT))
#define GXML_XELEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_XELEMENT, GXmlxElementClass))

typedef struct _GXmlxElement GXmlxElement;
typedef struct _GXmlxElementClass GXmlxElementClass;

#define GXML_TYPE_CHILD_NODE_LIST (gxml_child_node_list_get_type ())
#define GXML_CHILD_NODE_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_CHILD_NODE_LIST, GXmlChildNodeList))
#define GXML_CHILD_NODE_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_CHILD_NODE_LIST, GXmlChildNodeListClass))
#define GXML_IS_CHILD_NODE_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_CHILD_NODE_LIST))
#define GXML_IS_CHILD_NODE_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_CHILD_NODE_LIST))
#define GXML_CHILD_NODE_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_CHILD_NODE_LIST, GXmlChildNodeListClass))

typedef struct _GXmlChildNodeList GXmlChildNodeList;
typedef struct _GXmlChildNodeListClass GXmlChildNodeListClass;

#define GXML_TYPE_NODE_CHILD_NODE_LIST (gxml_node_child_node_list_get_type ())
#define GXML_NODE_CHILD_NODE_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_NODE_CHILD_NODE_LIST, GXmlNodeChildNodeList))
#define GXML_NODE_CHILD_NODE_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_NODE_CHILD_NODE_LIST, GXmlNodeChildNodeListClass))
#define GXML_IS_NODE_CHILD_NODE_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_NODE_CHILD_NODE_LIST))
#define GXML_IS_NODE_CHILD_NODE_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_NODE_CHILD_NODE_LIST))
#define GXML_NODE_CHILD_NODE_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_NODE_CHILD_NODE_LIST, GXmlNodeChildNodeListClass))

typedef struct _GXmlNodeChildNodeList GXmlNodeChildNodeList;
typedef struct _GXmlNodeChildNodeListClass GXmlNodeChildNodeListClass;
#define _g_free0(var) (var = (g_free (var), NULL))

struct _GXmlNamespaceIface {
	GTypeInterface parent_iface;
	gchar* (*get_uri) (GXmlNamespace* self);
	gchar* (*get_prefix) (GXmlNamespace* self);
};

typedef enum  {
	GXML_NODE_TYPE_X_UNKNOWN = 0,
	GXML_NODE_TYPE_ELEMENT = 1,
	GXML_NODE_TYPE_ATTRIBUTE,
	GXML_NODE_TYPE_TEXT,
	GXML_NODE_TYPE_CDATA_SECTION,
	GXML_NODE_TYPE_ENTITY_REFERENCE,
	GXML_NODE_TYPE_ENTITY,
	GXML_NODE_TYPE_PROCESSING_INSTRUCTION,
	GXML_NODE_TYPE_COMMENT,
	GXML_NODE_TYPE_DOCUMENT,
	GXML_NODE_TYPE_DOCUMENT_TYPE,
	GXML_NODE_TYPE_DOCUMENT_FRAGMENT,
	GXML_NODE_TYPE_NOTATION
} GXmlNodeType;

struct _GXmlDocumentIface {
	GTypeInterface parent_iface;
	GXmlNode* (*create_element) (GXmlDocument* self, const gchar* name, GError** error);
	GXmlNode* (*create_text) (GXmlDocument* self, const gchar* text);
	GXmlNode* (*create_comment) (GXmlDocument* self, const gchar* text);
	GXmlNode* (*create_cdata) (GXmlDocument* self, const gchar* text);
	GXmlNode* (*create_pi) (GXmlDocument* self, const gchar* target, const gchar* data);
	gboolean (*save) (GXmlDocument* self, GCancellable* cancellable, GError** error);
	gboolean (*save_as) (GXmlDocument* self, GFile* f, GCancellable* cancellable, GError** error);
	gboolean (*get_indent) (GXmlDocument* self);
	void (*set_indent) (GXmlDocument* self, gboolean value);
	gboolean (*get_ns_top) (GXmlDocument* self);
	void (*set_ns_top) (GXmlDocument* self, gboolean value);
	gboolean (*get_prefix_default_ns) (GXmlDocument* self);
	void (*set_prefix_default_ns) (GXmlDocument* self, gboolean value);
	gboolean (*get_backup) (GXmlDocument* self);
	void (*set_backup) (GXmlDocument* self, gboolean value);
	GXmlNode* (*get_root) (GXmlDocument* self);
	GFile* (*get_file) (GXmlDocument* self);
	void (*set_file) (GXmlDocument* self, GFile* value);
};

struct _GXmlNodeIface {
	GTypeInterface parent_iface;
	GXmlNode* (*get) (GXmlNode* self, const gchar* key);
	GXmlElementList* (*get_elements_by_property_value) (GXmlNode* self, const gchar* property, const gchar* value);
	gchar* (*to_string) (GXmlNode* self);
	gboolean (*set_namespace) (GXmlNode* self, const gchar* uri, const gchar* prefix);
	gchar* (*ns_prefix) (GXmlNode* self);
	gchar* (*ns_uri) (GXmlNode* self);
	GeeList* (*get_namespaces) (GXmlNode* self);
	GeeBidirList* (*get_childs) (GXmlNode* self);
	GeeBidirList* (*get_children) (GXmlNode* self);
	GeeMap* (*get_attrs) (GXmlNode* self);
	gchar* (*get_name) (GXmlNode* self);
	gchar* (*get_value) (GXmlNode* self);
	void (*set_value) (GXmlNode* self, const gchar* value);
	GXmlNodeType (*get_type_node) (GXmlNode* self);
	GXmlDocument* (*get_document) (GXmlNode* self);
	GXmlNode* (*get_parent) (GXmlNode* self);
};

struct _GXmlxNodeListIface {
	GTypeInterface parent_iface;
	GXmlxNode* (*item) (GXmlxNodeList* self, gulong idx);
	GXmlxNode* (*insert_before) (GXmlxNodeList* self, GXmlxNode* new_child, GXmlxNode* ref_child);
	GXmlxNode* (*replace_child) (GXmlxNodeList* self, GXmlxNode* new_child, GXmlxNode* old_child);
	GXmlxNode* (*remove_child) (GXmlxNodeList* self, GXmlxNode* old_child);
	GXmlxNode* (*append_child) (GXmlxNodeList* self, GXmlxNode* new_child);
	gchar* (*to_string) (GXmlxNodeList* self, gboolean in_line);
	GXmlxNode* (*first) (GXmlxNodeList* self);
	GXmlxNode* (*last) (GXmlxNodeList* self);
	GXmlxNode* (*get) (GXmlxNodeList* self, gint n);
	gulong (*get_length) (GXmlxNodeList* self);
	void (*set_length) (GXmlxNodeList* self, gulong value);
};

struct _GXmlxNode {
	GObject parent_instance;
	GXmlxNodePrivate * priv;
	GXmlxNodeList* _child_nodes;
	GXmlNamedAttrMap* _attributes;
	GXmlNamespaceAttrNodeList* _namespace_definitions;
};

struct _GXmlxNodeClass {
	GObjectClass parent_class;
	GXmlNamespaceAttr* (*add_namespace_attr) (GXmlxNode* self, const gchar* uri, const gchar* namespace_prefix);
	gboolean (*set_namespace) (GXmlxNode* self, const gchar* uri, const gchar* namespace_prefix);
	GXmlxNode* (*insert_before) (GXmlxNode* self, GXmlxNode* new_child, GXmlxNode* ref_child);
	GXmlxNode* (*replace_child) (GXmlxNode* self, GXmlxNode* new_child, GXmlxNode* old_child);
	GXmlxNode* (*remove_child) (GXmlxNode* self, GXmlxNode* old_child);
	GXmlxNode* (*append_child) (GXmlxNode* self, GXmlxNode* new_child);
	gboolean (*has_child_nodes) (GXmlxNode* self);
	GXmlxNode* (*clone_node) (GXmlxNode* self, gboolean deep);
	gchar* (*stringify) (GXmlxNode* self, gboolean format, gint level);
	gchar* (*to_string) (GXmlxNode* self);
	GeeList* (*get_namespace_definitions) (GXmlxNode* self);
	void (*set_namespace_definitions) (GXmlxNode* self, GeeList* value);
	const gchar* (*get_namespace_uri) (GXmlxNode* self);
	void (*set_namespace_uri) (GXmlxNode* self, const gchar* value);
	const gchar* (*get_namespace_prefix) (GXmlxNode* self);
	void (*set_namespace_prefix) (GXmlxNode* self, const gchar* value);
	const gchar* (*get_local_name) (GXmlxNode* self);
	void (*set_local_name) (GXmlxNode* self, const gchar* value);
	const gchar* (*get_node_name) (GXmlxNode* self);
	void (*set_node_name) (GXmlxNode* self, const gchar* value);
	const gchar* (*get_node_value) (GXmlxNode* self);
	void (*set_node_value) (GXmlxNode* self, const gchar* value);
	GXmlNodeType (*get_node_type) (GXmlxNode* self);
	void (*set_node_type) (GXmlxNode* self, GXmlNodeType value);
	GXmlxNode* (*get_parent_node) (GXmlxNode* self);
	void (*set_parent_node) (GXmlxNode* self, GXmlxNode* value);
	GXmlxNodeList* (*get_child_nodes) (GXmlxNode* self);
	void (*set_child_nodes) (GXmlxNode* self, GXmlxNodeList* value);
	GXmlxNode* (*get_first_child) (GXmlxNode* self);
	void (*set_first_child) (GXmlxNode* self, GXmlxNode* value);
	GXmlxNode* (*get_last_child) (GXmlxNode* self);
	void (*set_last_child) (GXmlxNode* self, GXmlxNode* value);
	GXmlxNode* (*get_previous_sibling) (GXmlxNode* self);
	void (*set_previous_sibling) (GXmlxNode* self, GXmlxNode* value);
	GXmlxNode* (*get_next_sibling) (GXmlxNode* self);
	void (*set_next_sibling) (GXmlxNode* self, GXmlxNode* value);
	GXmlNamedAttrMap* (*get_attributes) (GXmlxNode* self);
	void (*set_attributes) (GXmlxNode* self, GXmlNamedAttrMap* value);
	GeeList* (*get_namespaces) (GXmlxNode* self);
	GeeBidirList* (*get_children) (GXmlxNode* self);
	GeeMap* (*get_attrs) (GXmlxNode* self);
	gchar* (*get_name) (GXmlxNode* self);
	gchar* (*get_value) (GXmlxNode* self);
	void (*set_value) (GXmlxNode* self, const gchar* value);
	GXmlNode* (*get_parent) (GXmlxNode* self);
};

struct _GXmlBackedNode {
	GXmlxNode parent_instance;
	GXmlBackedNodePrivate * priv;
	xmlNode* node;
};

struct _GXmlBackedNodeClass {
	GXmlxNodeClass parent_class;
};

struct _GXmlBackedNodePrivate {
	GXmlxNode* _first_child;
	GXmlxNode* _last_child;
};

struct _GXmlxDocument {
	GXmlxNode parent_instance;
	GXmlxDocumentPrivate * priv;
	GHashTable* node_dict;
	GList* dirty_elements;
	xmlDoc* xmldoc;
	GXmlNodeChildNodeList* _node_list;
};

struct _GXmlxDocumentClass {
	GXmlxNodeClass parent_class;
	GXmlNode* (*get_root) (GXmlxDocument* self);
};


static gpointer gxml_backed_node_parent_class = NULL;

GType gxml_element_list_get_type (void) G_GNUC_CONST;
GType gxml_namespace_get_type (void) G_GNUC_CONST;
GType gxml_node_type_get_type (void) G_GNUC_CONST;
GType gxml_document_get_type (void) G_GNUC_CONST;
GType gxml_node_get_type (void) G_GNUC_CONST;
GType gxml_xnode_get_type (void) G_GNUC_CONST;
GType gxml_namespace_attr_get_type (void) G_GNUC_CONST;
GType gxml_xnode_list_get_type (void) G_GNUC_CONST;
GType gxml_abstract_named_attr_map_get_type (void) G_GNUC_CONST;
GType gxml_named_attr_map_get_type (void) G_GNUC_CONST;
GType gxml_abstract_namespace_attr_node_list_get_type (void) G_GNUC_CONST;
GType gxml_namespace_attr_node_list_get_type (void) G_GNUC_CONST;
GType gxml_backed_node_get_type (void) G_GNUC_CONST;
#define GXML_BACKED_NODE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GXML_TYPE_BACKED_NODE, GXmlBackedNodePrivate))
enum  {
	GXML_BACKED_NODE_DUMMY_PROPERTY,
	GXML_BACKED_NODE_NAMESPACE_DEFINITIONS,
	GXML_BACKED_NODE_NAMESPACE_URI,
	GXML_BACKED_NODE_NAMESPACE_PREFIX,
	GXML_BACKED_NODE_LOCAL_NAME,
	GXML_BACKED_NODE_NODE_NAME,
	GXML_BACKED_NODE_NODE_VALUE,
	GXML_BACKED_NODE_NODE_TYPE,
	GXML_BACKED_NODE_PARENT_NODE,
	GXML_BACKED_NODE_CHILD_NODES,
	GXML_BACKED_NODE_FIRST_CHILD,
	GXML_BACKED_NODE_LAST_CHILD,
	GXML_BACKED_NODE_PREVIOUS_SIBLING,
	GXML_BACKED_NODE_NEXT_SIBLING
};
GType gxml_xdocument_get_type (void) G_GNUC_CONST;
void gxml_backed_node_set_xmlnode (GXmlBackedNode* self, xmlNode* node, GXmlxDocument* owner);
GType gxml_xelement_get_type (void) G_GNUC_CONST;
GType gxml_child_node_list_get_type (void) G_GNUC_CONST;
GType gxml_node_child_node_list_get_type (void) G_GNUC_CONST;
GXmlBackedNode* gxml_backed_node_new (xmlNode* node, GXmlxDocument* owner);
GXmlBackedNode* gxml_backed_node_construct (GType object_type, xmlNode* node, GXmlxDocument* owner);
GXmlxNode* gxml_xnode_construct (GType object_type, GXmlNodeType type, GXmlxDocument* owner);
GXmlxDocument* gxml_xnode_get_owner_document (GXmlxNode* self);
GXmlNodeChildNodeList* gxml_node_child_node_list_new (xmlNode* parent, GXmlxDocument* owner);
GXmlNodeChildNodeList* gxml_node_child_node_list_construct (GType object_type, xmlNode* parent, GXmlxDocument* owner);
static GXmlNamespaceAttr* gxml_backed_node_real_add_namespace_attr (GXmlxNode* base, const gchar* uri, const gchar* namespace_prefix);
GXmlNamespaceAttr* gxml_namespace_attr_new (xmlNs* ns, GXmlxDocument* doc);
GXmlNamespaceAttr* gxml_namespace_attr_construct (GType object_type, xmlNs* ns, GXmlxDocument* doc);
static gboolean gxml_backed_node_real_set_namespace (GXmlxNode* base, const gchar* uri, const gchar* namespace_prefix);
static GXmlxNode* gxml_backed_node_real_insert_before (GXmlxNode* base, GXmlxNode* new_child, GXmlxNode* ref_child);
GXmlxNodeList* gxml_xnode_get_child_nodes (GXmlxNode* self);
GXmlxNode* gxml_xnode_list_insert_before (GXmlxNodeList* self, GXmlxNode* new_child, GXmlxNode* ref_child);
static GXmlxNode* gxml_backed_node_real_replace_child (GXmlxNode* base, GXmlxNode* new_child, GXmlxNode* old_child);
GXmlxNode* gxml_xnode_list_replace_child (GXmlxNodeList* self, GXmlxNode* new_child, GXmlxNode* old_child);
static GXmlxNode* gxml_backed_node_real_remove_child (GXmlxNode* base, GXmlxNode* old_child);
GXmlxNode* gxml_xnode_list_remove_child (GXmlxNodeList* self, GXmlxNode* old_child);
static GXmlxNode* gxml_backed_node_real_append_child (GXmlxNode* base, GXmlxNode* new_child);
GXmlxNode* gxml_xnode_list_append_child (GXmlxNodeList* self, GXmlxNode* new_child);
GXmlxNode* gxml_xdocument_copy_node (GXmlxDocument* self, GXmlxNode* foreign_node, gboolean deep);
static gboolean gxml_backed_node_real_has_child_nodes (GXmlxNode* base);
gulong gxml_xnode_list_get_length (GXmlxNodeList* self);
static GXmlxNode* gxml_backed_node_real_clone_node (GXmlxNode* base, gboolean deep);
static gchar* gxml_backed_node_real_stringify (GXmlxNode* base, gboolean format, gint level);
GXmlNamespaceAttrNodeList* gxml_namespace_attr_node_list_new (GXmlBackedNode* root);
GXmlNamespaceAttrNodeList* gxml_namespace_attr_node_list_construct (GType object_type, GXmlBackedNode* root);
const gchar* gxml_xnode_get_node_name (GXmlxNode* self);
GXmlxNode* gxml_xdocument_lookup_node (GXmlxDocument* self, xmlNode* xmlnode);
GXmlxNode* gxml_xnode_list_first (GXmlxNodeList* self);
GXmlxNode* gxml_xnode_list_last (GXmlxNodeList* self);
static void gxml_backed_node_finalize (GObject* obj);
GeeList* gxml_xnode_get_namespace_definitions (GXmlxNode* self);
const gchar* gxml_xnode_get_namespace_uri (GXmlxNode* self);
const gchar* gxml_xnode_get_namespace_prefix (GXmlxNode* self);
const gchar* gxml_xnode_get_local_name (GXmlxNode* self);
const gchar* gxml_xnode_get_node_value (GXmlxNode* self);
GXmlNodeType gxml_xnode_get_node_type (GXmlxNode* self);
GXmlxNode* gxml_xnode_get_parent_node (GXmlxNode* self);
GXmlxNode* gxml_xnode_get_first_child (GXmlxNode* self);
GXmlxNode* gxml_xnode_get_last_child (GXmlxNode* self);
GXmlxNode* gxml_xnode_get_previous_sibling (GXmlxNode* self);
GXmlxNode* gxml_xnode_get_next_sibling (GXmlxNode* self);
static void _vala_gxml_backed_node_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
void gxml_xnode_set_namespace_definitions (GXmlxNode* self, GeeList* value);
void gxml_xnode_set_namespace_uri (GXmlxNode* self, const gchar* value);
void gxml_xnode_set_namespace_prefix (GXmlxNode* self, const gchar* value);
void gxml_xnode_set_local_name (GXmlxNode* self, const gchar* value);
void gxml_xnode_set_node_name (GXmlxNode* self, const gchar* value);
void gxml_xnode_set_node_value (GXmlxNode* self, const gchar* value);
void gxml_xnode_set_node_type (GXmlxNode* self, GXmlNodeType value);
void gxml_xnode_set_parent_node (GXmlxNode* self, GXmlxNode* value);
void gxml_xnode_set_child_nodes (GXmlxNode* self, GXmlxNodeList* value);
void gxml_xnode_set_first_child (GXmlxNode* self, GXmlxNode* value);
void gxml_xnode_set_last_child (GXmlxNode* self, GXmlxNode* value);
void gxml_xnode_set_previous_sibling (GXmlxNode* self, GXmlxNode* value);
void gxml_xnode_set_next_sibling (GXmlxNode* self, GXmlxNode* value);
static void _vala_gxml_backed_node_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);


static gpointer _g_object_ref0 (gpointer self) {
	return self ? g_object_ref (self) : NULL;
}


void gxml_backed_node_set_xmlnode (GXmlBackedNode* self, xmlNode* node, GXmlxDocument* owner) {
	xmlNode* _tmp0_ = NULL;
	GXmlxDocument* _tmp1_ = NULL;
	GHashTable* _tmp2_ = NULL;
	xmlNode* _tmp3_ = NULL;
	GXmlxNode* _tmp4_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (owner != NULL);
	_tmp0_ = node;
	self->node = _tmp0_;
	_tmp1_ = owner;
	_tmp2_ = _tmp1_->node_dict;
	_tmp3_ = node;
	_tmp4_ = _g_object_ref0 ((GXmlxNode*) self);
	g_hash_table_insert (_tmp2_, _tmp3_, _tmp4_);
}


GXmlBackedNode* gxml_backed_node_construct (GType object_type, xmlNode* node, GXmlxDocument* owner) {
	GXmlBackedNode * self = NULL;
	xmlNode* _tmp0_ = NULL;
	xmlElementType _tmp1_ = 0;
	GXmlxDocument* _tmp2_ = NULL;
	xmlNode* _tmp3_ = NULL;
	GXmlxDocument* _tmp4_ = NULL;
	xmlNode* _tmp5_ = NULL;
	GXmlxDocument* _tmp6_ = NULL;
	GXmlxDocument* _tmp7_ = NULL;
	GXmlNodeChildNodeList* _tmp8_ = NULL;
	g_return_val_if_fail (owner != NULL, NULL);
	_tmp0_ = node;
	_tmp1_ = _tmp0_->type;
	_tmp2_ = owner;
	self = (GXmlBackedNode*) gxml_xnode_construct (object_type, (GXmlNodeType) _tmp1_, _tmp2_);
	_tmp3_ = node;
	_tmp4_ = owner;
	gxml_backed_node_set_xmlnode (self, _tmp3_, _tmp4_);
	_tmp5_ = self->node;
	_tmp6_ = gxml_xnode_get_owner_document ((GXmlxNode*) self);
	_tmp7_ = _tmp6_;
	_tmp8_ = gxml_node_child_node_list_new (_tmp5_, _tmp7_);
	_g_object_unref0 (((GXmlxNode*) self)->_child_nodes);
	((GXmlxNode*) self)->_child_nodes = (GXmlxNodeList*) _tmp8_;
	return self;
}


GXmlBackedNode* gxml_backed_node_new (xmlNode* node, GXmlxDocument* owner) {
	return gxml_backed_node_construct (GXML_TYPE_BACKED_NODE, node, owner);
}


/**
 * {@inheritDoc}
 */
static GXmlNamespaceAttr* gxml_backed_node_real_add_namespace_attr (GXmlxNode* base, const gchar* uri, const gchar* namespace_prefix) {
	GXmlBackedNode * self;
	GXmlNamespaceAttr* result = NULL;
	xmlNs* ns = NULL;
	xmlNode* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	xmlNs* _tmp3_ = NULL;
	xmlNs* _tmp4_ = NULL;
	self = (GXmlBackedNode*) base;
	g_return_val_if_fail (uri != NULL, NULL);
	_tmp0_ = self->node;
	_tmp1_ = uri;
	_tmp2_ = namespace_prefix;
	_tmp3_ = xmlNewNs (_tmp0_, (xmlChar*) _tmp1_, (xmlChar*) _tmp2_);
	ns = _tmp3_;
	_tmp4_ = ns;
	if (_tmp4_ == NULL) {
		result = NULL;
		return result;
	} else {
		xmlNs* _tmp5_ = NULL;
		GXmlxDocument* _tmp6_ = NULL;
		GXmlxDocument* _tmp7_ = NULL;
		GXmlNamespaceAttr* _tmp8_ = NULL;
		_tmp5_ = ns;
		_tmp6_ = gxml_xnode_get_owner_document ((GXmlxNode*) self);
		_tmp7_ = _tmp6_;
		_tmp8_ = gxml_namespace_attr_new (_tmp5_, _tmp7_);
		result = _tmp8_;
		return result;
	}
}


/**
 * {@inheritDoc}
 */
static gboolean gxml_backed_node_real_set_namespace (GXmlxNode* base, const gchar* uri, const gchar* namespace_prefix) {
	GXmlBackedNode * self;
	gboolean result = FALSE;
	xmlNode* _tmp0_ = NULL;
	xmlNs* ns = NULL;
	xmlNode* _tmp1_ = NULL;
	xmlDoc* _tmp2_ = NULL;
	xmlNode* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	xmlNs* _tmp5_ = NULL;
	xmlNs* _tmp6_ = NULL;
	xmlNode* _tmp9_ = NULL;
	const gchar* _tmp10_ = NULL;
	const gchar* _tmp11_ = NULL;
	xmlNs* _tmp12_ = NULL;
	xmlNode* _tmp13_ = NULL;
	xmlNs* _tmp14_ = NULL;
	self = (GXmlBackedNode*) base;
	g_return_val_if_fail (uri != NULL, FALSE);
	_tmp0_ = self->node;
	if (_tmp0_ == NULL) {
		result = FALSE;
		return result;
	}
	_tmp1_ = self->node;
	_tmp2_ = _tmp1_->doc;
	_tmp3_ = self->node;
	_tmp4_ = uri;
	_tmp5_ = xmlSearchNsByHref (_tmp2_, _tmp3_, _tmp4_);
	ns = _tmp5_;
	_tmp6_ = ns;
	if (_tmp6_ != NULL) {
		xmlNode* _tmp7_ = NULL;
		xmlNs* _tmp8_ = NULL;
		_tmp7_ = self->node;
		_tmp8_ = ns;
		xmlSetNs (_tmp7_, _tmp8_);
		result = TRUE;
		return result;
	}
	_tmp9_ = self->node;
	_tmp10_ = uri;
	_tmp11_ = namespace_prefix;
	_tmp12_ = xmlNewNs (_tmp9_, (xmlChar*) _tmp10_, (xmlChar*) _tmp11_);
	ns = _tmp12_;
	_tmp13_ = self->node;
	_tmp14_ = ns;
	xmlSetNs (_tmp13_, _tmp14_);
	result = TRUE;
	return result;
}


/**
 * {@inheritDoc}
 */
static GXmlxNode* gxml_backed_node_real_insert_before (GXmlxNode* base, GXmlxNode* new_child, GXmlxNode* ref_child) {
	GXmlBackedNode * self;
	GXmlxNode* result = NULL;
	GXmlxNodeList* _tmp0_ = NULL;
	GXmlxNodeList* _tmp1_ = NULL;
	GXmlxNode* _tmp2_ = NULL;
	GXmlxNode* _tmp3_ = NULL;
	GXmlxNode* _tmp4_ = NULL;
	self = (GXmlBackedNode*) base;
	g_return_val_if_fail (new_child != NULL, NULL);
	_tmp0_ = gxml_xnode_get_child_nodes ((GXmlxNode*) self);
	_tmp1_ = _tmp0_;
	_tmp2_ = new_child;
	_tmp3_ = ref_child;
	_tmp4_ = gxml_xnode_list_insert_before (_tmp1_, _tmp2_, _tmp3_);
	result = _tmp4_;
	return result;
}


/**
 * {@inheritDoc}
 */
static GXmlxNode* gxml_backed_node_real_replace_child (GXmlxNode* base, GXmlxNode* new_child, GXmlxNode* old_child) {
	GXmlBackedNode * self;
	GXmlxNode* result = NULL;
	GXmlxNodeList* _tmp0_ = NULL;
	GXmlxNodeList* _tmp1_ = NULL;
	GXmlxNode* _tmp2_ = NULL;
	GXmlxNode* _tmp3_ = NULL;
	GXmlxNode* _tmp4_ = NULL;
	self = (GXmlBackedNode*) base;
	g_return_val_if_fail (new_child != NULL, NULL);
	g_return_val_if_fail (old_child != NULL, NULL);
	_tmp0_ = gxml_xnode_get_child_nodes ((GXmlxNode*) self);
	_tmp1_ = _tmp0_;
	_tmp2_ = new_child;
	_tmp3_ = old_child;
	_tmp4_ = gxml_xnode_list_replace_child (_tmp1_, _tmp2_, _tmp3_);
	result = _tmp4_;
	return result;
}


/**
 * {@inheritDoc}
 */
static GXmlxNode* gxml_backed_node_real_remove_child (GXmlxNode* base, GXmlxNode* old_child) {
	GXmlBackedNode * self;
	GXmlxNode* result = NULL;
	GXmlxNodeList* _tmp0_ = NULL;
	GXmlxNodeList* _tmp1_ = NULL;
	GXmlxNode* _tmp2_ = NULL;
	GXmlxNode* _tmp3_ = NULL;
	self = (GXmlBackedNode*) base;
	g_return_val_if_fail (old_child != NULL, NULL);
	_tmp0_ = gxml_xnode_get_child_nodes ((GXmlxNode*) self);
	_tmp1_ = _tmp0_;
	_tmp2_ = old_child;
	_tmp3_ = gxml_xnode_list_remove_child (_tmp1_, _tmp2_);
	result = _tmp3_;
	return result;
}


/**
 * {@inheritDoc}
 */
static GXmlxNode* gxml_backed_node_real_append_child (GXmlxNode* base, GXmlxNode* new_child) {
	GXmlBackedNode * self;
	GXmlxNode* result = NULL;
	gboolean _tmp0_ = FALSE;
	GXmlxNode* _tmp1_ = NULL;
	GXmlxDocument* _tmp2_ = NULL;
	GXmlxDocument* _tmp3_ = NULL;
	GXmlxDocument* _tmp4_ = NULL;
	GXmlxDocument* _tmp5_ = NULL;
	self = (GXmlBackedNode*) base;
	g_return_val_if_fail (new_child != NULL, NULL);
	_tmp1_ = new_child;
	_tmp2_ = gxml_xnode_get_owner_document (_tmp1_);
	_tmp3_ = _tmp2_;
	_tmp4_ = gxml_xnode_get_owner_document ((GXmlxNode*) self);
	_tmp5_ = _tmp4_;
	if (_tmp3_ != _tmp5_) {
		GXmlxNode* _tmp6_ = NULL;
		GType _tmp7_ = 0UL;
		gboolean _tmp8_ = FALSE;
		_tmp6_ = new_child;
		_tmp7_ = G_TYPE_FROM_INSTANCE ((GObject*) _tmp6_);
		_tmp8_ = g_type_is_a (_tmp7_, GXML_TYPE_BACKED_NODE);
		_tmp0_ = _tmp8_;
	} else {
		_tmp0_ = FALSE;
	}
	if (_tmp0_) {
		GXmlxNodeList* _tmp9_ = NULL;
		GXmlxNodeList* _tmp10_ = NULL;
		GXmlxDocument* _tmp11_ = NULL;
		GXmlxDocument* _tmp12_ = NULL;
		GXmlxNode* _tmp13_ = NULL;
		GXmlxNode* _tmp14_ = NULL;
		GXmlxNode* _tmp15_ = NULL;
		_tmp9_ = gxml_xnode_get_child_nodes ((GXmlxNode*) self);
		_tmp10_ = _tmp9_;
		_tmp11_ = gxml_xnode_get_owner_document ((GXmlxNode*) self);
		_tmp12_ = _tmp11_;
		_tmp13_ = new_child;
		_tmp14_ = gxml_xdocument_copy_node (_tmp12_, _tmp13_, TRUE);
		_tmp15_ = gxml_xnode_list_append_child (_tmp10_, _tmp14_);
		result = _tmp15_;
		return result;
	} else {
		GXmlxNodeList* _tmp16_ = NULL;
		GXmlxNodeList* _tmp17_ = NULL;
		GXmlxNode* _tmp18_ = NULL;
		GXmlxNode* _tmp19_ = NULL;
		_tmp16_ = gxml_xnode_get_child_nodes ((GXmlxNode*) self);
		_tmp17_ = _tmp16_;
		_tmp18_ = new_child;
		_tmp19_ = gxml_xnode_list_append_child (_tmp17_, _tmp18_);
		result = _tmp19_;
		return result;
	}
}


/**
 * {@inheritDoc}
 */
static gboolean gxml_backed_node_real_has_child_nodes (GXmlxNode* base) {
	GXmlBackedNode * self;
	gboolean result = FALSE;
	GXmlxNodeList* _tmp0_ = NULL;
	GXmlxNodeList* _tmp1_ = NULL;
	gulong _tmp2_ = 0UL;
	gulong _tmp3_ = 0UL;
	self = (GXmlBackedNode*) base;
	_tmp0_ = gxml_xnode_get_child_nodes ((GXmlxNode*) self);
	_tmp1_ = _tmp0_;
	_tmp2_ = gxml_xnode_list_get_length (_tmp1_);
	_tmp3_ = _tmp2_;
	result = _tmp3_ > ((gulong) 0);
	return result;
}


/**
 * {@inheritDoc}
 */
static GXmlxNode* gxml_backed_node_real_clone_node (GXmlxNode* base, gboolean deep) {
	GXmlBackedNode * self;
	GXmlxNode* result = NULL;
	GXmlxDocument* _tmp0_ = NULL;
	GXmlxDocument* _tmp1_ = NULL;
	gboolean _tmp2_ = FALSE;
	GXmlxNode* _tmp3_ = NULL;
	self = (GXmlBackedNode*) base;
	_tmp0_ = gxml_xnode_get_owner_document ((GXmlxNode*) self);
	_tmp1_ = _tmp0_;
	_tmp2_ = deep;
	_tmp3_ = gxml_xdocument_copy_node (_tmp1_, (GXmlxNode*) self, _tmp2_);
	result = _tmp3_;
	return result;
}


static gchar* gxml_backed_node_real_stringify (GXmlxNode* base, gboolean format, gint level) {
	GXmlBackedNode * self;
	gchar* result = NULL;
	xmlBuffer* buffer = NULL;
	gchar* str = NULL;
	xmlBuffer* _tmp0_ = NULL;
	gint _tmp1_ = 0;
	gboolean _tmp2_ = FALSE;
	xmlBuffer* _tmp3_ = NULL;
	GXmlxDocument* _tmp4_ = NULL;
	GXmlxDocument* _tmp5_ = NULL;
	xmlDoc* _tmp6_ = NULL;
	xmlNode* _tmp7_ = NULL;
	gint _tmp8_ = 0;
	xmlBuffer* _tmp9_ = NULL;
	const gchar* _tmp10_ = NULL;
	gchar* _tmp11_ = NULL;
	self = (GXmlBackedNode*) base;
	_tmp0_ = xmlBufferCreate ();
	buffer = _tmp0_;
	_tmp2_ = format;
	if (_tmp2_) {
		_tmp1_ = 1;
	} else {
		_tmp1_ = 0;
	}
	_tmp3_ = buffer;
	_tmp4_ = gxml_xnode_get_owner_document ((GXmlxNode*) self);
	_tmp5_ = _tmp4_;
	_tmp6_ = _tmp5_->xmldoc;
	_tmp7_ = self->node;
	_tmp8_ = level;
	xmlNodeDump (_tmp3_, _tmp6_, _tmp7_, _tmp8_, _tmp1_);
	_tmp9_ = buffer;
	_tmp10_ = xmlBufferContent (_tmp9_);
	_tmp11_ = g_strdup (_tmp10_);
	_g_free0 (str);
	str = _tmp11_;
	result = str;
	return result;
}


static GeeList* gxml_backed_node_real_get_namespace_definitions (GXmlxNode* base) {
	GeeList* result;
	GXmlBackedNode* self;
	GXmlNamespaceAttrNodeList* _tmp0_ = NULL;
	GXmlNamespaceAttrNodeList* _tmp2_ = NULL;
	self = (GXmlBackedNode*) base;
	_tmp0_ = ((GXmlxNode*) self)->_namespace_definitions;
	if (_tmp0_ == NULL) {
		GXmlNamespaceAttrNodeList* _tmp1_ = NULL;
		_tmp1_ = gxml_namespace_attr_node_list_new (self);
		_g_object_unref0 (((GXmlxNode*) self)->_namespace_definitions);
		((GXmlxNode*) self)->_namespace_definitions = _tmp1_;
	}
	_tmp2_ = ((GXmlxNode*) self)->_namespace_definitions;
	result = (GeeList*) _tmp2_;
	return result;
}


static void gxml_backed_node_real_set_namespace_definitions (GXmlxNode* base, GeeList* value) {
	GXmlBackedNode* self;
	self = (GXmlBackedNode*) base;
	g_object_notify ((GObject *) self, "namespace-definitions");
}


static const gchar* gxml_backed_node_real_get_namespace_uri (GXmlxNode* base) {
	const gchar* result;
	GXmlBackedNode* self;
	xmlNode* _tmp0_ = NULL;
	xmlNs* _tmp1_ = NULL;
	self = (GXmlBackedNode*) base;
	_tmp0_ = self->node;
	_tmp1_ = _tmp0_->ns;
	if (_tmp1_ == NULL) {
		result = NULL;
		return result;
	} else {
		xmlNode* _tmp2_ = NULL;
		xmlNs* _tmp3_ = NULL;
		const gchar* _tmp4_ = NULL;
		_tmp2_ = self->node;
		_tmp3_ = _tmp2_->ns;
		_tmp4_ = _tmp3_->href;
		result = _tmp4_;
		return result;
	}
}


static void gxml_backed_node_real_set_namespace_uri (GXmlxNode* base, const gchar* value) {
	GXmlBackedNode* self;
	self = (GXmlBackedNode*) base;
	g_object_notify ((GObject *) self, "namespace-uri");
}


static const gchar* gxml_backed_node_real_get_namespace_prefix (GXmlxNode* base) {
	const gchar* result;
	GXmlBackedNode* self;
	xmlNode* _tmp0_ = NULL;
	xmlNs* _tmp1_ = NULL;
	self = (GXmlBackedNode*) base;
	_tmp0_ = self->node;
	_tmp1_ = _tmp0_->ns;
	if (_tmp1_ == NULL) {
		result = NULL;
		return result;
	} else {
		xmlNode* _tmp2_ = NULL;
		xmlNs* _tmp3_ = NULL;
		const gchar* _tmp4_ = NULL;
		_tmp2_ = self->node;
		_tmp3_ = _tmp2_->ns;
		_tmp4_ = _tmp3_->prefix;
		result = _tmp4_;
		return result;
	}
}


static void gxml_backed_node_real_set_namespace_prefix (GXmlxNode* base, const gchar* value) {
	GXmlBackedNode* self;
	self = (GXmlBackedNode*) base;
	g_object_notify ((GObject *) self, "namespace-prefix");
}


static const gchar* gxml_backed_node_real_get_local_name (GXmlxNode* base) {
	const gchar* result;
	GXmlBackedNode* self;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	self = (GXmlBackedNode*) base;
	_tmp0_ = gxml_xnode_get_node_name ((GXmlxNode*) self);
	_tmp1_ = _tmp0_;
	result = _tmp1_;
	return result;
}


static void gxml_backed_node_real_set_local_name (GXmlxNode* base, const gchar* value) {
	GXmlBackedNode* self;
	self = (GXmlBackedNode*) base;
	g_object_notify ((GObject *) self, "local-name");
}


static const gchar* gxml_backed_node_real_get_node_name (GXmlxNode* base) {
	const gchar* result;
	GXmlBackedNode* self;
	xmlNode* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	self = (GXmlBackedNode*) base;
	_tmp0_ = self->node;
	_tmp1_ = _tmp0_->name;
	result = _tmp1_;
	return result;
}


static void gxml_backed_node_real_set_node_name (GXmlxNode* base, const gchar* value) {
	GXmlBackedNode* self;
	self = (GXmlBackedNode*) base;
	g_object_notify ((GObject *) self, "node-name");
}


static const gchar* gxml_backed_node_real_get_node_value (GXmlxNode* base) {
	const gchar* result;
	GXmlBackedNode* self;
	xmlNode* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	self = (GXmlBackedNode*) base;
	_tmp0_ = self->node;
	_tmp1_ = _tmp0_->content;
	result = _tmp1_;
	return result;
}


static void gxml_backed_node_real_set_node_value (GXmlxNode* base, const gchar* value) {
	GXmlBackedNode* self;
	xmlNode* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	self = (GXmlBackedNode*) base;
	_tmp0_ = self->node;
	_tmp1_ = value;
	_tmp2_ = g_strdup (_tmp1_);
	_g_free0 (_tmp0_->content);
	_tmp0_->content = (xmlChar*) _tmp2_;
	g_object_notify ((GObject *) self, "node-value");
}


static GXmlNodeType gxml_backed_node_real_get_node_type (GXmlxNode* base) {
	GXmlNodeType result;
	GXmlBackedNode* self;
	xmlNode* _tmp0_ = NULL;
	xmlElementType _tmp1_ = 0;
	self = (GXmlBackedNode*) base;
	_tmp0_ = self->node;
	_tmp1_ = _tmp0_->type;
	result = (GXmlNodeType) _tmp1_;
	return result;
}


static void gxml_backed_node_real_set_node_type (GXmlxNode* base, GXmlNodeType value) {
	GXmlBackedNode* self;
	self = (GXmlBackedNode*) base;
	g_object_notify ((GObject *) self, "node-type");
}


static GXmlxNode* gxml_backed_node_real_get_parent_node (GXmlxNode* base) {
	GXmlxNode* result;
	GXmlBackedNode* self;
	GXmlxDocument* _tmp0_ = NULL;
	GXmlxDocument* _tmp1_ = NULL;
	xmlNode* _tmp2_ = NULL;
	xmlNode* _tmp3_ = NULL;
	GXmlxNode* _tmp4_ = NULL;
	self = (GXmlBackedNode*) base;
	_tmp0_ = gxml_xnode_get_owner_document ((GXmlxNode*) self);
	_tmp1_ = _tmp0_;
	_tmp2_ = self->node;
	_tmp3_ = _tmp2_->parent;
	_tmp4_ = gxml_xdocument_lookup_node (_tmp1_, _tmp3_);
	result = _tmp4_;
	return result;
}


static void gxml_backed_node_real_set_parent_node (GXmlxNode* base, GXmlxNode* value) {
	GXmlBackedNode* self;
	self = (GXmlBackedNode*) base;
	g_object_notify ((GObject *) self, "parent-node");
}


static GXmlxNodeList* gxml_backed_node_real_get_child_nodes (GXmlxNode* base) {
	GXmlxNodeList* result;
	GXmlBackedNode* self;
	GXmlxNodeList* _tmp0_ = NULL;
	self = (GXmlBackedNode*) base;
	_tmp0_ = ((GXmlxNode*) self)->_child_nodes;
	result = _tmp0_;
	return result;
}


static void gxml_backed_node_real_set_child_nodes (GXmlxNode* base, GXmlxNodeList* value) {
	GXmlBackedNode* self;
	self = (GXmlBackedNode*) base;
	g_object_notify ((GObject *) self, "child-nodes");
}


static GXmlxNode* gxml_backed_node_real_get_first_child (GXmlxNode* base) {
	GXmlxNode* result;
	GXmlBackedNode* self;
	GXmlxNodeList* _tmp0_ = NULL;
	GXmlxNodeList* _tmp1_ = NULL;
	GXmlxNode* _tmp2_ = NULL;
	GXmlxNode* _tmp3_ = NULL;
	self = (GXmlBackedNode*) base;
	_tmp0_ = gxml_xnode_get_child_nodes ((GXmlxNode*) self);
	_tmp1_ = _tmp0_;
	_tmp2_ = gxml_xnode_list_first (_tmp1_);
	_g_object_unref0 (self->priv->_first_child);
	self->priv->_first_child = _tmp2_;
	_tmp3_ = self->priv->_first_child;
	result = _tmp3_;
	return result;
}


static void gxml_backed_node_real_set_first_child (GXmlxNode* base, GXmlxNode* value) {
	GXmlBackedNode* self;
	self = (GXmlBackedNode*) base;
	g_object_notify ((GObject *) self, "first-child");
}


static GXmlxNode* gxml_backed_node_real_get_last_child (GXmlxNode* base) {
	GXmlxNode* result;
	GXmlBackedNode* self;
	GXmlxNodeList* _tmp0_ = NULL;
	GXmlxNodeList* _tmp1_ = NULL;
	GXmlxNode* _tmp2_ = NULL;
	GXmlxNode* _tmp3_ = NULL;
	self = (GXmlBackedNode*) base;
	_tmp0_ = gxml_xnode_get_child_nodes ((GXmlxNode*) self);
	_tmp1_ = _tmp0_;
	_tmp2_ = gxml_xnode_list_last (_tmp1_);
	_g_object_unref0 (self->priv->_last_child);
	self->priv->_last_child = _tmp2_;
	_tmp3_ = self->priv->_last_child;
	result = _tmp3_;
	return result;
}


static void gxml_backed_node_real_set_last_child (GXmlxNode* base, GXmlxNode* value) {
	GXmlBackedNode* self;
	self = (GXmlBackedNode*) base;
	g_object_notify ((GObject *) self, "last-child");
}


static GXmlxNode* gxml_backed_node_real_get_previous_sibling (GXmlxNode* base) {
	GXmlxNode* result;
	GXmlBackedNode* self;
	GXmlxDocument* _tmp0_ = NULL;
	GXmlxDocument* _tmp1_ = NULL;
	xmlNode* _tmp2_ = NULL;
	xmlNode* _tmp3_ = NULL;
	GXmlxNode* _tmp4_ = NULL;
	self = (GXmlBackedNode*) base;
	_tmp0_ = gxml_xnode_get_owner_document ((GXmlxNode*) self);
	_tmp1_ = _tmp0_;
	_tmp2_ = self->node;
	_tmp3_ = _tmp2_->prev;
	_tmp4_ = gxml_xdocument_lookup_node (_tmp1_, _tmp3_);
	result = _tmp4_;
	return result;
}


static void gxml_backed_node_real_set_previous_sibling (GXmlxNode* base, GXmlxNode* value) {
	GXmlBackedNode* self;
	self = (GXmlBackedNode*) base;
	g_object_notify ((GObject *) self, "previous-sibling");
}


static GXmlxNode* gxml_backed_node_real_get_next_sibling (GXmlxNode* base) {
	GXmlxNode* result;
	GXmlBackedNode* self;
	GXmlxDocument* _tmp0_ = NULL;
	GXmlxDocument* _tmp1_ = NULL;
	xmlNode* _tmp2_ = NULL;
	xmlNode* _tmp3_ = NULL;
	GXmlxNode* _tmp4_ = NULL;
	self = (GXmlBackedNode*) base;
	_tmp0_ = gxml_xnode_get_owner_document ((GXmlxNode*) self);
	_tmp1_ = _tmp0_;
	_tmp2_ = self->node;
	_tmp3_ = _tmp2_->next;
	_tmp4_ = gxml_xdocument_lookup_node (_tmp1_, _tmp3_);
	result = _tmp4_;
	return result;
}


static void gxml_backed_node_real_set_next_sibling (GXmlxNode* base, GXmlxNode* value) {
	GXmlBackedNode* self;
	self = (GXmlBackedNode*) base;
	g_object_notify ((GObject *) self, "next-sibling");
}


static void gxml_backed_node_class_init (GXmlBackedNodeClass * klass) {
	gxml_backed_node_parent_class = g_type_class_peek_parent (klass);
	g_type_class_add_private (klass, sizeof (GXmlBackedNodePrivate));
	((GXmlxNodeClass *) klass)->add_namespace_attr = gxml_backed_node_real_add_namespace_attr;
	((GXmlxNodeClass *) klass)->set_namespace = gxml_backed_node_real_set_namespace;
	((GXmlxNodeClass *) klass)->insert_before = gxml_backed_node_real_insert_before;
	((GXmlxNodeClass *) klass)->replace_child = gxml_backed_node_real_replace_child;
	((GXmlxNodeClass *) klass)->remove_child = gxml_backed_node_real_remove_child;
	((GXmlxNodeClass *) klass)->append_child = gxml_backed_node_real_append_child;
	((GXmlxNodeClass *) klass)->has_child_nodes = gxml_backed_node_real_has_child_nodes;
	((GXmlxNodeClass *) klass)->clone_node = gxml_backed_node_real_clone_node;
	((GXmlxNodeClass *) klass)->stringify = gxml_backed_node_real_stringify;
	GXML_XNODE_CLASS (klass)->get_namespace_definitions = gxml_backed_node_real_get_namespace_definitions;
	GXML_XNODE_CLASS (klass)->set_namespace_definitions = gxml_backed_node_real_set_namespace_definitions;
	GXML_XNODE_CLASS (klass)->get_namespace_uri = gxml_backed_node_real_get_namespace_uri;
	GXML_XNODE_CLASS (klass)->set_namespace_uri = gxml_backed_node_real_set_namespace_uri;
	GXML_XNODE_CLASS (klass)->get_namespace_prefix = gxml_backed_node_real_get_namespace_prefix;
	GXML_XNODE_CLASS (klass)->set_namespace_prefix = gxml_backed_node_real_set_namespace_prefix;
	GXML_XNODE_CLASS (klass)->get_local_name = gxml_backed_node_real_get_local_name;
	GXML_XNODE_CLASS (klass)->set_local_name = gxml_backed_node_real_set_local_name;
	GXML_XNODE_CLASS (klass)->get_node_name = gxml_backed_node_real_get_node_name;
	GXML_XNODE_CLASS (klass)->set_node_name = gxml_backed_node_real_set_node_name;
	GXML_XNODE_CLASS (klass)->get_node_value = gxml_backed_node_real_get_node_value;
	GXML_XNODE_CLASS (klass)->set_node_value = gxml_backed_node_real_set_node_value;
	GXML_XNODE_CLASS (klass)->get_node_type = gxml_backed_node_real_get_node_type;
	GXML_XNODE_CLASS (klass)->set_node_type = gxml_backed_node_real_set_node_type;
	GXML_XNODE_CLASS (klass)->get_parent_node = gxml_backed_node_real_get_parent_node;
	GXML_XNODE_CLASS (klass)->set_parent_node = gxml_backed_node_real_set_parent_node;
	GXML_XNODE_CLASS (klass)->get_child_nodes = gxml_backed_node_real_get_child_nodes;
	GXML_XNODE_CLASS (klass)->set_child_nodes = gxml_backed_node_real_set_child_nodes;
	GXML_XNODE_CLASS (klass)->get_first_child = gxml_backed_node_real_get_first_child;
	GXML_XNODE_CLASS (klass)->set_first_child = gxml_backed_node_real_set_first_child;
	GXML_XNODE_CLASS (klass)->get_last_child = gxml_backed_node_real_get_last_child;
	GXML_XNODE_CLASS (klass)->set_last_child = gxml_backed_node_real_set_last_child;
	GXML_XNODE_CLASS (klass)->get_previous_sibling = gxml_backed_node_real_get_previous_sibling;
	GXML_XNODE_CLASS (klass)->set_previous_sibling = gxml_backed_node_real_set_previous_sibling;
	GXML_XNODE_CLASS (klass)->get_next_sibling = gxml_backed_node_real_get_next_sibling;
	GXML_XNODE_CLASS (klass)->set_next_sibling = gxml_backed_node_real_set_next_sibling;
	G_OBJECT_CLASS (klass)->get_property = _vala_gxml_backed_node_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_gxml_backed_node_set_property;
	G_OBJECT_CLASS (klass)->finalize = gxml_backed_node_finalize;
	/**
	 * {@inheritDoc}
	 */
	g_object_class_install_property (G_OBJECT_CLASS (klass), GXML_BACKED_NODE_NAMESPACE_DEFINITIONS, g_param_spec_object ("namespace-definitions", "namespace-definitions", "namespace-definitions", GEE_TYPE_LIST, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
	/**
	 * {@inheritDoc}
	 */
	g_object_class_install_property (G_OBJECT_CLASS (klass), GXML_BACKED_NODE_NAMESPACE_URI, g_param_spec_string ("namespace-uri", "namespace-uri", "namespace-uri", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
	/**
	 * {@inheritDoc}
	 */
	g_object_class_install_property (G_OBJECT_CLASS (klass), GXML_BACKED_NODE_NAMESPACE_PREFIX, g_param_spec_string ("namespace-prefix", "namespace-prefix", "namespace-prefix", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
	/**
	 * {@inheritDoc}
	 */
	g_object_class_install_property (G_OBJECT_CLASS (klass), GXML_BACKED_NODE_LOCAL_NAME, g_param_spec_string ("local-name", "local-name", "local-name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
	/**
	 * {@inheritDoc}
	 */
	g_object_class_install_property (G_OBJECT_CLASS (klass), GXML_BACKED_NODE_NODE_NAME, g_param_spec_string ("node-name", "node-name", "node-name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
	/**
	 * {@inheritDoc}
	 */
	g_object_class_install_property (G_OBJECT_CLASS (klass), GXML_BACKED_NODE_NODE_VALUE, g_param_spec_string ("node-value", "node-value", "node-value", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
	/**
	 * {@inheritDoc}
	 */
	g_object_class_install_property (G_OBJECT_CLASS (klass), GXML_BACKED_NODE_NODE_TYPE, g_param_spec_enum ("node-type", "node-type", "node-type", GXML_TYPE_NODE_TYPE, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
	/**
	 * {@inheritDoc}
	 */
	g_object_class_install_property (G_OBJECT_CLASS (klass), GXML_BACKED_NODE_PARENT_NODE, g_param_spec_object ("parent-node", "parent-node", "parent-node", GXML_TYPE_XNODE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
	/**
	 * {@inheritDoc}
	 */
	g_object_class_install_property (G_OBJECT_CLASS (klass), GXML_BACKED_NODE_CHILD_NODES, g_param_spec_object ("child-nodes", "child-nodes", "child-nodes", GXML_TYPE_XNODE_LIST, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
	/**
	 * {@inheritDoc}
	 */
	g_object_class_install_property (G_OBJECT_CLASS (klass), GXML_BACKED_NODE_FIRST_CHILD, g_param_spec_object ("first-child", "first-child", "first-child", GXML_TYPE_XNODE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
	/**
	 * {@inheritDoc}
	 */
	g_object_class_install_property (G_OBJECT_CLASS (klass), GXML_BACKED_NODE_LAST_CHILD, g_param_spec_object ("last-child", "last-child", "last-child", GXML_TYPE_XNODE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
	/**
	 * {@inheritDoc}
	 */
	g_object_class_install_property (G_OBJECT_CLASS (klass), GXML_BACKED_NODE_PREVIOUS_SIBLING, g_param_spec_object ("previous-sibling", "previous-sibling", "previous-sibling", GXML_TYPE_XNODE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
	/**
	 * {@inheritDoc}
	 */
	g_object_class_install_property (G_OBJECT_CLASS (klass), GXML_BACKED_NODE_NEXT_SIBLING, g_param_spec_object ("next-sibling", "next-sibling", "next-sibling", GXML_TYPE_XNODE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
}


static void gxml_backed_node_instance_init (GXmlBackedNode * self) {
	self->priv = GXML_BACKED_NODE_GET_PRIVATE (self);
}


static void gxml_backed_node_finalize (GObject* obj) {
	GXmlBackedNode * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GXML_TYPE_BACKED_NODE, GXmlBackedNode);
	_g_object_unref0 (self->priv->_first_child);
	_g_object_unref0 (self->priv->_last_child);
	G_OBJECT_CLASS (gxml_backed_node_parent_class)->finalize (obj);
}


/**
 * An internal class for nodes whose content is stored in a
 * corresponding Xml.Node.
 * 
 * This would normally be hidden, but Vala wants base classes
 * to be at least as public as subclasses.
 */
GType gxml_backed_node_get_type (void) {
	static volatile gsize gxml_backed_node_type_id__volatile = 0;
	if (g_once_init_enter (&gxml_backed_node_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GXmlBackedNodeClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gxml_backed_node_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GXmlBackedNode), 0, (GInstanceInitFunc) gxml_backed_node_instance_init, NULL };
		GType gxml_backed_node_type_id;
		gxml_backed_node_type_id = g_type_register_static (GXML_TYPE_XNODE, "GXmlBackedNode", &g_define_type_info, 0);
		g_once_init_leave (&gxml_backed_node_type_id__volatile, gxml_backed_node_type_id);
	}
	return gxml_backed_node_type_id__volatile;
}


static void _vala_gxml_backed_node_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GXmlBackedNode * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GXML_TYPE_BACKED_NODE, GXmlBackedNode);
	switch (property_id) {
		case GXML_BACKED_NODE_NAMESPACE_DEFINITIONS:
		g_value_set_object (value, gxml_xnode_get_namespace_definitions ((GXmlxNode*) self));
		break;
		case GXML_BACKED_NODE_NAMESPACE_URI:
		g_value_set_string (value, gxml_xnode_get_namespace_uri ((GXmlxNode*) self));
		break;
		case GXML_BACKED_NODE_NAMESPACE_PREFIX:
		g_value_set_string (value, gxml_xnode_get_namespace_prefix ((GXmlxNode*) self));
		break;
		case GXML_BACKED_NODE_LOCAL_NAME:
		g_value_set_string (value, gxml_xnode_get_local_name ((GXmlxNode*) self));
		break;
		case GXML_BACKED_NODE_NODE_NAME:
		g_value_set_string (value, gxml_xnode_get_node_name ((GXmlxNode*) self));
		break;
		case GXML_BACKED_NODE_NODE_VALUE:
		g_value_set_string (value, gxml_xnode_get_node_value ((GXmlxNode*) self));
		break;
		case GXML_BACKED_NODE_NODE_TYPE:
		g_value_set_enum (value, gxml_xnode_get_node_type ((GXmlxNode*) self));
		break;
		case GXML_BACKED_NODE_PARENT_NODE:
		g_value_set_object (value, gxml_xnode_get_parent_node ((GXmlxNode*) self));
		break;
		case GXML_BACKED_NODE_CHILD_NODES:
		g_value_set_object (value, gxml_xnode_get_child_nodes ((GXmlxNode*) self));
		break;
		case GXML_BACKED_NODE_FIRST_CHILD:
		g_value_set_object (value, gxml_xnode_get_first_child ((GXmlxNode*) self));
		break;
		case GXML_BACKED_NODE_LAST_CHILD:
		g_value_set_object (value, gxml_xnode_get_last_child ((GXmlxNode*) self));
		break;
		case GXML_BACKED_NODE_PREVIOUS_SIBLING:
		g_value_set_object (value, gxml_xnode_get_previous_sibling ((GXmlxNode*) self));
		break;
		case GXML_BACKED_NODE_NEXT_SIBLING:
		g_value_set_object (value, gxml_xnode_get_next_sibling ((GXmlxNode*) self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}


static void _vala_gxml_backed_node_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GXmlBackedNode * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GXML_TYPE_BACKED_NODE, GXmlBackedNode);
	switch (property_id) {
		case GXML_BACKED_NODE_NAMESPACE_DEFINITIONS:
		gxml_xnode_set_namespace_definitions ((GXmlxNode*) self, g_value_get_object (value));
		break;
		case GXML_BACKED_NODE_NAMESPACE_URI:
		gxml_xnode_set_namespace_uri ((GXmlxNode*) self, g_value_get_string (value));
		break;
		case GXML_BACKED_NODE_NAMESPACE_PREFIX:
		gxml_xnode_set_namespace_prefix ((GXmlxNode*) self, g_value_get_string (value));
		break;
		case GXML_BACKED_NODE_LOCAL_NAME:
		gxml_xnode_set_local_name ((GXmlxNode*) self, g_value_get_string (value));
		break;
		case GXML_BACKED_NODE_NODE_NAME:
		gxml_xnode_set_node_name ((GXmlxNode*) self, g_value_get_string (value));
		break;
		case GXML_BACKED_NODE_NODE_VALUE:
		gxml_xnode_set_node_value ((GXmlxNode*) self, g_value_get_string (value));
		break;
		case GXML_BACKED_NODE_NODE_TYPE:
		gxml_xnode_set_node_type ((GXmlxNode*) self, g_value_get_enum (value));
		break;
		case GXML_BACKED_NODE_PARENT_NODE:
		gxml_xnode_set_parent_node ((GXmlxNode*) self, g_value_get_object (value));
		break;
		case GXML_BACKED_NODE_CHILD_NODES:
		gxml_xnode_set_child_nodes ((GXmlxNode*) self, g_value_get_object (value));
		break;
		case GXML_BACKED_NODE_FIRST_CHILD:
		gxml_xnode_set_first_child ((GXmlxNode*) self, g_value_get_object (value));
		break;
		case GXML_BACKED_NODE_LAST_CHILD:
		gxml_xnode_set_last_child ((GXmlxNode*) self, g_value_get_object (value));
		break;
		case GXML_BACKED_NODE_PREVIOUS_SIBLING:
		gxml_xnode_set_previous_sibling ((GXmlxNode*) self, g_value_get_object (value));
		break;
		case GXML_BACKED_NODE_NEXT_SIBLING:
		gxml_xnode_set_next_sibling ((GXmlxNode*) self, g_value_get_object (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}



