/* Parser.c generated by valac 0.34.13, the Vala compiler
 * generated from Parser.vala, do not modify */

/* -*- Mode: vala; indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 2 -*- */
/* Parser.vala
 *
 * Copyright (C) 2016-2017  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, see <http://www.gnu.org/licenses/>.
 *
 * Authors:
 *      Daniel Espinosa <esodan@gmail.com>
 */

#include <glib.h>
#include <glib-object.h>
#include <gio/gio.h>
#include <stdlib.h>
#include <string.h>
#include <gee.h>
#include <glib/gi18n-lib.h>


#define GXML_TYPE_PARSER (gxml_parser_get_type ())
#define GXML_PARSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_PARSER, GXmlParser))
#define GXML_IS_PARSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_PARSER))
#define GXML_PARSER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_PARSER, GXmlParserIface))

typedef struct _GXmlParser GXmlParser;
typedef struct _GXmlParserIface GXmlParserIface;

#define GXML_TYPE_DOM_EVENT_TARGET (gxml_dom_event_target_get_type ())
#define GXML_DOM_EVENT_TARGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_DOM_EVENT_TARGET, GXmlDomEventTarget))
#define GXML_IS_DOM_EVENT_TARGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_DOM_EVENT_TARGET))
#define GXML_DOM_EVENT_TARGET_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_DOM_EVENT_TARGET, GXmlDomEventTargetIface))

typedef struct _GXmlDomEventTarget GXmlDomEventTarget;
typedef struct _GXmlDomEventTargetIface GXmlDomEventTargetIface;

#define GXML_TYPE_DOM_EVENT_LISTENER (gxml_dom_event_listener_get_type ())
#define GXML_DOM_EVENT_LISTENER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_DOM_EVENT_LISTENER, GXmlDomEventListener))
#define GXML_IS_DOM_EVENT_LISTENER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_DOM_EVENT_LISTENER))
#define GXML_DOM_EVENT_LISTENER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_DOM_EVENT_LISTENER, GXmlDomEventListenerIface))

typedef struct _GXmlDomEventListener GXmlDomEventListener;
typedef struct _GXmlDomEventListenerIface GXmlDomEventListenerIface;

#define GXML_TYPE_DOM_EVENT (gxml_dom_event_get_type ())
#define GXML_DOM_EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_DOM_EVENT, GXmlDomEvent))
#define GXML_IS_DOM_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_DOM_EVENT))
#define GXML_DOM_EVENT_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_DOM_EVENT, GXmlDomEventIface))

typedef struct _GXmlDomEvent GXmlDomEvent;
typedef struct _GXmlDomEventIface GXmlDomEventIface;

#define GXML_TYPE_DOM_TIME_STAMP (gxml_dom_time_stamp_get_type ())
#define GXML_DOM_TIME_STAMP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_DOM_TIME_STAMP, GXmlDomTimeStamp))
#define GXML_DOM_TIME_STAMP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_DOM_TIME_STAMP, GXmlDomTimeStampClass))
#define GXML_IS_DOM_TIME_STAMP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_DOM_TIME_STAMP))
#define GXML_IS_DOM_TIME_STAMP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_DOM_TIME_STAMP))
#define GXML_DOM_TIME_STAMP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_DOM_TIME_STAMP, GXmlDomTimeStampClass))

typedef struct _GXmlDomTimeStamp GXmlDomTimeStamp;
typedef struct _GXmlDomTimeStampClass GXmlDomTimeStampClass;

#define GXML_DOM_EVENT_TYPE_PHASE (gxml_dom_event_phase_get_type ())

#define GXML_TYPE_DOM_NODE (gxml_dom_node_get_type ())
#define GXML_DOM_NODE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_DOM_NODE, GXmlDomNode))
#define GXML_IS_DOM_NODE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_DOM_NODE))
#define GXML_DOM_NODE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_DOM_NODE, GXmlDomNodeIface))

typedef struct _GXmlDomNode GXmlDomNode;
typedef struct _GXmlDomNodeIface GXmlDomNodeIface;

#define GXML_DOM_NODE_TYPE_DOCUMENT_POSITION (gxml_dom_node_document_position_get_type ())

#define GXML_DOM_NODE_TYPE_NODE_TYPE (gxml_dom_node_node_type_get_type ())

#define GXML_TYPE_DOM_PARENT_NODE (gxml_dom_parent_node_get_type ())
#define GXML_DOM_PARENT_NODE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_DOM_PARENT_NODE, GXmlDomParentNode))
#define GXML_IS_DOM_PARENT_NODE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_DOM_PARENT_NODE))
#define GXML_DOM_PARENT_NODE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_DOM_PARENT_NODE, GXmlDomParentNodeIface))

typedef struct _GXmlDomParentNode GXmlDomParentNode;
typedef struct _GXmlDomParentNodeIface GXmlDomParentNodeIface;

#define GXML_TYPE_DOM_CHILD_NODE (gxml_dom_child_node_get_type ())
#define GXML_DOM_CHILD_NODE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_DOM_CHILD_NODE, GXmlDomChildNode))
#define GXML_IS_DOM_CHILD_NODE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_DOM_CHILD_NODE))
#define GXML_DOM_CHILD_NODE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_DOM_CHILD_NODE, GXmlDomChildNodeIface))

typedef struct _GXmlDomChildNode GXmlDomChildNode;
typedef struct _GXmlDomChildNodeIface GXmlDomChildNodeIface;

#define GXML_TYPE_DOM_NON_DOCUMENT_TYPE_CHILD_NODE (gxml_dom_non_document_type_child_node_get_type ())
#define GXML_DOM_NON_DOCUMENT_TYPE_CHILD_NODE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_DOM_NON_DOCUMENT_TYPE_CHILD_NODE, GXmlDomNonDocumentTypeChildNode))
#define GXML_IS_DOM_NON_DOCUMENT_TYPE_CHILD_NODE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_DOM_NON_DOCUMENT_TYPE_CHILD_NODE))
#define GXML_DOM_NON_DOCUMENT_TYPE_CHILD_NODE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_DOM_NON_DOCUMENT_TYPE_CHILD_NODE, GXmlDomNonDocumentTypeChildNodeIface))

typedef struct _GXmlDomNonDocumentTypeChildNode GXmlDomNonDocumentTypeChildNode;
typedef struct _GXmlDomNonDocumentTypeChildNodeIface GXmlDomNonDocumentTypeChildNodeIface;

#define GXML_TYPE_DOM_ELEMENT (gxml_dom_element_get_type ())
#define GXML_DOM_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_DOM_ELEMENT, GXmlDomElement))
#define GXML_IS_DOM_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_DOM_ELEMENT))
#define GXML_DOM_ELEMENT_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_DOM_ELEMENT, GXmlDomElementIface))

typedef struct _GXmlDomElement GXmlDomElement;
typedef struct _GXmlDomElementIface GXmlDomElementIface;

#define GXML_TYPE_DOM_HTML_COLLECTION (gxml_dom_html_collection_get_type ())
#define GXML_DOM_HTML_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_DOM_HTML_COLLECTION, GXmlDomHTMLCollection))
#define GXML_IS_DOM_HTML_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_DOM_HTML_COLLECTION))
#define GXML_DOM_HTML_COLLECTION_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_DOM_HTML_COLLECTION, GXmlDomHTMLCollectionIface))

typedef struct _GXmlDomHTMLCollection GXmlDomHTMLCollection;
typedef struct _GXmlDomHTMLCollectionIface GXmlDomHTMLCollectionIface;

#define GXML_TYPE_DOM_TOKEN_LIST (gxml_dom_token_list_get_type ())
#define GXML_DOM_TOKEN_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_DOM_TOKEN_LIST, GXmlDomTokenList))
#define GXML_IS_DOM_TOKEN_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_DOM_TOKEN_LIST))
#define GXML_DOM_TOKEN_LIST_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_DOM_TOKEN_LIST, GXmlDomTokenListIface))

typedef struct _GXmlDomTokenList GXmlDomTokenList;
typedef struct _GXmlDomTokenListIface GXmlDomTokenListIface;

#define GXML_TYPE_DOM_NAMED_NODE_MAP (gxml_dom_named_node_map_get_type ())
#define GXML_DOM_NAMED_NODE_MAP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_DOM_NAMED_NODE_MAP, GXmlDomNamedNodeMap))
#define GXML_IS_DOM_NAMED_NODE_MAP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_DOM_NAMED_NODE_MAP))
#define GXML_DOM_NAMED_NODE_MAP_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_DOM_NAMED_NODE_MAP, GXmlDomNamedNodeMapIface))

typedef struct _GXmlDomNamedNodeMap GXmlDomNamedNodeMap;
typedef struct _GXmlDomNamedNodeMapIface GXmlDomNamedNodeMapIface;

#define GXML_TYPE_DOM_NODE_LIST (gxml_dom_node_list_get_type ())
#define GXML_DOM_NODE_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_DOM_NODE_LIST, GXmlDomNodeList))
#define GXML_IS_DOM_NODE_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_DOM_NODE_LIST))
#define GXML_DOM_NODE_LIST_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_DOM_NODE_LIST, GXmlDomNodeListIface))

typedef struct _GXmlDomNodeList GXmlDomNodeList;
typedef struct _GXmlDomNodeListIface GXmlDomNodeListIface;

#define GXML_TYPE_DOM_ELEMENT_LIST (gxml_dom_element_list_get_type ())
#define GXML_DOM_ELEMENT_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_DOM_ELEMENT_LIST, GXmlDomElementList))
#define GXML_DOM_ELEMENT_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_DOM_ELEMENT_LIST, GXmlDomElementListClass))
#define GXML_IS_DOM_ELEMENT_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_DOM_ELEMENT_LIST))
#define GXML_IS_DOM_ELEMENT_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_DOM_ELEMENT_LIST))
#define GXML_DOM_ELEMENT_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_DOM_ELEMENT_LIST, GXmlDomElementListClass))

typedef struct _GXmlDomElementList GXmlDomElementList;
typedef struct _GXmlDomElementListClass GXmlDomElementListClass;

#define GXML_TYPE_DOM_NON_ELEMENT_PARENT_NODE (gxml_dom_non_element_parent_node_get_type ())
#define GXML_DOM_NON_ELEMENT_PARENT_NODE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_DOM_NON_ELEMENT_PARENT_NODE, GXmlDomNonElementParentNode))
#define GXML_IS_DOM_NON_ELEMENT_PARENT_NODE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_DOM_NON_ELEMENT_PARENT_NODE))
#define GXML_DOM_NON_ELEMENT_PARENT_NODE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_DOM_NON_ELEMENT_PARENT_NODE, GXmlDomNonElementParentNodeIface))

typedef struct _GXmlDomNonElementParentNode GXmlDomNonElementParentNode;
typedef struct _GXmlDomNonElementParentNodeIface GXmlDomNonElementParentNodeIface;

#define GXML_TYPE_DOM_DOCUMENT (gxml_dom_document_get_type ())
#define GXML_DOM_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_DOM_DOCUMENT, GXmlDomDocument))
#define GXML_IS_DOM_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_DOM_DOCUMENT))
#define GXML_DOM_DOCUMENT_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_DOM_DOCUMENT, GXmlDomDocumentIface))

typedef struct _GXmlDomDocument GXmlDomDocument;
typedef struct _GXmlDomDocumentIface GXmlDomDocumentIface;

#define GXML_TYPE_DOM_DOCUMENT_FRAGMENT (gxml_dom_document_fragment_get_type ())
#define GXML_DOM_DOCUMENT_FRAGMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_DOM_DOCUMENT_FRAGMENT, GXmlDomDocumentFragment))
#define GXML_IS_DOM_DOCUMENT_FRAGMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_DOM_DOCUMENT_FRAGMENT))
#define GXML_DOM_DOCUMENT_FRAGMENT_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_DOM_DOCUMENT_FRAGMENT, GXmlDomDocumentFragmentIface))

typedef struct _GXmlDomDocumentFragment GXmlDomDocumentFragment;
typedef struct _GXmlDomDocumentFragmentIface GXmlDomDocumentFragmentIface;

#define GXML_TYPE_DOM_CHARACTER_DATA (gxml_dom_character_data_get_type ())
#define GXML_DOM_CHARACTER_DATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_DOM_CHARACTER_DATA, GXmlDomCharacterData))
#define GXML_IS_DOM_CHARACTER_DATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_DOM_CHARACTER_DATA))
#define GXML_DOM_CHARACTER_DATA_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_DOM_CHARACTER_DATA, GXmlDomCharacterDataIface))

typedef struct _GXmlDomCharacterData GXmlDomCharacterData;
typedef struct _GXmlDomCharacterDataIface GXmlDomCharacterDataIface;

#define GXML_TYPE_DOM_TEXT (gxml_dom_text_get_type ())
#define GXML_DOM_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_DOM_TEXT, GXmlDomText))
#define GXML_IS_DOM_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_DOM_TEXT))
#define GXML_DOM_TEXT_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_DOM_TEXT, GXmlDomTextIface))

typedef struct _GXmlDomText GXmlDomText;
typedef struct _GXmlDomTextIface GXmlDomTextIface;

#define GXML_TYPE_DOM_COMMENT (gxml_dom_comment_get_type ())
#define GXML_DOM_COMMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_DOM_COMMENT, GXmlDomComment))
#define GXML_IS_DOM_COMMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_DOM_COMMENT))
#define GXML_DOM_COMMENT_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_DOM_COMMENT, GXmlDomCommentIface))

typedef struct _GXmlDomComment GXmlDomComment;
typedef struct _GXmlDomCommentIface GXmlDomCommentIface;

#define GXML_TYPE_DOM_PROCESSING_INSTRUCTION (gxml_dom_processing_instruction_get_type ())
#define GXML_DOM_PROCESSING_INSTRUCTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_DOM_PROCESSING_INSTRUCTION, GXmlDomProcessingInstruction))
#define GXML_IS_DOM_PROCESSING_INSTRUCTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_DOM_PROCESSING_INSTRUCTION))
#define GXML_DOM_PROCESSING_INSTRUCTION_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_DOM_PROCESSING_INSTRUCTION, GXmlDomProcessingInstructionIface))

typedef struct _GXmlDomProcessingInstruction GXmlDomProcessingInstruction;
typedef struct _GXmlDomProcessingInstructionIface GXmlDomProcessingInstructionIface;

#define GXML_TYPE_DOM_RANGE (gxml_dom_range_get_type ())
#define GXML_DOM_RANGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_DOM_RANGE, GXmlDomRange))
#define GXML_IS_DOM_RANGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_DOM_RANGE))
#define GXML_DOM_RANGE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_DOM_RANGE, GXmlDomRangeIface))

typedef struct _GXmlDomRange GXmlDomRange;
typedef struct _GXmlDomRangeIface GXmlDomRangeIface;

#define GXML_DOM_RANGE_TYPE_BOUNDARY_POINTS (gxml_dom_range_boundary_points_get_type ())

#define GXML_TYPE_DOM_NODE_FILTER (gxml_dom_node_filter_get_type ())
#define GXML_DOM_NODE_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_DOM_NODE_FILTER, GXmlDomNodeFilter))
#define GXML_DOM_NODE_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_DOM_NODE_FILTER, GXmlDomNodeFilterClass))
#define GXML_IS_DOM_NODE_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_DOM_NODE_FILTER))
#define GXML_IS_DOM_NODE_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_DOM_NODE_FILTER))
#define GXML_DOM_NODE_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_DOM_NODE_FILTER, GXmlDomNodeFilterClass))

typedef struct _GXmlDomNodeFilter GXmlDomNodeFilter;
typedef struct _GXmlDomNodeFilterClass GXmlDomNodeFilterClass;

#define GXML_TYPE_DOM_NODE_ITERATOR (gxml_dom_node_iterator_get_type ())
#define GXML_DOM_NODE_ITERATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_DOM_NODE_ITERATOR, GXmlDomNodeIterator))
#define GXML_IS_DOM_NODE_ITERATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_DOM_NODE_ITERATOR))
#define GXML_DOM_NODE_ITERATOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_DOM_NODE_ITERATOR, GXmlDomNodeIteratorIface))

typedef struct _GXmlDomNodeIterator GXmlDomNodeIterator;
typedef struct _GXmlDomNodeIteratorIface GXmlDomNodeIteratorIface;

#define GXML_TYPE_DOM_TREE_WALKER (gxml_dom_tree_walker_get_type ())
#define GXML_DOM_TREE_WALKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_DOM_TREE_WALKER, GXmlDomTreeWalker))
#define GXML_IS_DOM_TREE_WALKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_DOM_TREE_WALKER))
#define GXML_DOM_TREE_WALKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_DOM_TREE_WALKER, GXmlDomTreeWalkerIface))

typedef struct _GXmlDomTreeWalker GXmlDomTreeWalker;
typedef struct _GXmlDomTreeWalkerIface GXmlDomTreeWalkerIface;

#define GXML_TYPE_DOM_IMPLEMENTATION (gxml_dom_implementation_get_type ())
#define GXML_DOM_IMPLEMENTATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_DOM_IMPLEMENTATION, GXmlDomImplementation))
#define GXML_IS_DOM_IMPLEMENTATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_DOM_IMPLEMENTATION))
#define GXML_DOM_IMPLEMENTATION_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_DOM_IMPLEMENTATION, GXmlDomImplementationIface))

typedef struct _GXmlDomImplementation GXmlDomImplementation;
typedef struct _GXmlDomImplementationIface GXmlDomImplementationIface;

#define GXML_TYPE_DOM_DOCUMENT_TYPE (gxml_dom_document_type_get_type ())
#define GXML_DOM_DOCUMENT_TYPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_DOM_DOCUMENT_TYPE, GXmlDomDocumentType))
#define GXML_IS_DOM_DOCUMENT_TYPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_DOM_DOCUMENT_TYPE))
#define GXML_DOM_DOCUMENT_TYPE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_DOM_DOCUMENT_TYPE, GXmlDomDocumentTypeIface))

typedef struct _GXmlDomDocumentType GXmlDomDocumentType;
typedef struct _GXmlDomDocumentTypeIface GXmlDomDocumentTypeIface;

#define GXML_TYPE_DOM_XML_DOCUMENT (gxml_dom_xml_document_get_type ())
#define GXML_DOM_XML_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_DOM_XML_DOCUMENT, GXmlDomXMLDocument))
#define GXML_IS_DOM_XML_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_DOM_XML_DOCUMENT))
#define GXML_DOM_XML_DOCUMENT_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_DOM_XML_DOCUMENT, GXmlDomXMLDocumentIface))

typedef struct _GXmlDomXMLDocument GXmlDomXMLDocument;
typedef struct _GXmlDomXMLDocumentIface GXmlDomXMLDocumentIface;

#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 _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _GxmlParserWriteFileAsyncData GxmlParserWriteFileAsyncData;
typedef struct _GxmlParserReadFileAsyncData GxmlParserReadFileAsyncData;
typedef struct _GxmlParserReadChildNodesAsyncData GxmlParserReadChildNodesAsyncData;

#define GXML_TYPE_GOM_OBJECT (gxml_gom_object_get_type ())
#define GXML_GOM_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_GOM_OBJECT, GXmlGomObject))
#define GXML_IS_GOM_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_GOM_OBJECT))
#define GXML_GOM_OBJECT_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_GOM_OBJECT, GXmlGomObjectIface))

typedef struct _GXmlGomObject GXmlGomObject;
typedef struct _GXmlGomObjectIface GXmlGomObjectIface;

#define GXML_TYPE_GOM_COLLECTION (gxml_gom_collection_get_type ())
#define GXML_GOM_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_GOM_COLLECTION, GXmlGomCollection))
#define GXML_IS_GOM_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_GOM_COLLECTION))
#define GXML_GOM_COLLECTION_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_GOM_COLLECTION, GXmlGomCollectionIface))

typedef struct _GXmlGomCollection GXmlGomCollection;
typedef struct _GXmlGomCollectionIface GXmlGomCollectionIface;

#define GXML_TYPE_GOM_NODE (gxml_gom_node_get_type ())
#define GXML_GOM_NODE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_GOM_NODE, GXmlGomNode))
#define GXML_GOM_NODE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_GOM_NODE, GXmlGomNodeClass))
#define GXML_IS_GOM_NODE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_GOM_NODE))
#define GXML_IS_GOM_NODE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_GOM_NODE))
#define GXML_GOM_NODE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_GOM_NODE, GXmlGomNodeClass))

typedef struct _GXmlGomNode GXmlGomNode;
typedef struct _GXmlGomNodeClass GXmlGomNodeClass;

#define GXML_TYPE_GOM_ELEMENT (gxml_gom_element_get_type ())
#define GXML_GOM_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_GOM_ELEMENT, GXmlGomElement))
#define GXML_GOM_ELEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_GOM_ELEMENT, GXmlGomElementClass))
#define GXML_IS_GOM_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_GOM_ELEMENT))
#define GXML_IS_GOM_ELEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_GOM_ELEMENT))
#define GXML_GOM_ELEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_GOM_ELEMENT, GXmlGomElementClass))

typedef struct _GXmlGomElement GXmlGomElement;
typedef struct _GXmlGomElementClass GXmlGomElementClass;
#define _g_param_spec_unref0(var) ((var == NULL) ? NULL : (var = (g_param_spec_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define __g_list_free__g_param_spec_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_param_spec_unref0_ (var), NULL)))

/**
 * Parser Error codes for {@link DomNode} parsing objects
 */
typedef enum  {
	GXML_PARSER_ERROR_INVALID_DATA_ERROR,
	GXML_PARSER_ERROR_INVALID_FILE_ERROR,
	GXML_PARSER_ERROR_INVALID_STREAM_ERROR
} GXmlParserError;
#define GXML_PARSER_ERROR gxml_parser_error_quark ()
typedef enum  {
	GXML_DOM_EVENT_PHASE_NONE = 0,
	GXML_DOM_EVENT_PHASE_CAPTURING_PHASE,
	GXML_DOM_EVENT_PHASE_AT_TARGET,
	GXML_DOM_EVENT_PHASE_BUBBLING_PHASE
} GXmlDomEventPhase;

struct _GXmlDomEventIface {
	GTypeInterface parent_iface;
	void (*stop_propagation) (GXmlDomEvent* self);
	void (*stop_immediate_propagation) (GXmlDomEvent* self);
	void (*prevent_default) (GXmlDomEvent* self);
	void (*init_event) (GXmlDomEvent* self, const gchar* type, gboolean bubbles, gboolean cancelable);
	const gchar* (*get_etype) (GXmlDomEvent* self);
	GXmlDomEventTarget* (*get_event_target) (GXmlDomEvent* self);
	GXmlDomEventTarget* (*get_current_target) (GXmlDomEvent* self);
	gboolean (*get_bubbles) (GXmlDomEvent* self);
	gboolean (*get_cancelable) (GXmlDomEvent* self);
	gboolean (*get_is_trusted) (GXmlDomEvent* self);
	GXmlDomTimeStamp* (*get_time_stamp) (GXmlDomEvent* self);
	gboolean (*get_default_prevented) (GXmlDomEvent* self);
	GXmlDomEventPhase (*get_event_phase) (GXmlDomEvent* self);
};

struct _GXmlDomEventListenerIface {
	GTypeInterface parent_iface;
	void (*handle_event) (GXmlDomEventListener* self, GXmlDomEvent* event);
};

struct _GXmlDomEventTargetIface {
	GTypeInterface parent_iface;
	void (*add_event_listener) (GXmlDomEventTarget* self, const gchar* type, GXmlDomEventListener* callback, gboolean capture);
	void (*remove_event_listener) (GXmlDomEventTarget* self, const gchar* type, GXmlDomEventListener* callback, gboolean capture);
	gboolean (*dispatch_event) (GXmlDomEventTarget* self, GXmlDomEvent* event, GError** error);
};

typedef enum  {
	GXML_DOM_NODE_DOCUMENT_POSITION_NONE = 1 << 0,
	GXML_DOM_NODE_DOCUMENT_POSITION_DISCONNECTED = 1 << 1,
	GXML_DOM_NODE_DOCUMENT_POSITION_PRECEDING = 1 << 2,
	GXML_DOM_NODE_DOCUMENT_POSITION_FOLLOWING = 1 << 3,
	GXML_DOM_NODE_DOCUMENT_POSITION_CONTAINS = 1 << 4,
	GXML_DOM_NODE_DOCUMENT_POSITION_CONTAINED_BY = 1 << 5,
	GXML_DOM_NODE_DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 1 << 6
} GXmlDomNodeDocumentPosition;

typedef enum  {
	GXML_DOM_NODE_NODE_TYPE_INVALID = 0,
	GXML_DOM_NODE_NODE_TYPE_ELEMENT_NODE = 1,
	GXML_DOM_NODE_NODE_TYPE_ATTRIBUTE_NODE,
	GXML_DOM_NODE_NODE_TYPE_TEXT_NODE,
	GXML_DOM_NODE_NODE_TYPE_CDATA_SECTION_NODE,
	GXML_DOM_NODE_NODE_TYPE_ENTITY_REFERENCE_NODE,
	GXML_DOM_NODE_NODE_TYPE_ENTITY_NODE,
	GXML_DOM_NODE_NODE_TYPE_PROCESSING_INSTRUCTION_NODE,
	GXML_DOM_NODE_NODE_TYPE_COMMENT_NODE,
	GXML_DOM_NODE_NODE_TYPE_DOCUMENT_NODE,
	GXML_DOM_NODE_NODE_TYPE_DOCUMENT_TYPE_NODE,
	GXML_DOM_NODE_NODE_TYPE_DOCUMENT_FRAGMENT_NODE,
	GXML_DOM_NODE_NODE_TYPE_NOTATION_NODE
} GXmlDomNodeNodeType;

struct _GXmlDomChildNodeIface {
	GTypeInterface parent_iface;
	void (*remove) (GXmlDomChildNode* self);
};

struct _GXmlDomNonDocumentTypeChildNodeIface {
	GTypeInterface parent_iface;
	GXmlDomElement* (*get_previous_element_sibling) (GXmlDomNonDocumentTypeChildNode* self);
	GXmlDomElement* (*get_next_element_sibling) (GXmlDomNonDocumentTypeChildNode* self);
};

struct _GXmlDomHTMLCollectionIface {
	GTypeInterface parent_iface;
	GXmlDomElement* (*get_element) (GXmlDomHTMLCollection* self, gint index);
	GXmlDomElement** (*to_array) (GXmlDomHTMLCollection* self, int* result_length1);
	GXmlDomElement* (*item) (GXmlDomHTMLCollection* self, gint index);
	GXmlDomElement* (*named_item) (GXmlDomHTMLCollection* self, const gchar* name);
	gint (*get_length) (GXmlDomHTMLCollection* self);
};

struct _GXmlDomTokenListIface {
	GTypeInterface parent_iface;
	gchar* (*item) (GXmlDomTokenList* self, gint index);
	gboolean (*contains) (GXmlDomTokenList* self, const gchar* token, GError** error);
	void (*add) (GXmlDomTokenList* self, gchar** tokens, int tokens_length1, GError** error);
	void (*remove) (GXmlDomTokenList* self, gchar** tokens, int tokens_length1);
	gboolean (*toggle) (GXmlDomTokenList* self, const gchar* token, gboolean force, gboolean _auto_, GError** error);
	gchar* (*to_string) (GXmlDomTokenList* self);
	gint (*get_length) (GXmlDomTokenList* self);
};

struct _GXmlDomNamedNodeMapIface {
	GTypeInterface parent_iface;
	GXmlDomNode* (*item) (GXmlDomNamedNodeMap* self, gint index);
	GXmlDomNode* (*get_named_item) (GXmlDomNamedNodeMap* self, const gchar* name);
	GXmlDomNode* (*set_named_item) (GXmlDomNamedNodeMap* self, GXmlDomNode* node, GError** error);
	GXmlDomNode* (*remove_named_item) (GXmlDomNamedNodeMap* self, const gchar* name, GError** error);
	GXmlDomNode* (*remove_named_item_ns) (GXmlDomNamedNodeMap* self, const gchar* namespace_uri, const gchar* localName, GError** error);
	GXmlDomNode* (*get_named_item_ns) (GXmlDomNamedNodeMap* self, const gchar* namespace_uri, const gchar* local_name, GError** error);
	GXmlDomNode* (*set_named_item_ns) (GXmlDomNamedNodeMap* self, GXmlDomNode* node, GError** error);
	gint (*get_length) (GXmlDomNamedNodeMap* self);
};

struct _GXmlDomElementIface {
	GTypeInterface parent_iface;
	gchar* (*get_attribute) (GXmlDomElement* self, const gchar* name);
	gchar* (*get_attribute_ns) (GXmlDomElement* self, const gchar* namespace, const gchar* local_name);
	void (*set_attribute) (GXmlDomElement* self, const gchar* name, const gchar* value, GError** error);
	void (*set_attribute_ns) (GXmlDomElement* self, const gchar* namespace, const gchar* name, const gchar* value, GError** error);
	void (*remove_attribute) (GXmlDomElement* self, const gchar* name);
	void (*remove_attribute_ns) (GXmlDomElement* self, const gchar* namespace, const gchar* local_name);
	gboolean (*has_attribute) (GXmlDomElement* self, const gchar* name);
	gboolean (*has_attribute_ns) (GXmlDomElement* self, const gchar* namespace, const gchar* local_name);
	GXmlDomHTMLCollection* (*get_elements_by_tag_name) (GXmlDomElement* self, const gchar* local_name);
	GXmlDomHTMLCollection* (*get_elements_by_tag_name_ns) (GXmlDomElement* self, const gchar* namespace, const gchar* local_name);
	GXmlDomHTMLCollection* (*get_elements_by_class_name) (GXmlDomElement* self, const gchar* class_names);
	gchar* (*get_namespace_uri) (GXmlDomElement* self);
	gchar* (*get_prefix) (GXmlDomElement* self);
	gchar* (*get_local_name) (GXmlDomElement* self);
	gchar* (*get_tag_name) (GXmlDomElement* self);
	gchar* (*get_id) (GXmlDomElement* self);
	void (*set_id) (GXmlDomElement* self, const gchar* value);
	gchar* (*get_class_name) (GXmlDomElement* self);
	void (*set_class_name) (GXmlDomElement* self, const gchar* value);
	GXmlDomTokenList* (*get_class_list) (GXmlDomElement* self);
	GXmlDomNamedNodeMap* (*get_attributes) (GXmlDomElement* self);
};

struct _GXmlDomNodeListIface {
	GTypeInterface parent_iface;
	GXmlDomNode* (*item) (GXmlDomNodeList* self, gint index);
	gint (*get_length) (GXmlDomNodeList* self);
};

struct _GXmlDomParentNodeIface {
	GTypeInterface parent_iface;
	GXmlDomElement* (*query_selector) (GXmlDomParentNode* self, const gchar* selectors, GError** error);
	GXmlDomNodeList* (*query_selector_all) (GXmlDomParentNode* self, const gchar* selectors, GError** error);
	GXmlDomElementList* (*get_elements_by_property_value) (GXmlDomParentNode* self, const gchar* property, const gchar* value);
	GXmlDomHTMLCollection* (*get_children) (GXmlDomParentNode* self);
	GXmlDomElement* (*get_first_element_child) (GXmlDomParentNode* self);
	GXmlDomElement* (*get_last_element_child) (GXmlDomParentNode* self);
	gint (*get_child_element_count) (GXmlDomParentNode* self);
};

struct _GXmlDomNonElementParentNodeIface {
	GTypeInterface parent_iface;
	GXmlDomElement* (*get_element_by_id) (GXmlDomNonElementParentNode* self, const gchar* element_id, GError** error);
};

struct _GXmlDomDocumentFragmentIface {
	GTypeInterface parent_iface;
};

struct _GXmlDomCharacterDataIface {
	GTypeInterface parent_iface;
	gchar* (*substring_data) (GXmlDomCharacterData* self, gint offset, gint count, GError** error);
	void (*append_data) (GXmlDomCharacterData* self, const gchar* data);
	void (*insert_data) (GXmlDomCharacterData* self, gint offset, const gchar* data, GError** error);
	void (*delete_data) (GXmlDomCharacterData* self, gint offset, gint count, GError** error);
	void (*replace_data) (GXmlDomCharacterData* self, gint offset, gint count, const gchar* data, GError** error);
	gchar* (*get_data) (GXmlDomCharacterData* self);
	void (*set_data) (GXmlDomCharacterData* self, const gchar* value);
	gint (*get_length) (GXmlDomCharacterData* self);
};

struct _GXmlDomTextIface {
	GTypeInterface parent_iface;
	GXmlDomText* (*split_text) (GXmlDomText* self, gint offset, GError** error);
	gchar* (*get_whole_text) (GXmlDomText* self);
};

struct _GXmlDomCommentIface {
	GTypeInterface parent_iface;
};

struct _GXmlDomProcessingInstructionIface {
	GTypeInterface parent_iface;
	gchar* (*get_target) (GXmlDomProcessingInstruction* self);
};

typedef enum  {
	GXML_DOM_RANGE_BOUNDARY_POINTS_START_TO_START = 0,
	GXML_DOM_RANGE_BOUNDARY_POINTS_START_TO_END,
	GXML_DOM_RANGE_BOUNDARY_POINTS_END_TO_END,
	GXML_DOM_RANGE_BOUNDARY_POINTS_END_TO_START
} GXmlDomRangeBoundaryPoints;

struct _GXmlDomRangeIface {
	GTypeInterface parent_iface;
	void (*set_start) (GXmlDomRange* self, GXmlDomNode* node, gint offset, GError** error);
	void (*set_end) (GXmlDomRange* self, GXmlDomNode* node, gint offset, GError** error);
	void (*set_start_before) (GXmlDomRange* self, GXmlDomNode* node, GError** error);
	void (*set_start_after) (GXmlDomRange* self, GXmlDomNode* node, GError** error);
	void (*set_end_before) (GXmlDomRange* self, GXmlDomNode* node, GError** error);
	void (*set_end_after) (GXmlDomRange* self, GXmlDomNode* node, GError** error);
	void (*collapse) (GXmlDomRange* self, gboolean to_start, GError** error);
	void (*select_node) (GXmlDomRange* self, GXmlDomNode* node, GError** error);
	void (*select_node_contents) (GXmlDomRange* self, GXmlDomNode* node, GError** error);
	gint (*compare_boundary_points) (GXmlDomRange* self, GXmlDomRangeBoundaryPoints how, GXmlDomRange* sourceRange, GError** error);
	void (*delete_contents) (GXmlDomRange* self, GError** error);
	GXmlDomDocumentFragment* (*extract_contents) (GXmlDomRange* self, GError** error);
	GXmlDomDocumentFragment* (*clone_contents) (GXmlDomRange* self, GError** error);
	void (*insert_node) (GXmlDomRange* self, GXmlDomNode* node);
	void (*surround_contents) (GXmlDomRange* self, GXmlDomNode* newParent);
	GXmlDomRange* (*clone_range) (GXmlDomRange* self);
	void (*detach) (GXmlDomRange* self);
	gboolean (*is_point_in_range) (GXmlDomRange* self, GXmlDomNode* node, gint offset);
	gshort (*compare_point) (GXmlDomRange* self, GXmlDomNode* node, gint offset);
	gboolean (*intersects_node) (GXmlDomRange* self, GXmlDomNode* node);
	gchar* (*to_string) (GXmlDomRange* self);
	GXmlDomNode* (*get_start_container) (GXmlDomRange* self);
	gint (*get_start_offset) (GXmlDomRange* self);
	GXmlDomNode* (*get_end_container) (GXmlDomRange* self);
	gint (*get_end_offset) (GXmlDomRange* self);
	gboolean (*get_collapsed) (GXmlDomRange* self);
	GXmlDomNode* (*get_common_ancestor_container) (GXmlDomRange* self);
};

struct _GXmlDomNodeIteratorIface {
	GTypeInterface parent_iface;
	GXmlDomNode* (*next_node) (GXmlDomNodeIterator* self);
	GXmlDomNode* (*previous_node) (GXmlDomNodeIterator* self);
	void (*detach) (GXmlDomNodeIterator* self);
	GXmlDomNode* (*get_root) (GXmlDomNodeIterator* self);
	GXmlDomNode* (*get_reference_node) (GXmlDomNodeIterator* self);
	gboolean (*get_pointer_before_reference_node) (GXmlDomNodeIterator* self);
	gint (*get_what_to_show) (GXmlDomNodeIterator* self);
	GXmlDomNodeFilter* (*get_filter) (GXmlDomNodeIterator* self);
};

struct _GXmlDomTreeWalkerIface {
	GTypeInterface parent_iface;
	GXmlDomNode* (*parentNode) (GXmlDomTreeWalker* self);
	GXmlDomNode* (*firstChild) (GXmlDomTreeWalker* self);
	GXmlDomNode* (*lastChild) (GXmlDomTreeWalker* self);
	GXmlDomNode* (*previousSibling) (GXmlDomTreeWalker* self);
	GXmlDomNode* (*nextSibling) (GXmlDomTreeWalker* self);
	GXmlDomNode* (*previousNode) (GXmlDomTreeWalker* self);
	GXmlDomNode* (*nextNode) (GXmlDomTreeWalker* self);
	GXmlDomNode* (*get_root) (GXmlDomTreeWalker* self);
	gint (*get_what_to_show) (GXmlDomTreeWalker* self);
	GXmlDomNodeFilter* (*get_filter) (GXmlDomTreeWalker* self);
	GXmlDomNode* (*get_current_node) (GXmlDomTreeWalker* self);
};

struct _GXmlDomDocumentTypeIface {
	GTypeInterface parent_iface;
	const gchar* (*get_name) (GXmlDomDocumentType* self);
	const gchar* (*get_public_id) (GXmlDomDocumentType* self);
	const gchar* (*get_system_id) (GXmlDomDocumentType* self);
};

struct _GXmlDomXMLDocumentIface {
	GTypeInterface parent_iface;
};

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

typedef enum  {
	GXML_NODE_TYPE_INVALID = 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 _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);
	GXmlElementList* (*get_elements_by_name) (GXmlNode* self, const gchar* name);
	GXmlElementList* (*get_elements_by_name_ns) (GXmlNode* self, const gchar* name, const gchar* ns);
	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_children_nodes) (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 _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 _GXmlDomImplementationIface {
	GTypeInterface parent_iface;
	GXmlDomDocumentType* (*create_document_type) (GXmlDomImplementation* self, const gchar* qualified_name, const gchar* public_id, const gchar* system_id, GError** error);
	GXmlDomXMLDocument* (*create_document) (GXmlDomImplementation* self, const gchar* nspace, const gchar* qualified_name, GXmlDomDocumentType* doctype, GError** error);
	GXmlDocument* (*create_html_document) (GXmlDomImplementation* self, const gchar* title);
	gboolean (*has_feature) (GXmlDomImplementation* self);
};

struct _GXmlDomDocumentIface {
	GTypeInterface parent_iface;
	GXmlDomHTMLCollection* (*get_elements_by_tag_name) (GXmlDomDocument* self, const gchar* local_name);
	GXmlDomHTMLCollection* (*get_elements_by_tag_name_ns) (GXmlDomDocument* self, const gchar* namespace, const gchar* local_name);
	GXmlDomHTMLCollection* (*get_elements_by_class_name) (GXmlDomDocument* self, const gchar* classNames);
	GXmlDomElement* (*create_element) (GXmlDomDocument* self, const gchar* local_name, GError** error);
	GXmlDomElement* (*create_element_ns) (GXmlDomDocument* self, const gchar* namespace, const gchar* qualified_name, GError** error);
	GXmlDomDocumentFragment* (*create_document_fragment) (GXmlDomDocument* self);
	GXmlDomText* (*create_text_node) (GXmlDomDocument* self, const gchar* data, GError** error);
	GXmlDomComment* (*create_comment) (GXmlDomDocument* self, const gchar* data, GError** error);
	GXmlDomProcessingInstruction* (*create_processing_instruction) (GXmlDomDocument* self, const gchar* target, const gchar* data, GError** error);
	GXmlDomNode* (*import_node) (GXmlDomDocument* self, GXmlDomNode* node, gboolean deep, GError** error);
	GXmlDomNode* (*adopt_node) (GXmlDomDocument* self, GXmlDomNode* node, GError** error);
	GXmlDomEvent* (*create_event) (GXmlDomDocument* self, const gchar* interface, GError** error);
	GXmlDomRange* (*create_range) (GXmlDomDocument* self);
	GXmlDomNodeIterator* (*create_node_iterator) (GXmlDomDocument* self, GXmlDomNode* root, gint whatToShow, GXmlDomNodeFilter* filter);
	GXmlDomTreeWalker* (*create_tree_walker) (GXmlDomDocument* self, GXmlDomNode* root, gint what_to_show, GXmlDomNodeFilter* filter);
	GXmlDomImplementation* (*get_implementation) (GXmlDomDocument* self);
	const gchar* (*get_url) (GXmlDomDocument* self);
	const gchar* (*get_document_uri) (GXmlDomDocument* self);
	const gchar* (*get_origin) (GXmlDomDocument* self);
	const gchar* (*get_compat_mode) (GXmlDomDocument* self);
	const gchar* (*get_character_set) (GXmlDomDocument* self);
	const gchar* (*get_content_type) (GXmlDomDocument* self);
	GXmlDomDocumentType* (*get_doctype) (GXmlDomDocument* self);
	GXmlDomElement* (*get_document_element) (GXmlDomDocument* self);
};

struct _GXmlDomNodeIface {
	GTypeInterface parent_iface;
	gboolean (*has_child_nodes) (GXmlDomNode* self);
	void (*normalize) (GXmlDomNode* self);
	gboolean (*is_equal_node) (GXmlDomNode* self, GXmlDomNode* node);
	GXmlDomNodeDocumentPosition (*compare_document_position) (GXmlDomNode* self, GXmlDomNode* other);
	gboolean (*contains) (GXmlDomNode* self, GXmlDomNode* other);
	gchar* (*lookup_prefix) (GXmlDomNode* self, const gchar* nspace);
	gchar* (*lookup_namespace_uri) (GXmlDomNode* self, const gchar* prefix);
	gboolean (*is_default_namespace) (GXmlDomNode* self, const gchar* nspace);
	GXmlDomNode* (*insert_before) (GXmlDomNode* self, GXmlDomNode* node, GXmlDomNode* child, GError** error);
	GXmlDomNode* (*append_child) (GXmlDomNode* self, GXmlDomNode* node, GError** error);
	GXmlDomNode* (*replace_child) (GXmlDomNode* self, GXmlDomNode* node, GXmlDomNode* child, GError** error);
	GXmlDomNode* (*remove_child) (GXmlDomNode* self, GXmlDomNode* child, GError** error);
	GXmlDomNode* (*clone_node) (GXmlDomNode* self, gboolean deep, GError** error);
	GXmlDomNodeNodeType (*get_node_type) (GXmlDomNode* self);
	gchar* (*get_node_name) (GXmlDomNode* self);
	const gchar* (*get_base_uri) (GXmlDomNode* self);
	GXmlDomDocument* (*get_owner_document) (GXmlDomNode* self);
	void (*set_owner_document) (GXmlDomNode* self, GXmlDomDocument* value);
	GXmlDomNode* (*get_parent_node) (GXmlDomNode* self);
	GXmlDomElement* (*get_parent_element) (GXmlDomNode* self);
	GXmlDomNodeList* (*get_child_nodes) (GXmlDomNode* self);
	GXmlDomNode* (*get_first_child) (GXmlDomNode* self);
	GXmlDomNode* (*get_last_child) (GXmlDomNode* self);
	GXmlDomNode* (*get_previous_sibling) (GXmlDomNode* self);
	GXmlDomNode* (*get_next_sibling) (GXmlDomNode* self);
	gchar* (*get_node_value) (GXmlDomNode* self);
	void (*set_node_value) (GXmlDomNode* self, const gchar* value);
	gchar* (*get_text_content) (GXmlDomNode* self);
	void (*set_text_content) (GXmlDomNode* self, const gchar* value);
};

struct _GXmlParserIface {
	GTypeInterface parent_iface;
	void (*write_file) (GXmlParser* self, GFile* file, GCancellable* cancellable, GError** error);
	void (*write_file_async) (GXmlParser* self, GFile* file, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*write_file_finish) (GXmlParser* self, GAsyncResult* _res_, GError** error);
	gchar* (*write_string) (GXmlParser* self, GError** error);
	void (*write_string_async) (GXmlParser* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	gchar* (*write_string_finish) (GXmlParser* self, GAsyncResult* _res_, GError** error);
	void (*write_stream) (GXmlParser* self, GOutputStream* stream, GCancellable* cancellable, GError** error);
	void (*write_stream_async) (GXmlParser* self, GOutputStream* stream, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*write_stream_finish) (GXmlParser* self, GAsyncResult* _res_, GError** error);
	void (*read_file) (GXmlParser* self, GFile* file, GCancellable* cancellable, GError** error);
	void (*read_file_async) (GXmlParser* self, GFile* file, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*read_file_finish) (GXmlParser* self, GAsyncResult* _res_, GError** error);
	void (*read_stream) (GXmlParser* self, GInputStream* stream, GCancellable* cancellable, GError** error);
	void (*read_stream_async) (GXmlParser* self, GInputStream* stream, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*read_stream_finish) (GXmlParser* self, GAsyncResult* _res_, GError** error);
	void (*read_string) (GXmlParser* self, const gchar* str, GCancellable* cancellable, GError** error);
	void (*read_string_async) (GXmlParser* self, const gchar* str, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*read_string_finish) (GXmlParser* self, GAsyncResult* _res_, GError** error);
	GInputStream* (*create_stream) (GXmlParser* self, GCancellable* cancellable, GError** error);
	void (*create_stream_async) (GXmlParser* self, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
	GInputStream* (*create_stream_finish) (GXmlParser* self, GAsyncResult* _res_, GError** error);
	void (*read_child_nodes) (GXmlParser* self, GXmlDomNode* parent, GError** error);
	void (*read_child_nodes_async) (GXmlParser* self, GXmlDomNode* parent, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*read_child_nodes_finish) (GXmlParser* self, GAsyncResult* _res_, GError** error);
	gboolean (*read_child_node) (GXmlParser* self, GXmlDomNode* parent, GError** error);
	gboolean (*read_child_element) (GXmlParser* self, GXmlDomNode* parent, GError** error);
	gboolean (*read_element_property) (GXmlParser* self, GXmlDomNode* parent, GXmlDomNode** element, GError** error);
	gboolean (*add_element_collection) (GXmlParser* self, GXmlDomNode* parent, GXmlDomNode** element, GError** error);
	void (*read_child_nodes_stream) (GXmlParser* self, GInputStream* istream, GCancellable* cancellable, GError** error);
	void (*read_child_nodes_string) (GXmlParser* self, const gchar* str, GCancellable* cancellable, GError** error);
	gchar* (*read_unparsed) (GXmlParser* self, GError** error);
	gboolean (*move_next_node) (GXmlParser* self, GError** error);
	gboolean (*current_is_empty_element) (GXmlParser* self);
	gboolean (*current_is_element) (GXmlParser* self);
	gboolean (*current_is_document) (GXmlParser* self);
	gchar* (*current_node_name) (GXmlParser* self);
	GXmlDomElement* (*create_element) (GXmlParser* self, GXmlDomNode* parent, GError** error);
	void (*read_element) (GXmlParser* self, GXmlDomElement* element, GError** error);
	gboolean (*get_backup) (GXmlParser* self);
	void (*set_backup) (GXmlParser* self, gboolean value);
	gboolean (*get_indent) (GXmlParser* self);
	void (*set_indent) (GXmlParser* self, gboolean value);
	GXmlDomNode* (*get_node) (GXmlParser* self);
};

struct _GxmlParserWriteFileAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	GXmlParser* self;
	GFile* file;
	GCancellable* cancellable;
	GFileOutputStream* ostream;
	GFile* _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
	GCancellable* _tmp3_;
	GFileOutputStream* _tmp4_;
	GFileOutputStream* _tmp5_;
	GCancellable* _tmp6_;
	GError * _inner_error_;
};

struct _GxmlParserReadFileAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	GXmlParser* self;
	GFile* file;
	GCancellable* cancellable;
	GFile* _tmp0_;
	gboolean _tmp1_;
	const gchar* _tmp2_;
	GError* _tmp3_;
	GFileInputStream* _tmp4_;
	GFile* _tmp5_;
	GFileInputStream* _tmp6_;
	GCancellable* _tmp7_;
	GError * _inner_error_;
};

struct _GxmlParserReadChildNodesAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	GXmlParser* self;
	GXmlDomNode* parent;
	gboolean cont;
	gboolean _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
	gboolean _tmp3_;
	gboolean _tmp4_;
	GXmlDomNode* _tmp5_;
	gboolean _tmp6_;
	gboolean _tmp7_;
	GXmlDomNode* _tmp8_;
	gboolean _tmp9_;
	GError * _inner_error_;
};

typedef enum  {
	GXML_DOM_ERROR_INDEX_SIZE_ERROR = 1,
	GXML_DOM_ERROR_DOMSTRING_SIZE_ERROR,
	GXML_DOM_ERROR_HIERARCHY_REQUEST_ERROR,
	GXML_DOM_ERROR_WRONG_DOCUMENT_ERROR,
	GXML_DOM_ERROR_INVALID_CHARACTER_ERROR,
	GXML_DOM_ERROR_NO_DATA_ALLOWED_ERROR,
	GXML_DOM_ERROR_NO_MODIFICATION_ALLOWED_ERROR,
	GXML_DOM_ERROR_NOT_FOUND_ERROR,
	GXML_DOM_ERROR_NOT_SUPPORTED_ERROR,
	GXML_DOM_ERROR_INUSE_ATTRIBUTE_ERROR,
	GXML_DOM_ERROR_INVALID_STATE_ERROR,
	GXML_DOM_ERROR_SYNTAX_ERROR,
	GXML_DOM_ERROR_INVALID_MODIFICATION_ERROR,
	GXML_DOM_ERROR_NAMESPACE_ERROR,
	GXML_DOM_ERROR_INVALID_ACCESS_ERROR,
	GXML_DOM_ERROR_VALIDATION_ERROR,
	GXML_DOM_ERROR_TYPE_MISMATCH_ERROR,
	GXML_DOM_ERROR_SECURITY_ERROR,
	GXML_DOM_ERROR_NETWORK_ERROR,
	GXML_DOM_ERROR_ABORT_ERROR,
	GXML_DOM_ERROR_URL_MISMATCH_ERROR,
	GXML_DOM_ERROR_QUOTA_EXCEEDED_ERROR,
	GXML_DOM_ERROR_TIME_OUT_ERROR,
	GXML_DOM_ERROR_INVALID_NODE_TYPE_ERROR,
	GXML_DOM_ERROR_DATA_CLONE_ERROR
} GXmlDomError;
#define GXML_DOM_ERROR gxml_dom_error_quark ()
struct _GXmlGomObjectIface {
	GTypeInterface parent_iface;
	GList* (*get_properties_list) (GXmlGomObject* self);
	GParamSpec* (*find_property_name) (GXmlGomObject* self, const gchar* pname);
	GParamSpec* (*find_object_property_name) (GXmlGomObject* self, const gchar* pname);
	GList* (*get_property_element_list) (GXmlGomObject* self);
	gchar* (*get_property_string) (GXmlGomObject* self, GParamSpec* prop);
	gchar* (*get_attribute) (GXmlGomObject* self, const gchar* name);
	gboolean (*set_attribute) (GXmlGomObject* self, const gchar* name, const gchar* val);
	GXmlDomElement* (*get_child) (GXmlGomObject* self, const gchar* name);
	GXmlDomElementList* (*find_elements) (GXmlGomObject* self, const gchar* name);
	gboolean (*remove_attribute) (GXmlGomObject* self, const gchar* name);
	gboolean (*set_instance_property) (GXmlGomObject* self, const gchar* name);
	void (*clean_property_elements) (GXmlGomObject* self, const gchar* name, GError** error);
};

struct _GXmlGomCollectionIface {
	GTypeInterface parent_iface;
	GQueue* (*get_nodes_index) (GXmlGomCollection* self);
	GXmlGomElement* (*get_element) (GXmlGomCollection* self);
	void (*set_element) (GXmlGomCollection* self, GXmlGomElement* value);
	const gchar* (*get_items_name) (GXmlGomCollection* self);
	GType (*get_items_type) (GXmlGomCollection* self);
	void (*set_items_type) (GXmlGomCollection* self, GType value);
	void (*search) (GXmlGomCollection* self, GError** error);
	GXmlDomElement* (*get_item) (GXmlGomCollection* self, gint index, GError** error);
	void (*append) (GXmlGomCollection* self, GXmlDomElement* node, GError** error);
	gint (*get_length) (GXmlGomCollection* self);
	void (*initialize) (GXmlGomCollection* self, GType t, GError** error);
	GXmlGomElement* (*create_item) (GXmlGomCollection* self);
	gboolean (*validate_append) (GXmlGomCollection* self, gint index, GXmlDomElement* element, GError** error);
	void (*clear) (GXmlGomCollection* self, GError** error);
};



GQuark gxml_parser_error_quark (void);
GType gxml_dom_time_stamp_get_type (void) G_GNUC_CONST;
GType gxml_dom_event_phase_get_type (void) G_GNUC_CONST;
GType gxml_dom_event_get_type (void) G_GNUC_CONST;
GType gxml_dom_event_listener_get_type (void) G_GNUC_CONST;
GType gxml_dom_event_target_get_type (void) G_GNUC_CONST;
GType gxml_dom_node_document_position_get_type (void) G_GNUC_CONST;
GType gxml_dom_node_node_type_get_type (void) G_GNUC_CONST;
GType gxml_dom_child_node_get_type (void) G_GNUC_CONST;
GType gxml_dom_non_document_type_child_node_get_type (void) G_GNUC_CONST;
GType gxml_dom_html_collection_get_type (void) G_GNUC_CONST;
GType gxml_dom_token_list_get_type (void) G_GNUC_CONST;
GType gxml_dom_named_node_map_get_type (void) G_GNUC_CONST;
GType gxml_dom_element_get_type (void) G_GNUC_CONST;
GType gxml_dom_node_list_get_type (void) G_GNUC_CONST;
GType gxml_dom_element_list_get_type (void) G_GNUC_CONST;
GType gxml_dom_parent_node_get_type (void) G_GNUC_CONST;
GType gxml_dom_non_element_parent_node_get_type (void) G_GNUC_CONST;
GType gxml_dom_document_fragment_get_type (void) G_GNUC_CONST;
GType gxml_dom_character_data_get_type (void) G_GNUC_CONST;
GType gxml_dom_text_get_type (void) G_GNUC_CONST;
GType gxml_dom_comment_get_type (void) G_GNUC_CONST;
GType gxml_dom_processing_instruction_get_type (void) G_GNUC_CONST;
GType gxml_dom_range_boundary_points_get_type (void) G_GNUC_CONST;
GType gxml_dom_range_get_type (void) G_GNUC_CONST;
GType gxml_dom_node_filter_get_type (void) G_GNUC_CONST;
GType gxml_dom_node_iterator_get_type (void) G_GNUC_CONST;
GType gxml_dom_tree_walker_get_type (void) G_GNUC_CONST;
GType gxml_dom_document_type_get_type (void) G_GNUC_CONST;
GType gxml_dom_xml_document_get_type (void) G_GNUC_CONST;
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_node_get_type (void) G_GNUC_CONST;
GType gxml_document_get_type (void) G_GNUC_CONST;
GType gxml_dom_implementation_get_type (void) G_GNUC_CONST;
GType gxml_dom_document_get_type (void) G_GNUC_CONST;
GType gxml_dom_node_get_type (void) G_GNUC_CONST;
GType gxml_parser_get_type (void) G_GNUC_CONST;
void gxml_parser_write_file (GXmlParser* self, GFile* file, GCancellable* cancellable, GError** error);
static void gxml_parser_real_write_file (GXmlParser* self, GFile* file, GCancellable* cancellable, GError** error);
gboolean gxml_parser_get_backup (GXmlParser* self);
void gxml_parser_write_stream (GXmlParser* self, GOutputStream* stream, GCancellable* cancellable, GError** error);
static void gxml_parser_real_write_file_async_data_free (gpointer _data);
static void gxml_parser_real_write_file_async (GXmlParser* self, GFile* file, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
void gxml_parser_write_file_async (GXmlParser* self, GFile* file, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
void gxml_parser_write_file_finish (GXmlParser* self, GAsyncResult* _res_, GError** error);
static gboolean gxml_parser_real_write_file_async_co (GxmlParserWriteFileAsyncData* _data_);
void gxml_parser_write_stream_async (GXmlParser* self, GOutputStream* stream, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
void gxml_parser_write_stream_finish (GXmlParser* self, GAsyncResult* _res_, GError** error);
static void gxml_parser_write_file_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
gchar* gxml_parser_write_string (GXmlParser* self, GError** error);
void gxml_parser_write_string_async (GXmlParser* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
gchar* gxml_parser_write_string_finish (GXmlParser* self, GAsyncResult* _res_, GError** error);
void gxml_parser_read_file (GXmlParser* self, GFile* file, GCancellable* cancellable, GError** error);
static void gxml_parser_real_read_file (GXmlParser* self, GFile* file, GCancellable* cancellable, GError** error);
void gxml_parser_read_stream (GXmlParser* self, GInputStream* stream, GCancellable* cancellable, GError** error);
static void gxml_parser_real_read_file_async_data_free (gpointer _data);
static void gxml_parser_real_read_file_async (GXmlParser* self, GFile* file, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
void gxml_parser_read_file_async (GXmlParser* self, GFile* file, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
void gxml_parser_read_file_finish (GXmlParser* self, GAsyncResult* _res_, GError** error);
static gboolean gxml_parser_real_read_file_async_co (GxmlParserReadFileAsyncData* _data_);
static gboolean _gxml_parser_real_read_file_async_co_gsource_func (gpointer self);
void gxml_parser_read_stream_async (GXmlParser* self, GInputStream* stream, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
void gxml_parser_read_stream_finish (GXmlParser* self, GAsyncResult* _res_, GError** error);
static void gxml_parser_read_file_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
void gxml_parser_read_string (GXmlParser* self, const gchar* str, GCancellable* cancellable, GError** error);
void gxml_parser_read_string_async (GXmlParser* self, const gchar* str, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
void gxml_parser_read_string_finish (GXmlParser* self, GAsyncResult* _res_, GError** error);
GInputStream* gxml_parser_create_stream (GXmlParser* self, GCancellable* cancellable, GError** error);
void gxml_parser_create_stream_async (GXmlParser* self, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
GInputStream* gxml_parser_create_stream_finish (GXmlParser* self, GAsyncResult* _res_, GError** error);
void gxml_parser_read_child_nodes (GXmlParser* self, GXmlDomNode* parent, GError** error);
static void gxml_parser_real_read_child_nodes (GXmlParser* self, GXmlDomNode* parent, GError** error);
gboolean gxml_parser_read_child_node (GXmlParser* self, GXmlDomNode* parent, GError** error);
gboolean gxml_parser_move_next_node (GXmlParser* self, GError** error);
gboolean gxml_parser_current_is_element (GXmlParser* self);
gboolean gxml_parser_read_child_element (GXmlParser* self, GXmlDomNode* parent, GError** error);
static void gxml_parser_real_read_child_nodes_async_data_free (gpointer _data);
static void gxml_parser_real_read_child_nodes_async (GXmlParser* self, GXmlDomNode* parent, GAsyncReadyCallback _callback_, gpointer _user_data_);
void gxml_parser_read_child_nodes_async (GXmlParser* self, GXmlDomNode* parent, GAsyncReadyCallback _callback_, gpointer _user_data_);
void gxml_parser_read_child_nodes_finish (GXmlParser* self, GAsyncResult* _res_, GError** error);
static gboolean gxml_parser_real_read_child_nodes_async_co (GxmlParserReadChildNodesAsyncData* _data_);
static gboolean _gxml_parser_real_read_child_nodes_async_co_gsource_func (gpointer self);
static gboolean gxml_parser_real_read_child_element (GXmlParser* self, GXmlDomNode* parent, GError** error);
GQuark gxml_dom_error_quark (void);
gboolean gxml_parser_current_is_empty_element (GXmlParser* self);
gboolean gxml_parser_read_element_property (GXmlParser* self, GXmlDomNode* parent, GXmlDomNode** element, GError** error);
gboolean gxml_parser_add_element_collection (GXmlParser* self, GXmlDomNode* parent, GXmlDomNode** element, GError** error);
GXmlDomElement* gxml_parser_create_element (GXmlParser* self, GXmlDomNode* parent, GError** error);
void gxml_parser_read_element (GXmlParser* self, GXmlDomElement* element, GError** error);
static gboolean gxml_parser_real_read_element_property (GXmlParser* self, GXmlDomNode* parent, GXmlDomNode** element, GError** error);
GType gxml_gom_object_get_type (void) G_GNUC_CONST;
GList* gxml_gom_object_get_property_element_list (GXmlGomObject* self);
GType gxml_gom_node_get_type (void) G_GNUC_CONST;
GType gxml_gom_element_get_type (void) G_GNUC_CONST;
GType gxml_gom_collection_get_type (void) G_GNUC_CONST;
GXmlDomNode* gxml_parser_get_node (GXmlParser* self);
GXmlDomDocument* gxml_dom_node_get_owner_document (GXmlDomNode* self);
gchar* gxml_dom_element_get_local_name (GXmlDomElement* self);
gchar* gxml_parser_current_node_name (GXmlParser* self);
GXmlDomNode* gxml_dom_node_append_child (GXmlDomNode* self, GXmlDomNode* node, GError** error);
static void _g_param_spec_unref0_ (gpointer var);
static void _g_list_free__g_param_spec_unref0_ (GList* self);
static gboolean gxml_parser_real_add_element_collection (GXmlParser* self, GXmlDomNode* parent, GXmlDomNode** element, GError** error);
GType gxml_gom_collection_get_items_type (GXmlGomCollection* self);
const gchar* gxml_gom_collection_get_items_name (GXmlGomCollection* self);
GXmlGomElement* gxml_gom_collection_get_element (GXmlGomCollection* self);
void gxml_gom_collection_append (GXmlGomCollection* self, GXmlDomElement* node, GError** error);
void gxml_parser_read_child_nodes_stream (GXmlParser* self, GInputStream* istream, GCancellable* cancellable, GError** error);
void gxml_parser_read_child_nodes_string (GXmlParser* self, const gchar* str, GCancellable* cancellable, GError** error);
static void gxml_parser_real_read_child_nodes_string (GXmlParser* self, const gchar* str, GCancellable* cancellable, GError** error);
static guint8* _vala_array_dup6 (guint8* self, int length);
gchar* gxml_parser_read_unparsed (GXmlParser* self, GError** error);
gboolean gxml_parser_current_is_document (GXmlParser* self);
void gxml_parser_set_backup (GXmlParser* self, gboolean value);
gboolean gxml_parser_get_indent (GXmlParser* self);
void gxml_parser_set_indent (GXmlParser* self, gboolean value);


GQuark gxml_parser_error_quark (void) {
	return g_quark_from_static_string ("gxml_parser_error-quark");
}


/**
   * Writes a {@link GXml.DomDocument} to a {@link GLib.File}
   */
static void gxml_parser_real_write_file (GXmlParser* self, GFile* file, GCancellable* cancellable, GError** error) {
	GFileOutputStream* ostream = NULL;
	GFile* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
	GCancellable* _tmp3_ = NULL;
	GFileOutputStream* _tmp4_ = NULL;
	GFileOutputStream* _tmp5_ = NULL;
	GCancellable* _tmp6_ = NULL;
	GError * _inner_error_ = NULL;
	g_return_if_fail (file != NULL);
	_tmp0_ = file;
	_tmp1_ = gxml_parser_get_backup (self);
	_tmp2_ = _tmp1_;
	_tmp3_ = cancellable;
	_tmp4_ = g_file_replace (_tmp0_, NULL, _tmp2_, G_FILE_CREATE_NONE, _tmp3_, &_inner_error_);
	ostream = _tmp4_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		g_propagate_error (error, _inner_error_);
		return;
	}
	_tmp5_ = ostream;
	_tmp6_ = cancellable;
	gxml_parser_write_stream (self, (GOutputStream*) _tmp5_, _tmp6_, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		g_propagate_error (error, _inner_error_);
		_g_object_unref0 (ostream);
		return;
	}
	_g_object_unref0 (ostream);
}


void gxml_parser_write_file (GXmlParser* self, GFile* file, GCancellable* cancellable, GError** error) {
	g_return_if_fail (self != NULL);
	GXML_PARSER_GET_INTERFACE (self)->write_file (self, file, cancellable, error);
}


static void gxml_parser_real_write_file_async_data_free (gpointer _data) {
	GxmlParserWriteFileAsyncData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->file);
	_g_object_unref0 (_data_->cancellable);
	_g_object_unref0 (_data_->self);
	g_slice_free (GxmlParserWriteFileAsyncData, _data_);
}


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


static void gxml_parser_real_write_file_async (GXmlParser* self, GFile* file, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GxmlParserWriteFileAsyncData* _data_;
	GXmlParser* _tmp0_ = NULL;
	GFile* _tmp1_ = NULL;
	GFile* _tmp2_ = NULL;
	GCancellable* _tmp3_ = NULL;
	GCancellable* _tmp4_ = NULL;
	_data_ = g_slice_new0 (GxmlParserWriteFileAsyncData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, gxml_parser_real_write_file_async);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, gxml_parser_real_write_file_async_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	_tmp1_ = file;
	_tmp2_ = _g_object_ref0 (_tmp1_);
	_g_object_unref0 (_data_->file);
	_data_->file = _tmp2_;
	_tmp3_ = cancellable;
	_tmp4_ = _g_object_ref0 (_tmp3_);
	_g_object_unref0 (_data_->cancellable);
	_data_->cancellable = _tmp4_;
	gxml_parser_real_write_file_async_co (_data_);
}


static void gxml_parser_real_write_file_finish (GXmlParser* self, GAsyncResult* _res_, GError** error) {
	GxmlParserWriteFileAsyncData* _data_;
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
		return;
	}
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
}


/**
   * Writes a {@link GXml.DomDocument} to a {@link GLib.File}
   */
static void gxml_parser_write_file_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	GxmlParserWriteFileAsyncData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	gxml_parser_real_write_file_async_co (_data_);
}


static gboolean gxml_parser_real_write_file_async_co (GxmlParserWriteFileAsyncData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_tmp0_ = NULL;
	_data_->_tmp0_ = _data_->file;
	_data_->_tmp1_ = FALSE;
	_data_->_tmp1_ = gxml_parser_get_backup (_data_->self);
	_data_->_tmp2_ = FALSE;
	_data_->_tmp2_ = _data_->_tmp1_;
	_data_->_tmp3_ = NULL;
	_data_->_tmp3_ = _data_->cancellable;
	_data_->_tmp4_ = NULL;
	_data_->_tmp4_ = g_file_replace (_data_->_tmp0_, NULL, _data_->_tmp2_, G_FILE_CREATE_NONE, _data_->_tmp3_, &_data_->_inner_error_);
	_data_->ostream = _data_->_tmp4_;
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
		g_error_free (_data_->_inner_error_);
		if (_data_->_state_ == 0) {
			g_simple_async_result_complete_in_idle (_data_->_async_result);
		} else {
			g_simple_async_result_complete (_data_->_async_result);
		}
		g_object_unref (_data_->_async_result);
		return FALSE;
	}
	_data_->_tmp5_ = NULL;
	_data_->_tmp5_ = _data_->ostream;
	_data_->_tmp6_ = NULL;
	_data_->_tmp6_ = _data_->cancellable;
	_data_->_state_ = 1;
	gxml_parser_write_stream_async (_data_->self, (GOutputStream*) _data_->_tmp5_, _data_->_tmp6_, gxml_parser_write_file_async_ready, _data_);
	return FALSE;
	_state_1:
	gxml_parser_write_stream_finish (_data_->self, _data_->_res_, &_data_->_inner_error_);
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
		g_error_free (_data_->_inner_error_);
		_g_object_unref0 (_data_->ostream);
		if (_data_->_state_ == 0) {
			g_simple_async_result_complete_in_idle (_data_->_async_result);
		} else {
			g_simple_async_result_complete (_data_->_async_result);
		}
		g_object_unref (_data_->_async_result);
		return FALSE;
	}
	_g_object_unref0 (_data_->ostream);
	if (_data_->_state_ == 0) {
		g_simple_async_result_complete_in_idle (_data_->_async_result);
	} else {
		g_simple_async_result_complete (_data_->_async_result);
	}
	g_object_unref (_data_->_async_result);
	return FALSE;
}


void gxml_parser_write_file_async (GXmlParser* self, GFile* file, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GXML_PARSER_GET_INTERFACE (self)->write_file_async (self, file, cancellable, _callback_, _user_data_);
}


void gxml_parser_write_file_finish (GXmlParser* self, GAsyncResult* _res_, GError** error) {
	GXML_PARSER_GET_INTERFACE (self)->write_file_finish (self, _res_, error);
}


/**
   * Writes a {@link node} to a string
   */
gchar* gxml_parser_write_string (GXmlParser* self, GError** error) {
	g_return_val_if_fail (self != NULL, NULL);
	return GXML_PARSER_GET_INTERFACE (self)->write_string (self, error);
}


void gxml_parser_write_string_async (GXmlParser* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GXML_PARSER_GET_INTERFACE (self)->write_string_async (self, _callback_, _user_data_);
}


gchar* gxml_parser_write_string_finish (GXmlParser* self, GAsyncResult* _res_, GError** error) {
	return GXML_PARSER_GET_INTERFACE (self)->write_string_finish (self, _res_, error);
}


/**
   * Writes a {@link GXml.DomDocument} to a {@link GLib.OutputStream}
   */
void gxml_parser_write_stream (GXmlParser* self, GOutputStream* stream, GCancellable* cancellable, GError** error) {
	g_return_if_fail (self != NULL);
	GXML_PARSER_GET_INTERFACE (self)->write_stream (self, stream, cancellable, error);
}


void gxml_parser_write_stream_async (GXmlParser* self, GOutputStream* stream, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GXML_PARSER_GET_INTERFACE (self)->write_stream_async (self, stream, cancellable, _callback_, _user_data_);
}


void gxml_parser_write_stream_finish (GXmlParser* self, GAsyncResult* _res_, GError** error) {
	GXML_PARSER_GET_INTERFACE (self)->write_stream_finish (self, _res_, error);
}


/**
   * Writes a {@link node} to a {@link GLib.OutputStream}
   */
static void gxml_parser_real_read_file (GXmlParser* self, GFile* file, GCancellable* cancellable, GError** error) {
	GFile* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	GFileInputStream* _tmp4_ = NULL;
	GFile* _tmp5_ = NULL;
	GFileInputStream* _tmp6_ = NULL;
	GCancellable* _tmp7_ = NULL;
	GError * _inner_error_ = NULL;
	g_return_if_fail (file != NULL);
	_tmp0_ = file;
	_tmp1_ = g_file_query_exists (_tmp0_, NULL);
	if (!_tmp1_) {
		const gchar* _tmp2_ = NULL;
		GError* _tmp3_ = NULL;
		_tmp2_ = _ ("File doesn't exist");
		_tmp3_ = g_error_new_literal (GXML_PARSER_ERROR, GXML_PARSER_ERROR_INVALID_FILE_ERROR, _tmp2_);
		_inner_error_ = _tmp3_;
		g_propagate_error (error, _inner_error_);
		return;
	}
	_tmp5_ = file;
	_tmp6_ = g_file_read (_tmp5_, NULL, &_inner_error_);
	_tmp4_ = _tmp6_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		g_propagate_error (error, _inner_error_);
		return;
	}
	_tmp7_ = cancellable;
	gxml_parser_read_stream (self, (GInputStream*) _tmp4_, _tmp7_, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		g_propagate_error (error, _inner_error_);
		_g_object_unref0 (_tmp4_);
		return;
	}
	_g_object_unref0 (_tmp4_);
}


void gxml_parser_read_file (GXmlParser* self, GFile* file, GCancellable* cancellable, GError** error) {
	g_return_if_fail (self != NULL);
	GXML_PARSER_GET_INTERFACE (self)->read_file (self, file, cancellable, error);
}


static void gxml_parser_real_read_file_async_data_free (gpointer _data) {
	GxmlParserReadFileAsyncData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->file);
	_g_object_unref0 (_data_->cancellable);
	_g_object_unref0 (_data_->self);
	g_slice_free (GxmlParserReadFileAsyncData, _data_);
}


static void gxml_parser_real_read_file_async (GXmlParser* self, GFile* file, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GxmlParserReadFileAsyncData* _data_;
	GXmlParser* _tmp0_ = NULL;
	GFile* _tmp1_ = NULL;
	GFile* _tmp2_ = NULL;
	GCancellable* _tmp3_ = NULL;
	GCancellable* _tmp4_ = NULL;
	_data_ = g_slice_new0 (GxmlParserReadFileAsyncData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, gxml_parser_real_read_file_async);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, gxml_parser_real_read_file_async_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	_tmp1_ = file;
	_tmp2_ = _g_object_ref0 (_tmp1_);
	_g_object_unref0 (_data_->file);
	_data_->file = _tmp2_;
	_tmp3_ = cancellable;
	_tmp4_ = _g_object_ref0 (_tmp3_);
	_g_object_unref0 (_data_->cancellable);
	_data_->cancellable = _tmp4_;
	gxml_parser_real_read_file_async_co (_data_);
}


static void gxml_parser_real_read_file_finish (GXmlParser* self, GAsyncResult* _res_, GError** error) {
	GxmlParserReadFileAsyncData* _data_;
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
		return;
	}
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
}


/**
   * Writes a {@link GXml.DomDocument} to a {@link GLib.OutputStream}
   */
static gboolean _gxml_parser_real_read_file_async_co_gsource_func (gpointer self) {
	gboolean result;
	result = gxml_parser_real_read_file_async_co (self);
	return result;
}


static void gxml_parser_read_file_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	GxmlParserReadFileAsyncData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	gxml_parser_real_read_file_async_co (_data_);
}


static gboolean gxml_parser_real_read_file_async_co (GxmlParserReadFileAsyncData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		case 2:
		goto _state_2;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_tmp0_ = NULL;
	_data_->_tmp0_ = _data_->file;
	_data_->_tmp1_ = FALSE;
	_data_->_tmp1_ = g_file_query_exists (_data_->_tmp0_, NULL);
	if (!_data_->_tmp1_) {
		_data_->_tmp2_ = NULL;
		_data_->_tmp2_ = _ ("File doesn't exist");
		_data_->_tmp3_ = NULL;
		_data_->_tmp3_ = g_error_new_literal (GXML_PARSER_ERROR, GXML_PARSER_ERROR_INVALID_FILE_ERROR, _data_->_tmp2_);
		_data_->_inner_error_ = _data_->_tmp3_;
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
		g_error_free (_data_->_inner_error_);
		if (_data_->_state_ == 0) {
			g_simple_async_result_complete_in_idle (_data_->_async_result);
		} else {
			g_simple_async_result_complete (_data_->_async_result);
		}
		g_object_unref (_data_->_async_result);
		return FALSE;
	}
	g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, _gxml_parser_real_read_file_async_co_gsource_func, _data_, NULL);
	_data_->_state_ = 1;
	return FALSE;
	_state_1:
	;
	_data_->_tmp5_ = NULL;
	_data_->_tmp5_ = _data_->file;
	_data_->_tmp6_ = NULL;
	_data_->_tmp6_ = g_file_read (_data_->_tmp5_, NULL, &_data_->_inner_error_);
	_data_->_tmp4_ = _data_->_tmp6_;
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
		g_error_free (_data_->_inner_error_);
		if (_data_->_state_ == 0) {
			g_simple_async_result_complete_in_idle (_data_->_async_result);
		} else {
			g_simple_async_result_complete (_data_->_async_result);
		}
		g_object_unref (_data_->_async_result);
		return FALSE;
	}
	_data_->_tmp7_ = NULL;
	_data_->_tmp7_ = _data_->cancellable;
	_data_->_state_ = 2;
	gxml_parser_read_stream_async (_data_->self, (GInputStream*) _data_->_tmp4_, _data_->_tmp7_, gxml_parser_read_file_async_ready, _data_);
	return FALSE;
	_state_2:
	gxml_parser_read_stream_finish (_data_->self, _data_->_res_, &_data_->_inner_error_);
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
		g_error_free (_data_->_inner_error_);
		_g_object_unref0 (_data_->_tmp4_);
		if (_data_->_state_ == 0) {
			g_simple_async_result_complete_in_idle (_data_->_async_result);
		} else {
			g_simple_async_result_complete (_data_->_async_result);
		}
		g_object_unref (_data_->_async_result);
		return FALSE;
	}
	_g_object_unref0 (_data_->_tmp4_);
	if (_data_->_state_ == 0) {
		g_simple_async_result_complete_in_idle (_data_->_async_result);
	} else {
		g_simple_async_result_complete (_data_->_async_result);
	}
	g_object_unref (_data_->_async_result);
	return FALSE;
}


void gxml_parser_read_file_async (GXmlParser* self, GFile* file, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GXML_PARSER_GET_INTERFACE (self)->read_file_async (self, file, cancellable, _callback_, _user_data_);
}


void gxml_parser_read_file_finish (GXmlParser* self, GAsyncResult* _res_, GError** error) {
	GXML_PARSER_GET_INTERFACE (self)->read_file_finish (self, _res_, error);
}


/**
   * Read a {@link GXml.DomDocument} from a {@link GLib.InputStream}
   */
void gxml_parser_read_stream (GXmlParser* self, GInputStream* stream, GCancellable* cancellable, GError** error) {
	g_return_if_fail (self != NULL);
	GXML_PARSER_GET_INTERFACE (self)->read_stream (self, stream, cancellable, error);
}


void gxml_parser_read_stream_async (GXmlParser* self, GInputStream* stream, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GXML_PARSER_GET_INTERFACE (self)->read_stream_async (self, stream, cancellable, _callback_, _user_data_);
}


void gxml_parser_read_stream_finish (GXmlParser* self, GAsyncResult* _res_, GError** error) {
	GXML_PARSER_GET_INTERFACE (self)->read_stream_finish (self, _res_, error);
}


/**
   * Reads a {@link node} from a string
   */
void gxml_parser_read_string (GXmlParser* self, const gchar* str, GCancellable* cancellable, GError** error) {
	g_return_if_fail (self != NULL);
	GXML_PARSER_GET_INTERFACE (self)->read_string (self, str, cancellable, error);
}


void gxml_parser_read_string_async (GXmlParser* self, const gchar* str, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GXML_PARSER_GET_INTERFACE (self)->read_string_async (self, str, cancellable, _callback_, _user_data_);
}


void gxml_parser_read_string_finish (GXmlParser* self, GAsyncResult* _res_, GError** error) {
	GXML_PARSER_GET_INTERFACE (self)->read_string_finish (self, _res_, error);
}


/**
   * Creates an {@link GLib.InputStream} to write a string representation
   * in XML
   */
GInputStream* gxml_parser_create_stream (GXmlParser* self, GCancellable* cancellable, GError** error) {
	g_return_val_if_fail (self != NULL, NULL);
	return GXML_PARSER_GET_INTERFACE (self)->create_stream (self, cancellable, error);
}


void gxml_parser_create_stream_async (GXmlParser* self, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GXML_PARSER_GET_INTERFACE (self)->create_stream_async (self, cancellable, _callback_, _user_data_);
}


GInputStream* gxml_parser_create_stream_finish (GXmlParser* self, GAsyncResult* _res_, GError** error) {
	return GXML_PARSER_GET_INTERFACE (self)->create_stream_finish (self, _res_, error);
}


/**
   * Iterates in all child nodes and append them to node.
   */
static void gxml_parser_real_read_child_nodes (GXmlParser* self, GXmlDomNode* parent, GError** error) {
	gboolean cont = FALSE;
	GError * _inner_error_ = NULL;
	g_return_if_fail (parent != NULL);
	cont = TRUE;
	while (TRUE) {
		gboolean _tmp0_ = FALSE;
		GXmlDomNode* _tmp1_ = NULL;
		gboolean _tmp5_ = FALSE;
		gboolean _tmp6_ = FALSE;
		gboolean _tmp7_ = FALSE;
		_tmp0_ = cont;
		if (!_tmp0_) {
			break;
		}
		_tmp1_ = parent;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, GXML_TYPE_DOM_DOCUMENT)) {
			gboolean _tmp2_ = FALSE;
			GXmlDomNode* _tmp3_ = NULL;
			gboolean _tmp4_ = FALSE;
			_tmp3_ = parent;
			_tmp4_ = gxml_parser_read_child_node (self, _tmp3_, &_inner_error_);
			_tmp2_ = _tmp4_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				g_propagate_error (error, _inner_error_);
				return;
			}
			cont = _tmp2_;
		}
		_tmp6_ = gxml_parser_move_next_node (self, &_inner_error_);
		_tmp5_ = _tmp6_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			g_propagate_error (error, _inner_error_);
			return;
		}
		if (!_tmp5_) {
			return;
		}
		_tmp7_ = gxml_parser_current_is_element (self);
		if (_tmp7_) {
			gboolean _tmp8_ = FALSE;
			GXmlDomNode* _tmp9_ = NULL;
			gboolean _tmp10_ = FALSE;
			_tmp9_ = parent;
			_tmp10_ = gxml_parser_read_child_element (self, _tmp9_, &_inner_error_);
			_tmp8_ = _tmp10_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				g_propagate_error (error, _inner_error_);
				return;
			}
			cont = _tmp8_;
		} else {
			gboolean _tmp11_ = FALSE;
			GXmlDomNode* _tmp12_ = NULL;
			gboolean _tmp13_ = FALSE;
			_tmp12_ = parent;
			_tmp13_ = gxml_parser_read_child_node (self, _tmp12_, &_inner_error_);
			_tmp11_ = _tmp13_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				g_propagate_error (error, _inner_error_);
				return;
			}
			cont = _tmp11_;
		}
	}
}


void gxml_parser_read_child_nodes (GXmlParser* self, GXmlDomNode* parent, GError** error) {
	g_return_if_fail (self != NULL);
	GXML_PARSER_GET_INTERFACE (self)->read_child_nodes (self, parent, error);
}


static void gxml_parser_real_read_child_nodes_async_data_free (gpointer _data) {
	GxmlParserReadChildNodesAsyncData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->parent);
	_g_object_unref0 (_data_->self);
	g_slice_free (GxmlParserReadChildNodesAsyncData, _data_);
}


static void gxml_parser_real_read_child_nodes_async (GXmlParser* self, GXmlDomNode* parent, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GxmlParserReadChildNodesAsyncData* _data_;
	GXmlParser* _tmp0_ = NULL;
	GXmlDomNode* _tmp1_ = NULL;
	GXmlDomNode* _tmp2_ = NULL;
	_data_ = g_slice_new0 (GxmlParserReadChildNodesAsyncData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, gxml_parser_real_read_child_nodes_async);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, gxml_parser_real_read_child_nodes_async_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	_tmp1_ = parent;
	_tmp2_ = _g_object_ref0 (_tmp1_);
	_g_object_unref0 (_data_->parent);
	_data_->parent = _tmp2_;
	gxml_parser_real_read_child_nodes_async_co (_data_);
}


static void gxml_parser_real_read_child_nodes_finish (GXmlParser* self, GAsyncResult* _res_, GError** error) {
	GxmlParserReadChildNodesAsyncData* _data_;
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
		return;
	}
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
}


/**
   * Iterates in all child nodes and append them to node.
   */
static gboolean _gxml_parser_real_read_child_nodes_async_co_gsource_func (gpointer self) {
	gboolean result;
	result = gxml_parser_real_read_child_nodes_async_co (self);
	return result;
}


static gboolean gxml_parser_real_read_child_nodes_async_co (GxmlParserReadChildNodesAsyncData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->cont = TRUE;
	while (TRUE) {
		_data_->_tmp0_ = FALSE;
		_data_->_tmp0_ = _data_->cont;
		if (!_data_->_tmp0_) {
			break;
		}
		g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, _gxml_parser_real_read_child_nodes_async_co_gsource_func, _data_, NULL);
		_data_->_state_ = 1;
		return FALSE;
		_state_1:
		;
		_data_->_tmp2_ = FALSE;
		_data_->_tmp2_ = gxml_parser_move_next_node (_data_->self, &_data_->_inner_error_);
		_data_->_tmp1_ = _data_->_tmp2_;
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
			g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
			g_error_free (_data_->_inner_error_);
			if (_data_->_state_ == 0) {
				g_simple_async_result_complete_in_idle (_data_->_async_result);
			} else {
				g_simple_async_result_complete (_data_->_async_result);
			}
			g_object_unref (_data_->_async_result);
			return FALSE;
		}
		if (!_data_->_tmp1_) {
			if (_data_->_state_ == 0) {
				g_simple_async_result_complete_in_idle (_data_->_async_result);
			} else {
				g_simple_async_result_complete (_data_->_async_result);
			}
			g_object_unref (_data_->_async_result);
			return FALSE;
		}
		_data_->_tmp3_ = FALSE;
		_data_->_tmp3_ = gxml_parser_current_is_element (_data_->self);
		if (_data_->_tmp3_) {
			_data_->_tmp5_ = NULL;
			_data_->_tmp5_ = _data_->parent;
			_data_->_tmp6_ = FALSE;
			_data_->_tmp6_ = gxml_parser_read_child_element (_data_->self, _data_->_tmp5_, &_data_->_inner_error_);
			_data_->_tmp4_ = _data_->_tmp6_;
			if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
				g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
				g_error_free (_data_->_inner_error_);
				if (_data_->_state_ == 0) {
					g_simple_async_result_complete_in_idle (_data_->_async_result);
				} else {
					g_simple_async_result_complete (_data_->_async_result);
				}
				g_object_unref (_data_->_async_result);
				return FALSE;
			}
			_data_->cont = _data_->_tmp4_;
		} else {
			_data_->_tmp8_ = NULL;
			_data_->_tmp8_ = _data_->parent;
			_data_->_tmp9_ = FALSE;
			_data_->_tmp9_ = gxml_parser_read_child_node (_data_->self, _data_->_tmp8_, &_data_->_inner_error_);
			_data_->_tmp7_ = _data_->_tmp9_;
			if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
				g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
				g_error_free (_data_->_inner_error_);
				if (_data_->_state_ == 0) {
					g_simple_async_result_complete_in_idle (_data_->_async_result);
				} else {
					g_simple_async_result_complete (_data_->_async_result);
				}
				g_object_unref (_data_->_async_result);
				return FALSE;
			}
			_data_->cont = _data_->_tmp7_;
		}
	}
	if (_data_->_state_ == 0) {
		g_simple_async_result_complete_in_idle (_data_->_async_result);
	} else {
		g_simple_async_result_complete (_data_->_async_result);
	}
	g_object_unref (_data_->_async_result);
	return FALSE;
}


void gxml_parser_read_child_nodes_async (GXmlParser* self, GXmlDomNode* parent, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GXML_PARSER_GET_INTERFACE (self)->read_child_nodes_async (self, parent, _callback_, _user_data_);
}


void gxml_parser_read_child_nodes_finish (GXmlParser* self, GAsyncResult* _res_, GError** error) {
	GXML_PARSER_GET_INTERFACE (self)->read_child_nodes_finish (self, _res_, error);
}


/**
   * Creates a new {@link DomNode} and append it to
   * parent: depending on current node's type found by parser.
   *
   * If current found node is a {@link DomElement}, it is not parsed.
   * If you want to parse it use {@link read_element} method.
   *
   * Returns: true if node has been created and appended to parent.
   */
gboolean gxml_parser_read_child_node (GXmlParser* self, GXmlDomNode* parent, GError** error) {
	g_return_val_if_fail (self != NULL, FALSE);
	return GXML_PARSER_GET_INTERFACE (self)->read_child_node (self, parent, error);
}


/**
   * Reads current found element
   */
static gboolean gxml_parser_real_read_child_element (GXmlParser* self, GXmlDomNode* parent, GError** error) {
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
	gboolean isempty = FALSE;
	gboolean _tmp4_ = FALSE;
	GXmlDomNode* n = NULL;
	gboolean _tmp5_ = FALSE;
	GXmlDomNode* _tmp6_ = NULL;
	GXmlDomNode* _tmp7_ = NULL;
	gboolean _tmp8_ = FALSE;
	GXmlDomNode* _tmp22_ = NULL;
	gboolean _tmp23_ = FALSE;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (parent != NULL, FALSE);
	_tmp0_ = gxml_parser_current_is_element (self);
	if (!_tmp0_) {
		const gchar* _tmp1_ = NULL;
		GError* _tmp2_ = NULL;
		gboolean _tmp3_ = FALSE;
		_tmp1_ = _ ("Invalid attempt to parse an element node, when current found node is n" \
"ot");
		_tmp2_ = g_error_new_literal (GXML_DOM_ERROR, GXML_DOM_ERROR_INVALID_NODE_TYPE_ERROR, _tmp1_);
		_inner_error_ = _tmp2_;
		g_propagate_error (error, _inner_error_);
		return _tmp3_;
	}
	_tmp4_ = gxml_parser_current_is_empty_element (self);
	isempty = _tmp4_;
	n = NULL;
	_tmp6_ = parent;
	_tmp8_ = gxml_parser_read_element_property (self, _tmp6_, &_tmp7_, &_inner_error_);
	_g_object_unref0 (n);
	n = _tmp7_;
	_tmp5_ = _tmp8_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		gboolean _tmp9_ = FALSE;
		g_propagate_error (error, _inner_error_);
		_g_object_unref0 (n);
		return _tmp9_;
	}
	if (!_tmp5_) {
		gboolean _tmp10_ = FALSE;
		GXmlDomNode* _tmp11_ = NULL;
		GXmlDomNode* _tmp12_ = NULL;
		gboolean _tmp13_ = FALSE;
		_tmp11_ = parent;
		_tmp13_ = gxml_parser_add_element_collection (self, _tmp11_, &_tmp12_, &_inner_error_);
		_g_object_unref0 (n);
		n = _tmp12_;
		_tmp10_ = _tmp13_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			gboolean _tmp14_ = FALSE;
			g_propagate_error (error, _inner_error_);
			_g_object_unref0 (n);
			return _tmp14_;
		}
		if (!_tmp10_) {
			GXmlDomElement* _tmp15_ = NULL;
			GXmlDomNode* _tmp16_ = NULL;
			GXmlDomElement* _tmp17_ = NULL;
			GXmlDomElement* _tmp19_ = NULL;
			GXmlDomNode* _tmp20_ = NULL;
			_tmp16_ = parent;
			_tmp17_ = gxml_parser_create_element (self, _tmp16_, &_inner_error_);
			_tmp15_ = _tmp17_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				gboolean _tmp18_ = FALSE;
				g_propagate_error (error, _inner_error_);
				_g_object_unref0 (n);
				return _tmp18_;
			}
			_tmp19_ = _tmp15_;
			_tmp15_ = NULL;
			_g_object_unref0 (n);
			n = (GXmlDomNode*) _tmp19_;
			_tmp20_ = n;
			gxml_parser_read_element (self, G_TYPE_CHECK_INSTANCE_TYPE (_tmp20_, GXML_TYPE_DOM_ELEMENT) ? ((GXmlDomElement*) _tmp20_) : NULL, &_inner_error_);
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				gboolean _tmp21_ = FALSE;
				g_propagate_error (error, _inner_error_);
				_g_object_unref0 (_tmp15_);
				_g_object_unref0 (n);
				return _tmp21_;
			}
			_g_object_unref0 (_tmp15_);
		}
	}
	_tmp22_ = n;
	if (_tmp22_ == NULL) {
		result = FALSE;
		_g_object_unref0 (n);
		return result;
	}
	_tmp23_ = isempty;
	if (!_tmp23_) {
		GXmlDomNode* _tmp24_ = NULL;
		_tmp24_ = n;
		gxml_parser_read_child_nodes (self, _tmp24_, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			gboolean _tmp25_ = FALSE;
			g_propagate_error (error, _inner_error_);
			_g_object_unref0 (n);
			return _tmp25_;
		}
	}
	result = TRUE;
	_g_object_unref0 (n);
	return result;
}


gboolean gxml_parser_read_child_element (GXmlParser* self, GXmlDomNode* parent, GError** error) {
	g_return_val_if_fail (self != NULL, FALSE);
	return GXML_PARSER_GET_INTERFACE (self)->read_child_element (self, parent, error);
}


/**
   * Creates a new {@link DomElement} and append it as a child of parent: for current
   * read node, only if parent: have a property as {@link DomElement} type and current
   * node have same local name as property element.
   *
   * Returns: true if element is set to a new object and it is set as a child of parent:
   * as a property.
   */
static gpointer _g_param_spec_ref0 (gpointer self) {
	return self ? g_param_spec_ref (self) : NULL;
}


static void _g_param_spec_unref0_ (gpointer var) {
	(var == NULL) ? NULL : (var = (g_param_spec_unref (var), NULL));
}


static void _g_list_free__g_param_spec_unref0_ (GList* self) {
	g_list_foreach (self, (GFunc) _g_param_spec_unref0_, NULL);
	g_list_free (self);
}


static gboolean gxml_parser_real_read_element_property (GXmlParser* self, GXmlDomNode* parent, GXmlDomNode** element, GError** error) {
	GXmlDomNode* _vala_element = NULL;
	gboolean result = FALSE;
	GXmlDomNode* _tmp0_ = NULL;
	GXmlDomNode* _tmp1_ = NULL;
	GList* _tmp2_ = NULL;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (parent != NULL, FALSE);
	_g_object_unref0 (_vala_element);
	_vala_element = NULL;
	_tmp0_ = parent;
	if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, GXML_TYPE_GOM_OBJECT)) {
		result = FALSE;
		if (element) {
			*element = _vala_element;
		} else {
			_g_object_unref0 (_vala_element);
		}
		return result;
	}
	_tmp1_ = parent;
	_tmp2_ = gxml_gom_object_get_property_element_list (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, GXML_TYPE_GOM_OBJECT) ? ((GXmlGomObject*) _tmp1_) : NULL);
	{
		GList* pspec_collection = NULL;
		GList* pspec_it = NULL;
		pspec_collection = _tmp2_;
		for (pspec_it = pspec_collection; pspec_it != NULL; pspec_it = pspec_it->next) {
			GParamSpec* _tmp3_ = NULL;
			GParamSpec* pspec = NULL;
			_tmp3_ = _g_param_spec_ref0 ((GParamSpec*) pspec_it->data);
			pspec = _tmp3_;
			{
				GParamSpec* _tmp4_ = NULL;
				GType _tmp5_ = 0UL;
				gboolean _tmp6_ = FALSE;
				GXmlDomElement* obj = NULL;
				GParamSpec* _tmp7_ = NULL;
				GType _tmp8_ = 0UL;
				GXmlDomNode* _tmp9_ = NULL;
				GXmlDomNode* _tmp10_ = NULL;
				GXmlDomDocument* _tmp11_ = NULL;
				GXmlDomDocument* _tmp12_ = NULL;
				GObject* _tmp13_ = NULL;
				GObject* _tmp14_ = NULL;
				GXmlDomElement* _tmp15_ = NULL;
				GXmlDomElement* _tmp16_ = NULL;
				gchar* _tmp17_ = NULL;
				gchar* _tmp18_ = NULL;
				gchar* _tmp19_ = NULL;
				gchar* _tmp20_ = NULL;
				gchar* _tmp21_ = NULL;
				gchar* _tmp22_ = NULL;
				gchar* _tmp23_ = NULL;
				gchar* _tmp24_ = NULL;
				gchar* _tmp25_ = NULL;
				gboolean _tmp26_ = FALSE;
				_tmp4_ = pspec;
				_tmp5_ = _tmp4_->value_type;
				_tmp6_ = g_type_is_a (_tmp5_, GXML_TYPE_GOM_COLLECTION);
				if (_tmp6_) {
					_g_param_spec_unref0 (pspec);
					continue;
				}
				_tmp7_ = pspec;
				_tmp8_ = _tmp7_->value_type;
				_tmp9_ = gxml_parser_get_node (self);
				_tmp10_ = _tmp9_;
				_tmp11_ = gxml_dom_node_get_owner_document (_tmp10_);
				_tmp12_ = _tmp11_;
				_tmp13_ = g_object_new (_tmp8_, "owner-document", _tmp12_, NULL);
				_tmp14_ = G_IS_INITIALLY_UNOWNED (_tmp13_) ? g_object_ref_sink (_tmp13_) : _tmp13_;
				_tmp15_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp14_, GXML_TYPE_DOM_ELEMENT) ? ((GXmlDomElement*) _tmp14_) : NULL;
				if (_tmp15_ == NULL) {
					_g_object_unref0 (_tmp14_);
				}
				obj = _tmp15_;
				_tmp16_ = obj;
				_tmp17_ = gxml_dom_element_get_local_name (_tmp16_);
				_tmp18_ = _tmp17_;
				_tmp19_ = _tmp18_;
				_tmp20_ = g_utf8_strdown (_tmp19_, (gssize) -1);
				_tmp21_ = _tmp20_;
				_tmp22_ = gxml_parser_current_node_name (self);
				_tmp23_ = _tmp22_;
				_tmp24_ = g_utf8_strdown (_tmp23_, (gssize) -1);
				_tmp25_ = _tmp24_;
				_tmp26_ = g_strcmp0 (_tmp21_, _tmp25_) == 0;
				_g_free0 (_tmp25_);
				_g_free0 (_tmp23_);
				_g_free0 (_tmp21_);
				_g_free0 (_tmp19_);
				if (_tmp26_) {
					GValue v = {0};
					GParamSpec* _tmp27_ = NULL;
					GType _tmp28_ = 0UL;
					GValue _tmp29_ = {0};
					GXmlDomNode* _tmp30_ = NULL;
					GXmlDomElement* _tmp31_ = NULL;
					GXmlDomNode* _tmp32_ = NULL;
					GXmlDomNode* _tmp33_ = NULL;
					GXmlDomElement* _tmp35_ = NULL;
					GXmlDomNode* _tmp36_ = NULL;
					GParamSpec* _tmp37_ = NULL;
					const gchar* _tmp38_ = NULL;
					GValue _tmp39_ = {0};
					GXmlDomElement* _tmp40_ = NULL;
					GXmlDomElement* _tmp42_ = NULL;
					GXmlDomNode* _tmp43_ = NULL;
					_tmp27_ = pspec;
					_tmp28_ = _tmp27_->value_type;
					g_value_init (&_tmp29_, _tmp28_);
					v = _tmp29_;
					_tmp30_ = parent;
					_tmp31_ = obj;
					_tmp32_ = gxml_dom_node_append_child (_tmp30_, G_TYPE_CHECK_INSTANCE_TYPE (_tmp31_, GXML_TYPE_DOM_NODE) ? ((GXmlDomNode*) _tmp31_) : NULL, &_inner_error_);
					_tmp33_ = _tmp32_;
					_g_object_unref0 (_tmp33_);
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						gboolean _tmp34_ = FALSE;
						g_propagate_error (error, _inner_error_);
						G_IS_VALUE (&v) ? (g_value_unset (&v), NULL) : NULL;
						_g_object_unref0 (obj);
						_g_param_spec_unref0 (pspec);
						__g_list_free__g_param_spec_unref0_0 (pspec_collection);
						return _tmp34_;
					}
					_tmp35_ = obj;
					g_value_set_object (&v, (GObject*) _tmp35_);
					_tmp36_ = parent;
					_tmp37_ = pspec;
					_tmp38_ = _tmp37_->name;
					_tmp39_ = v;
					g_object_set_property ((GObject*) _tmp36_, _tmp38_, &_tmp39_);
					_tmp40_ = obj;
					gxml_parser_read_element (self, G_TYPE_CHECK_INSTANCE_TYPE (_tmp40_, GXML_TYPE_DOM_ELEMENT) ? ((GXmlDomElement*) _tmp40_) : NULL, &_inner_error_);
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						gboolean _tmp41_ = FALSE;
						g_propagate_error (error, _inner_error_);
						G_IS_VALUE (&v) ? (g_value_unset (&v), NULL) : NULL;
						_g_object_unref0 (obj);
						_g_param_spec_unref0 (pspec);
						__g_list_free__g_param_spec_unref0_0 (pspec_collection);
						return _tmp41_;
					}
					_tmp42_ = obj;
					_tmp43_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp42_, GXML_TYPE_DOM_NODE) ? ((GXmlDomNode*) _tmp42_) : NULL);
					_g_object_unref0 (_vala_element);
					_vala_element = _tmp43_;
					result = TRUE;
					G_IS_VALUE (&v) ? (g_value_unset (&v), NULL) : NULL;
					_g_object_unref0 (obj);
					_g_param_spec_unref0 (pspec);
					__g_list_free__g_param_spec_unref0_0 (pspec_collection);
					if (element) {
						*element = _vala_element;
					} else {
						_g_object_unref0 (_vala_element);
					}
					return result;
				}
				_g_object_unref0 (obj);
				_g_param_spec_unref0 (pspec);
			}
		}
		__g_list_free__g_param_spec_unref0_0 (pspec_collection);
	}
	result = FALSE;
	if (element) {
		*element = _vala_element;
	} else {
		_g_object_unref0 (_vala_element);
	}
	return result;
}


gboolean gxml_parser_read_element_property (GXmlParser* self, GXmlDomNode* parent, GXmlDomNode** element, GError** error) {
	g_return_val_if_fail (self != NULL, FALSE);
	return GXML_PARSER_GET_INTERFACE (self)->read_element_property (self, parent, element, error);
}


/**
   * Creates a new {@link DomElement} and append it as a child of parent: for current
   * read node, only if parent: have a property as {@link GomCollection} type and current
   * node have same local name as collection {@link GomCollection.items_name}
   *
   * Returns: true if element is set to a new object, it is set as a child of parent:
   * and has been added to a parent:'s collection property.
   */
static gboolean gxml_parser_real_add_element_collection (GXmlParser* self, GXmlDomNode* parent, GXmlDomNode** element, GError** error) {
	GXmlDomNode* _vala_element = NULL;
	gboolean result = FALSE;
	GXmlDomNode* _tmp0_ = NULL;
	GXmlDomNode* _tmp1_ = NULL;
	GList* _tmp2_ = NULL;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (parent != NULL, FALSE);
	_g_object_unref0 (_vala_element);
	_vala_element = NULL;
	_tmp0_ = parent;
	if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, GXML_TYPE_GOM_OBJECT)) {
		result = FALSE;
		if (element) {
			*element = _vala_element;
		} else {
			_g_object_unref0 (_vala_element);
		}
		return result;
	}
	_tmp1_ = parent;
	_tmp2_ = gxml_gom_object_get_property_element_list (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, GXML_TYPE_GOM_OBJECT) ? ((GXmlGomObject*) _tmp1_) : NULL);
	{
		GList* pspec_collection = NULL;
		GList* pspec_it = NULL;
		pspec_collection = _tmp2_;
		for (pspec_it = pspec_collection; pspec_it != NULL; pspec_it = pspec_it->next) {
			GParamSpec* _tmp3_ = NULL;
			GParamSpec* pspec = NULL;
			_tmp3_ = _g_param_spec_ref0 ((GParamSpec*) pspec_it->data);
			pspec = _tmp3_;
			{
				GParamSpec* _tmp4_ = NULL;
				GType _tmp5_ = 0UL;
				gboolean _tmp6_ = FALSE;
				GXmlGomCollection* col = NULL;
				GValue vc = {0};
				GParamSpec* _tmp7_ = NULL;
				GType _tmp8_ = 0UL;
				GValue _tmp9_ = {0};
				GXmlDomNode* _tmp10_ = NULL;
				GParamSpec* _tmp11_ = NULL;
				const gchar* _tmp12_ = NULL;
				GObject* _tmp13_ = NULL;
				GXmlGomCollection* _tmp14_ = NULL;
				GXmlGomCollection* _tmp15_ = NULL;
				gboolean _tmp27_ = FALSE;
				GXmlGomCollection* _tmp28_ = NULL;
				GType _tmp29_ = 0UL;
				GType _tmp30_ = 0UL;
				gboolean _tmp38_ = FALSE;
				GXmlGomCollection* _tmp39_ = NULL;
				const gchar* _tmp40_ = NULL;
				const gchar* _tmp41_ = NULL;
				gboolean _tmp48_ = FALSE;
				GXmlGomCollection* _tmp49_ = NULL;
				GXmlGomElement* _tmp50_ = NULL;
				GXmlGomElement* _tmp51_ = NULL;
				GXmlGomCollection* _tmp58_ = NULL;
				const gchar* _tmp59_ = NULL;
				const gchar* _tmp60_ = NULL;
				gchar* _tmp61_ = NULL;
				gchar* _tmp62_ = NULL;
				gchar* _tmp63_ = NULL;
				gchar* _tmp64_ = NULL;
				gchar* _tmp65_ = NULL;
				gchar* _tmp66_ = NULL;
				gboolean _tmp67_ = FALSE;
				_tmp4_ = pspec;
				_tmp5_ = _tmp4_->value_type;
				_tmp6_ = g_type_is_a (_tmp5_, GXML_TYPE_GOM_COLLECTION);
				if (!_tmp6_) {
					_g_param_spec_unref0 (pspec);
					continue;
				}
				_tmp7_ = pspec;
				_tmp8_ = _tmp7_->value_type;
				g_value_init (&_tmp9_, _tmp8_);
				vc = _tmp9_;
				_tmp10_ = parent;
				_tmp11_ = pspec;
				_tmp12_ = _tmp11_->name;
				g_object_get_property ((GObject*) _tmp10_, _tmp12_, &vc);
				_tmp13_ = g_value_get_object (&vc);
				_tmp14_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, GXML_TYPE_GOM_COLLECTION) ? ((GXmlGomCollection*) _tmp13_) : NULL);
				_g_object_unref0 (col);
				col = _tmp14_;
				_tmp15_ = col;
				if (_tmp15_ == NULL) {
					GParamSpec* _tmp16_ = NULL;
					GType _tmp17_ = 0UL;
					GXmlDomNode* _tmp18_ = NULL;
					GObject* _tmp19_ = NULL;
					GObject* _tmp20_ = NULL;
					GXmlGomCollection* _tmp21_ = NULL;
					GXmlGomCollection* _tmp22_ = NULL;
					GXmlDomNode* _tmp23_ = NULL;
					GParamSpec* _tmp24_ = NULL;
					const gchar* _tmp25_ = NULL;
					GValue _tmp26_ = {0};
					_tmp16_ = pspec;
					_tmp17_ = _tmp16_->value_type;
					_tmp18_ = parent;
					_tmp19_ = g_object_new (_tmp17_, "element", _tmp18_, NULL);
					_tmp20_ = G_IS_INITIALLY_UNOWNED (_tmp19_) ? g_object_ref_sink (_tmp19_) : _tmp19_;
					_tmp21_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp20_, GXML_TYPE_GOM_COLLECTION) ? ((GXmlGomCollection*) _tmp20_) : NULL;
					if (_tmp21_ == NULL) {
						_g_object_unref0 (_tmp20_);
					}
					_g_object_unref0 (col);
					col = _tmp21_;
					_tmp22_ = col;
					g_value_set_object (&vc, (GObject*) _tmp22_);
					_tmp23_ = parent;
					_tmp24_ = pspec;
					_tmp25_ = _tmp24_->name;
					_tmp26_ = vc;
					g_object_set_property ((GObject*) _tmp23_, _tmp25_, &_tmp26_);
				}
				_tmp28_ = col;
				_tmp29_ = gxml_gom_collection_get_items_type (_tmp28_);
				_tmp30_ = _tmp29_;
				if (_tmp30_ == G_TYPE_INVALID) {
					_tmp27_ = TRUE;
				} else {
					GXmlGomCollection* _tmp31_ = NULL;
					GType _tmp32_ = 0UL;
					GType _tmp33_ = 0UL;
					gboolean _tmp34_ = FALSE;
					_tmp31_ = col;
					_tmp32_ = gxml_gom_collection_get_items_type (_tmp31_);
					_tmp33_ = _tmp32_;
					_tmp34_ = g_type_is_a (_tmp33_, GXML_TYPE_GOM_OBJECT);
					_tmp27_ = !_tmp34_;
				}
				if (_tmp27_) {
					const gchar* _tmp35_ = NULL;
					GError* _tmp36_ = NULL;
					gboolean _tmp37_ = FALSE;
					_tmp35_ = _ ("Invalid object type set to Collection");
					_tmp36_ = g_error_new_literal (GXML_DOM_ERROR, GXML_DOM_ERROR_INVALID_NODE_TYPE_ERROR, _tmp35_);
					_inner_error_ = _tmp36_;
					g_propagate_error (error, _inner_error_);
					G_IS_VALUE (&vc) ? (g_value_unset (&vc), NULL) : NULL;
					_g_object_unref0 (col);
					_g_param_spec_unref0 (pspec);
					__g_list_free__g_param_spec_unref0_0 (pspec_collection);
					return _tmp37_;
				}
				_tmp39_ = col;
				_tmp40_ = gxml_gom_collection_get_items_name (_tmp39_);
				_tmp41_ = _tmp40_;
				if (g_strcmp0 (_tmp41_, "") == 0) {
					_tmp38_ = TRUE;
				} else {
					GXmlGomCollection* _tmp42_ = NULL;
					const gchar* _tmp43_ = NULL;
					const gchar* _tmp44_ = NULL;
					_tmp42_ = col;
					_tmp43_ = gxml_gom_collection_get_items_name (_tmp42_);
					_tmp44_ = _tmp43_;
					_tmp38_ = _tmp44_ == NULL;
				}
				if (_tmp38_) {
					const gchar* _tmp45_ = NULL;
					GError* _tmp46_ = NULL;
					gboolean _tmp47_ = FALSE;
					_tmp45_ = _ ("Invalid DomElement name for objects in Collection");
					_tmp46_ = g_error_new_literal (GXML_DOM_ERROR, GXML_DOM_ERROR_INVALID_NODE_TYPE_ERROR, _tmp45_);
					_inner_error_ = _tmp46_;
					g_propagate_error (error, _inner_error_);
					G_IS_VALUE (&vc) ? (g_value_unset (&vc), NULL) : NULL;
					_g_object_unref0 (col);
					_g_param_spec_unref0 (pspec);
					__g_list_free__g_param_spec_unref0_0 (pspec_collection);
					return _tmp47_;
				}
				_tmp49_ = col;
				_tmp50_ = gxml_gom_collection_get_element (_tmp49_);
				_tmp51_ = _tmp50_;
				if (_tmp51_ == NULL) {
					_tmp48_ = TRUE;
				} else {
					GXmlGomCollection* _tmp52_ = NULL;
					GXmlGomElement* _tmp53_ = NULL;
					GXmlGomElement* _tmp54_ = NULL;
					_tmp52_ = col;
					_tmp53_ = gxml_gom_collection_get_element (_tmp52_);
					_tmp54_ = _tmp53_;
					_tmp48_ = !G_TYPE_CHECK_INSTANCE_TYPE (_tmp54_, GXML_TYPE_GOM_ELEMENT);
				}
				if (_tmp48_) {
					const gchar* _tmp55_ = NULL;
					GError* _tmp56_ = NULL;
					gboolean _tmp57_ = FALSE;
					_tmp55_ = _ ("Invalid Element set to Collection");
					_tmp56_ = g_error_new_literal (GXML_DOM_ERROR, GXML_DOM_ERROR_INVALID_NODE_TYPE_ERROR, _tmp55_);
					_inner_error_ = _tmp56_;
					g_propagate_error (error, _inner_error_);
					G_IS_VALUE (&vc) ? (g_value_unset (&vc), NULL) : NULL;
					_g_object_unref0 (col);
					_g_param_spec_unref0 (pspec);
					__g_list_free__g_param_spec_unref0_0 (pspec_collection);
					return _tmp57_;
				}
				_tmp58_ = col;
				_tmp59_ = gxml_gom_collection_get_items_name (_tmp58_);
				_tmp60_ = _tmp59_;
				_tmp61_ = g_utf8_strdown (_tmp60_, (gssize) -1);
				_tmp62_ = _tmp61_;
				_tmp63_ = gxml_parser_current_node_name (self);
				_tmp64_ = _tmp63_;
				_tmp65_ = g_utf8_strdown (_tmp64_, (gssize) -1);
				_tmp66_ = _tmp65_;
				_tmp67_ = g_strcmp0 (_tmp62_, _tmp66_) == 0;
				_g_free0 (_tmp66_);
				_g_free0 (_tmp64_);
				_g_free0 (_tmp62_);
				if (_tmp67_) {
					GXmlDomNode* _tmp68_ = NULL;
					GXmlDomDocument* _tmp69_ = NULL;
					GXmlDomDocument* _tmp70_ = NULL;
					GXmlDomElement* obj = NULL;
					GXmlGomCollection* _tmp74_ = NULL;
					GType _tmp75_ = 0UL;
					GType _tmp76_ = 0UL;
					GXmlDomNode* _tmp77_ = NULL;
					GXmlDomNode* _tmp78_ = NULL;
					GXmlDomDocument* _tmp79_ = NULL;
					GXmlDomDocument* _tmp80_ = NULL;
					GObject* _tmp81_ = NULL;
					GObject* _tmp82_ = NULL;
					GXmlDomElement* _tmp83_ = NULL;
					GXmlDomNode* _tmp84_ = NULL;
					GXmlDomElement* _tmp85_ = NULL;
					GXmlDomNode* _tmp86_ = NULL;
					GXmlDomNode* _tmp87_ = NULL;
					GXmlDomElement* _tmp89_ = NULL;
					GXmlGomCollection* _tmp91_ = NULL;
					GXmlDomElement* _tmp92_ = NULL;
					GXmlDomElement* _tmp94_ = NULL;
					GXmlDomNode* _tmp95_ = NULL;
					_tmp68_ = parent;
					_tmp69_ = gxml_dom_node_get_owner_document (_tmp68_);
					_tmp70_ = _tmp69_;
					if (_tmp70_ == NULL) {
						const gchar* _tmp71_ = NULL;
						GError* _tmp72_ = NULL;
						gboolean _tmp73_ = FALSE;
						_tmp71_ = _ ("No document is set to node");
						_tmp72_ = g_error_new_literal (GXML_DOM_ERROR, GXML_DOM_ERROR_HIERARCHY_REQUEST_ERROR, _tmp71_);
						_inner_error_ = _tmp72_;
						g_propagate_error (error, _inner_error_);
						G_IS_VALUE (&vc) ? (g_value_unset (&vc), NULL) : NULL;
						_g_object_unref0 (col);
						_g_param_spec_unref0 (pspec);
						__g_list_free__g_param_spec_unref0_0 (pspec_collection);
						return _tmp73_;
					}
					_tmp74_ = col;
					_tmp75_ = gxml_gom_collection_get_items_type (_tmp74_);
					_tmp76_ = _tmp75_;
					_tmp77_ = gxml_parser_get_node (self);
					_tmp78_ = _tmp77_;
					_tmp79_ = gxml_dom_node_get_owner_document (_tmp78_);
					_tmp80_ = _tmp79_;
					_tmp81_ = g_object_new (_tmp76_, "owner-document", _tmp80_, NULL);
					_tmp82_ = G_IS_INITIALLY_UNOWNED (_tmp81_) ? g_object_ref_sink (_tmp81_) : _tmp81_;
					_tmp83_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp82_, GXML_TYPE_DOM_ELEMENT) ? ((GXmlDomElement*) _tmp82_) : NULL;
					if (_tmp83_ == NULL) {
						_g_object_unref0 (_tmp82_);
					}
					obj = _tmp83_;
					_tmp84_ = parent;
					_tmp85_ = obj;
					_tmp86_ = gxml_dom_node_append_child (_tmp84_, (GXmlDomNode*) _tmp85_, &_inner_error_);
					_tmp87_ = _tmp86_;
					_g_object_unref0 (_tmp87_);
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						gboolean _tmp88_ = FALSE;
						g_propagate_error (error, _inner_error_);
						_g_object_unref0 (obj);
						G_IS_VALUE (&vc) ? (g_value_unset (&vc), NULL) : NULL;
						_g_object_unref0 (col);
						_g_param_spec_unref0 (pspec);
						__g_list_free__g_param_spec_unref0_0 (pspec_collection);
						return _tmp88_;
					}
					_tmp89_ = obj;
					gxml_parser_read_element (self, G_TYPE_CHECK_INSTANCE_TYPE (_tmp89_, GXML_TYPE_DOM_ELEMENT) ? ((GXmlDomElement*) _tmp89_) : NULL, &_inner_error_);
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						gboolean _tmp90_ = FALSE;
						g_propagate_error (error, _inner_error_);
						_g_object_unref0 (obj);
						G_IS_VALUE (&vc) ? (g_value_unset (&vc), NULL) : NULL;
						_g_object_unref0 (col);
						_g_param_spec_unref0 (pspec);
						__g_list_free__g_param_spec_unref0_0 (pspec_collection);
						return _tmp90_;
					}
					_tmp91_ = col;
					_tmp92_ = obj;
					gxml_gom_collection_append (_tmp91_, _tmp92_, &_inner_error_);
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						gboolean _tmp93_ = FALSE;
						g_propagate_error (error, _inner_error_);
						_g_object_unref0 (obj);
						G_IS_VALUE (&vc) ? (g_value_unset (&vc), NULL) : NULL;
						_g_object_unref0 (col);
						_g_param_spec_unref0 (pspec);
						__g_list_free__g_param_spec_unref0_0 (pspec_collection);
						return _tmp93_;
					}
					_tmp94_ = obj;
					_tmp95_ = _g_object_ref0 ((GXmlDomNode*) _tmp94_);
					_g_object_unref0 (_vala_element);
					_vala_element = _tmp95_;
					result = TRUE;
					_g_object_unref0 (obj);
					G_IS_VALUE (&vc) ? (g_value_unset (&vc), NULL) : NULL;
					_g_object_unref0 (col);
					_g_param_spec_unref0 (pspec);
					__g_list_free__g_param_spec_unref0_0 (pspec_collection);
					if (element) {
						*element = _vala_element;
					} else {
						_g_object_unref0 (_vala_element);
					}
					return result;
				}
				G_IS_VALUE (&vc) ? (g_value_unset (&vc), NULL) : NULL;
				_g_object_unref0 (col);
				_g_param_spec_unref0 (pspec);
			}
		}
		__g_list_free__g_param_spec_unref0_0 (pspec_collection);
	}
	result = FALSE;
	if (element) {
		*element = _vala_element;
	} else {
		_g_object_unref0 (_vala_element);
	}
	return result;
}


gboolean gxml_parser_add_element_collection (GXmlParser* self, GXmlDomNode* parent, GXmlDomNode** element, GError** error) {
	g_return_val_if_fail (self != NULL, FALSE);
	return GXML_PARSER_GET_INTERFACE (self)->add_element_collection (self, parent, element, error);
}


/**
   * Read all childs node feed by stream.
   */
void gxml_parser_read_child_nodes_stream (GXmlParser* self, GInputStream* istream, GCancellable* cancellable, GError** error) {
	g_return_if_fail (self != NULL);
	GXML_PARSER_GET_INTERFACE (self)->read_child_nodes_stream (self, istream, cancellable, error);
}


/**
   * Read childs nodes from string
   */
static guint8* string_get_data (const gchar* self, int* result_length1) {
	guint8* result;
	guint8* res = NULL;
	gint res_length1 = 0;
	gint _res_size_ = 0;
	gint _tmp0_ = 0;
	gint _tmp1_ = 0;
	gint _tmp2_ = 0;
	guint8* _tmp3_ = NULL;
	gint _tmp3__length1 = 0;
	guint8* _tmp4_ = NULL;
	gint _tmp4__length1 = 0;
	g_return_val_if_fail (self != NULL, NULL);
	res = (guint8*) self;
	res_length1 = -1;
	_res_size_ = res_length1;
	_tmp0_ = strlen (self);
	_tmp1_ = _tmp0_;
	res_length1 = (gint) _tmp1_;
	_tmp2_ = res_length1;
	_tmp3_ = res;
	_tmp3__length1 = res_length1;
	_tmp4_ = _tmp3_;
	_tmp4__length1 = _tmp3__length1;
	if (result_length1) {
		*result_length1 = _tmp4__length1;
	}
	result = _tmp4_;
	return result;
}


static guint8* _vala_array_dup6 (guint8* self, int length) {
	return g_memdup (self, length * sizeof (guint8));
}


static void gxml_parser_real_read_child_nodes_string (GXmlParser* self, const gchar* str, GCancellable* cancellable, GError** error) {
	const gchar* _tmp0_ = NULL;
	GMemoryInputStream* stream = NULL;
	const gchar* _tmp3_ = NULL;
	guint8* _tmp4_ = NULL;
	gint _tmp4__length1 = 0;
	guint8* _tmp5_ = NULL;
	gint _tmp5__length1 = 0;
	guint8* _tmp6_ = NULL;
	gint _tmp6__length1 = 0;
	GDestroyNotify _tmp7_ = NULL;
	GMemoryInputStream* _tmp8_ = NULL;
	GCancellable* _tmp9_ = NULL;
	GError * _inner_error_ = NULL;
	g_return_if_fail (str != NULL);
	_tmp0_ = str;
	if (g_strcmp0 (_tmp0_, "") == 0) {
		const gchar* _tmp1_ = NULL;
		GError* _tmp2_ = NULL;
		_tmp1_ = _ ("Invalid document string, it is empty or is not allowed");
		_tmp2_ = g_error_new_literal (GXML_PARSER_ERROR, GXML_PARSER_ERROR_INVALID_DATA_ERROR, _tmp1_);
		_inner_error_ = _tmp2_;
		g_propagate_error (error, _inner_error_);
		return;
	}
	_tmp3_ = str;
	_tmp4_ = string_get_data (_tmp3_, &_tmp4__length1);
	_tmp5_ = _tmp4_;
	_tmp5__length1 = _tmp4__length1;
	_tmp6_ = (_tmp5_ != NULL) ? _vala_array_dup6 (_tmp5_, _tmp5__length1) : ((gpointer) _tmp5_);
	_tmp6__length1 = _tmp5__length1;
	_tmp7_ = g_free;
	_tmp8_ = (GMemoryInputStream*) g_memory_input_stream_new_from_data (_tmp6_, _tmp6__length1, _tmp7_);
	stream = _tmp8_;
	_tmp9_ = cancellable;
	gxml_parser_read_child_nodes_stream (self, (GInputStream*) stream, _tmp9_, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		g_propagate_error (error, _inner_error_);
		_g_object_unref0 (stream);
		return;
	}
	_g_object_unref0 (stream);
}


void gxml_parser_read_child_nodes_string (GXmlParser* self, const gchar* str, GCancellable* cancellable, GError** error) {
	g_return_if_fail (self != NULL);
	GXML_PARSER_GET_INTERFACE (self)->read_child_nodes_string (self, str, cancellable, error);
}


/**
   * Reads all child nodes as string
   */
gchar* gxml_parser_read_unparsed (GXmlParser* self, GError** error) {
	g_return_val_if_fail (self != NULL, NULL);
	return GXML_PARSER_GET_INTERFACE (self)->read_unparsed (self, error);
}


/**
   * Use parser to go to next parsed node.
   */
gboolean gxml_parser_move_next_node (GXmlParser* self, GError** error) {
	g_return_val_if_fail (self != NULL, FALSE);
	return GXML_PARSER_GET_INTERFACE (self)->move_next_node (self, error);
}


/**
   * Check if current node has childs.
   */
gboolean gxml_parser_current_is_empty_element (GXmlParser* self) {
	g_return_val_if_fail (self != NULL, FALSE);
	return GXML_PARSER_GET_INTERFACE (self)->current_is_empty_element (self);
}


/**
   * Check if current node found by parser, is a {@link DomElement}
   */
gboolean gxml_parser_current_is_element (GXmlParser* self) {
	g_return_val_if_fail (self != NULL, FALSE);
	return GXML_PARSER_GET_INTERFACE (self)->current_is_element (self);
}


/**
   * Check if current node found by parser, is a {@link DomDocument}
   */
gboolean gxml_parser_current_is_document (GXmlParser* self) {
	g_return_val_if_fail (self != NULL, FALSE);
	return GXML_PARSER_GET_INTERFACE (self)->current_is_document (self);
}


/**
   * Returns current node's local name, found by parser.
   */
gchar* gxml_parser_current_node_name (GXmlParser* self) {
	g_return_val_if_fail (self != NULL, NULL);
	return GXML_PARSER_GET_INTERFACE (self)->current_node_name (self);
}


/**
   * Creates a new {@link DomElement} and append it as a child of parent.
   */
GXmlDomElement* gxml_parser_create_element (GXmlParser* self, GXmlDomNode* parent, GError** error) {
	g_return_val_if_fail (self != NULL, NULL);
	return GXML_PARSER_GET_INTERFACE (self)->create_element (self, parent, error);
}


/**
   * Reads an element's attributes, setting its values and taking care about their
   * namespaces.
   */
void gxml_parser_read_element (GXmlParser* self, GXmlDomElement* element, GError** error) {
	g_return_if_fail (self != NULL);
	GXML_PARSER_GET_INTERFACE (self)->read_element (self, element, error);
}


gboolean gxml_parser_get_backup (GXmlParser* self) {
	g_return_val_if_fail (self != NULL, FALSE);
	return GXML_PARSER_GET_INTERFACE (self)->get_backup (self);
}


void gxml_parser_set_backup (GXmlParser* self, gboolean value) {
	g_return_if_fail (self != NULL);
	GXML_PARSER_GET_INTERFACE (self)->set_backup (self, value);
}


gboolean gxml_parser_get_indent (GXmlParser* self) {
	g_return_val_if_fail (self != NULL, FALSE);
	return GXML_PARSER_GET_INTERFACE (self)->get_indent (self);
}


void gxml_parser_set_indent (GXmlParser* self, gboolean value) {
	g_return_if_fail (self != NULL);
	GXML_PARSER_GET_INTERFACE (self)->set_indent (self, value);
}


GXmlDomNode* gxml_parser_get_node (GXmlParser* self) {
	g_return_val_if_fail (self != NULL, NULL);
	return GXML_PARSER_GET_INTERFACE (self)->get_node (self);
}


static void gxml_parser_base_init (GXmlParserIface * iface) {
	static gboolean initialized = FALSE;
	if (!initialized) {
		initialized = TRUE;
		/**
		   * Controls if, when writing to a file, a backup should
		   * be created.
		   */
		g_object_interface_install_property (iface, g_param_spec_boolean ("backup", "backup", "backup", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
		/**
		   * Controls if, when writing, identation should be used.
		   */
		g_object_interface_install_property (iface, g_param_spec_boolean ("indent", "indent", "indent", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
		/**
		   * A {@link GXml.DomDocument} to read to or write from
		   */
		g_object_interface_install_property (iface, g_param_spec_object ("node", "node", "node", GXML_TYPE_DOM_NODE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
		iface->write_file = gxml_parser_real_write_file;
		iface->write_file_async = gxml_parser_real_write_file_async;
		iface->write_file_finish = gxml_parser_real_write_file_finish;
		iface->read_file = gxml_parser_real_read_file;
		iface->read_file_async = gxml_parser_real_read_file_async;
		iface->read_file_finish = gxml_parser_real_read_file_finish;
		iface->read_child_nodes = gxml_parser_real_read_child_nodes;
		iface->read_child_nodes_async = gxml_parser_real_read_child_nodes_async;
		iface->read_child_nodes_finish = gxml_parser_real_read_child_nodes_finish;
		iface->read_child_element = gxml_parser_real_read_child_element;
		iface->read_element_property = gxml_parser_real_read_element_property;
		iface->add_element_collection = gxml_parser_real_add_element_collection;
		iface->read_child_nodes_string = gxml_parser_real_read_child_nodes_string;
	}
}


/**
 * XML parser engine for {@link DomDocument} implementations.
 */
GType gxml_parser_get_type (void) {
	static volatile gsize gxml_parser_type_id__volatile = 0;
	if (g_once_init_enter (&gxml_parser_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GXmlParserIface), (GBaseInitFunc) gxml_parser_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
		GType gxml_parser_type_id;
		gxml_parser_type_id = g_type_register_static (G_TYPE_INTERFACE, "GXmlParser", &g_define_type_info, 0);
		g_type_interface_add_prerequisite (gxml_parser_type_id, G_TYPE_OBJECT);
		g_once_init_leave (&gxml_parser_type_id__volatile, gxml_parser_type_id);
	}
	return gxml_parser_type_id__volatile;
}



