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

/* -*- Mode: vala; indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 2 -*- */
/* XParser.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 <libxml/xmlreader.h>
#include <libxml/xmlwriter.h>
#include <glib/gi18n-lib.h>
#include <libxml/tree.h>
#include <libxml/parser.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 GXML_TYPE_XPARSER (gxml_xparser_get_type ())
#define GXML_XPARSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_XPARSER, GXmlXParser))
#define GXML_XPARSER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_XPARSER, GXmlXParserClass))
#define GXML_IS_XPARSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_XPARSER))
#define GXML_IS_XPARSER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_XPARSER))
#define GXML_XPARSER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_XPARSER, GXmlXParserClass))

typedef struct _GXmlXParser GXmlXParser;
typedef struct _GXmlXParserClass GXmlXParserClass;
typedef struct _GXmlXParserPrivate GXmlXParserPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _xmlFreeTextReader0(var) ((var == NULL) ? NULL : (var = (xmlFreeTextReader (var), NULL)))
#define _xmlFreeTextWriter0(var) ((var == NULL) ? NULL : (var = (xmlFreeTextWriter (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _GxmlXparserWriteStreamAsyncData GxmlXparserWriteStreamAsyncData;
typedef struct _GxmlXparserCreateStreamAsyncData GxmlXparserCreateStreamAsyncData;
typedef struct _GxmlXparserWriteStringAsyncData GxmlXparserWriteStringAsyncData;
typedef struct _GxmlXparserReadStringAsyncData GxmlXparserReadStringAsyncData;
typedef struct _GxmlXparserReadStreamAsyncData GxmlXparserReadStreamAsyncData;

#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_DOCUMENT (gxml_gom_document_get_type ())
#define GXML_GOM_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_GOM_DOCUMENT, GXmlGomDocument))
#define GXML_GOM_DOCUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_GOM_DOCUMENT, GXmlGomDocumentClass))
#define GXML_IS_GOM_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_GOM_DOCUMENT))
#define GXML_IS_GOM_DOCUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_GOM_DOCUMENT))
#define GXML_GOM_DOCUMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_GOM_DOCUMENT, GXmlGomDocumentClass))

typedef struct _GXmlGomDocument GXmlGomDocument;
typedef struct _GXmlGomDocumentClass GXmlGomDocumentClass;

#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;
typedef struct _GxmlXparserReadChildNodesStreamAsyncData GxmlXparserReadChildNodesStreamAsyncData;

#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 _xmlBufferFree0(var) ((var == NULL) ? NULL : (var = (xmlBufferFree (var), NULL)))
#define _g_match_info_unref0(var) ((var == NULL) ? NULL : (var = (g_match_info_unref (var), NULL)))
#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

#define GXML_TYPE_GOM_DOCUMENT_TYPE (gxml_gom_document_type_get_type ())
#define GXML_GOM_DOCUMENT_TYPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_GOM_DOCUMENT_TYPE, GXmlGomDocumentType))
#define GXML_GOM_DOCUMENT_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXML_TYPE_GOM_DOCUMENT_TYPE, GXmlGomDocumentTypeClass))
#define GXML_IS_GOM_DOCUMENT_TYPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_GOM_DOCUMENT_TYPE))
#define GXML_IS_GOM_DOCUMENT_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXML_TYPE_GOM_DOCUMENT_TYPE))
#define GXML_GOM_DOCUMENT_TYPE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXML_TYPE_GOM_DOCUMENT_TYPE, GXmlGomDocumentTypeClass))

typedef struct _GXmlGomDocumentType GXmlGomDocumentType;
typedef struct _GXmlGomDocumentTypeClass GXmlGomDocumentTypeClass;
#define _xmlFreeDoc0(var) ((var == NULL) ? NULL : (var = (xmlFreeDoc (var), NULL)))

#define GXML_TYPE_GOM_PROPERTY (gxml_gom_property_get_type ())
#define GXML_GOM_PROPERTY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GXML_TYPE_GOM_PROPERTY, GXmlGomProperty))
#define GXML_IS_GOM_PROPERTY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GXML_TYPE_GOM_PROPERTY))
#define GXML_GOM_PROPERTY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXML_TYPE_GOM_PROPERTY, GXmlGomPropertyIface))

typedef struct _GXmlGomProperty GXmlGomProperty;
typedef struct _GXmlGomPropertyIface GXmlGomPropertyIface;
#define _g_param_spec_unref0(var) ((var == NULL) ? NULL : (var = (g_param_spec_unref (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)))
typedef struct _GxmlXparserDumpAsyncData GxmlXparserDumpAsyncData;
typedef struct _GxmlXparserStartNodeAsyncData GxmlXparserStartNodeAsyncData;

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 _GXmlXParser {
	GObject parent_instance;
	GXmlXParserPrivate * priv;
};

struct _GXmlXParserClass {
	GObjectClass parent_class;
};

struct _GXmlXParserPrivate {
	GXmlDomDocument* _document;
	GXmlDomNode* _node;
	xmlTextReader* tr;
	xmlTextWriter* tw;
	gboolean _backup;
	gboolean _indent;
};

struct _GxmlXparserWriteStreamAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	GXmlXParser* self;
	GOutputStream* stream;
	GCancellable* cancellable;
	gchar* s;
	gchar* _tmp0_;
	GMemoryInputStream* b;
	const gchar* _tmp1_;
	guint8* _tmp2_;
	gint _tmp2__length1;
	guint8* _tmp3_;
	gint _tmp3__length1;
	guint8* _tmp4_;
	gint _tmp4__length1;
	GMemoryInputStream* _tmp5_;
	GOutputStream* _tmp6_;
	GMemoryInputStream* _tmp7_;
	GOutputStream* _tmp8_;
	GError * _inner_error_;
};

struct _GxmlXparserCreateStreamAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	GXmlXParser* self;
	GCancellable* cancellable;
	GInputStream* result;
	gchar* s;
	gchar* _tmp0_;
	guint8* _tmp1_;
	gint _tmp1__length1;
	guint8* _tmp2_;
	gint _tmp2__length1;
	guint8* _tmp3_;
	gint _tmp3__length1;
	GMemoryInputStream* _tmp4_;
	GError * _inner_error_;
};

struct _GxmlXparserWriteStringAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	GXmlXParser* self;
	gchar* result;
	gchar* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	GError * _inner_error_;
};

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 ()
struct _GxmlXparserReadStringAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	GXmlXParser* self;
	gchar* str;
	GCancellable* cancellable;
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	GError* _tmp2_;
	GMemoryInputStream* stream;
	const gchar* _tmp3_;
	guint8* _tmp4_;
	gint _tmp4__length1;
	guint8* _tmp5_;
	gint _tmp5__length1;
	guint8* _tmp6_;
	gint _tmp6__length1;
	GDestroyNotify _tmp7_;
	GMemoryInputStream* _tmp8_;
	GCancellable* _tmp9_;
	GError * _inner_error_;
};

struct _GxmlXparserReadStreamAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	GXmlXParser* self;
	GInputStream* istream;
	GCancellable* cancellable;
	GMemoryOutputStream* b;
	GMemoryOutputStream* _tmp0_;
	GMemoryOutputStream* _tmp1_;
	GInputStream* _tmp2_;
	GMemoryOutputStream* _tmp3_;
	void* _tmp4_;
	void* _tmp5_;
	GMemoryOutputStream* _tmp6_;
	gsize _tmp7_;
	xmlTextReader* _tmp8_;
	GXmlDomNode* _tmp9_;
	GError * _inner_error_;
};

struct _GxmlXparserReadChildNodesStreamAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	GXmlXParser* self;
	GInputStream* istream;
	GCancellable* cancellable;
	GMemoryOutputStream* b;
	GMemoryOutputStream* _tmp0_;
	GMemoryOutputStream* _tmp1_;
	GInputStream* _tmp2_;
	GMemoryOutputStream* _tmp3_;
	void* _tmp4_;
	void* _tmp5_;
	GMemoryOutputStream* _tmp6_;
	gsize _tmp7_;
	xmlTextReader* _tmp8_;
	GXmlDomNode* _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 _GXmlGomPropertyIface {
	GTypeInterface parent_iface;
	gboolean (*validate_value) (GXmlGomProperty* self, const gchar* val);
	gchar* (*get_value) (GXmlGomProperty* self);
	void (*set_value) (GXmlGomProperty* self, const gchar* value);
};

struct _GxmlXparserDumpAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	GXmlXParser* self;
	gchar* result;
	gint size;
	xmlDoc* doc;
	xmlTextWriter* _tmp0_;
	GXmlDomNode* _tmp1_;
	xmlTextWriter* _tmp2_;
	xmlTextWriter* _tmp3_;
	gboolean _tmp4_;
	gboolean _tmp5_;
	GXmlDomNode* _tmp6_;
	GXmlDomNode* _tmp7_;
	GXmlDomNode* _tmp8_;
	GXmlDomElement* _tmp9_;
	GXmlDomElement* _tmp10_;
	GXmlDomElement* _tmp11_;
	gboolean _tmp12_;
	xmlTextWriter* _tmp13_;
	GXmlDomNode* _tmp14_;
	xmlTextWriter* _tmp15_;
	xmlTextWriter* _tmp16_;
	xmlTextWriter* _tmp17_;
	gchar* str;
	xmlDoc* _tmp18_;
	gchar* _tmp19_;
	gint _tmp20_;
	GError * _inner_error_;
};

struct _GxmlXparserStartNodeAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	GXmlXParser* self;
	GXmlDomNode* node;
	xmlTextWriter* _tmp0_;
	const gchar* _tmp1_;
	GError* _tmp2_;
	gint size;
	GXmlDomNode* _tmp3_;
	GXmlDomNode* _tmp4_;
	gchar* _tmp5_;
	gchar* _tmp6_;
	gchar* _tmp7_;
	gboolean _tmp8_;
	gchar* lpns;
	GXmlDomNode* _tmp9_;
	GXmlDomNode* _tmp10_;
	GXmlDomNode* _tmp11_;
	GXmlDomNode* _tmp12_;
	GXmlDomNode* _tmp13_;
	gchar* _tmp14_;
	gchar* _tmp15_;
	gchar* _tmp16_;
	gchar* _tmp17_;
	gchar* _tmp18_;
	gboolean _tmp19_;
	const gchar* _tmp20_;
	GXmlDomNode* _tmp21_;
	gchar* _tmp22_;
	gchar* _tmp23_;
	gchar* _tmp24_;
	gboolean _tmp25_;
	GXmlDomNode* _tmp26_;
	gchar* _tmp27_;
	gchar* _tmp28_;
	gchar* _tmp29_;
	xmlTextWriter* _tmp30_;
	GXmlDomNode* _tmp31_;
	gchar* _tmp32_;
	gchar* _tmp33_;
	gchar* _tmp34_;
	xmlTextWriter* _tmp35_;
	GXmlDomNode* _tmp36_;
	gchar* _tmp37_;
	gchar* _tmp38_;
	gchar* _tmp39_;
	GXmlDomNode* _tmp40_;
	gchar* _tmp41_;
	gchar* _tmp42_;
	gchar* _tmp43_;
	GXmlDomNode* _tmp44_;
	gchar* _tmp45_;
	gchar* _tmp46_;
	gchar* _tmp47_;
	xmlTextWriter* _tmp48_;
	GXmlDomNode* _tmp49_;
	gchar* _tmp50_;
	gchar* _tmp51_;
	gchar* _tmp52_;
	GList* lp;
	GXmlDomNode* _tmp53_;
	GList* _tmp54_;
	GList* _tmp55_;
	GList* pspec_collection;
	GList* pspec_it;
	GParamSpec* _tmp56_;
	GParamSpec* pspec;
	gchar* attname;
	GParamSpec* _tmp57_;
	const gchar* _tmp58_;
	gchar* _tmp59_;
	gchar* val;
	GParamSpec* _tmp60_;
	GType _tmp61_;
	gboolean _tmp62_;
	GValue v;
	GParamSpec* _tmp63_;
	GType _tmp64_;
	GValue _tmp65_;
	GXmlDomNode* _tmp66_;
	GParamSpec* _tmp67_;
	const gchar* _tmp68_;
	GXmlGomProperty* gp;
	GObject* _tmp69_;
	GXmlGomProperty* _tmp70_;
	GXmlGomProperty* _tmp71_;
	GXmlGomProperty* _tmp72_;
	gchar* _tmp73_;
	gchar* _tmp74_;
	GXmlDomNode* _tmp75_;
	GParamSpec* _tmp76_;
	gchar* _tmp77_;
	const gchar* _tmp78_;
	gint _tmp79_;
	xmlTextWriter* _tmp80_;
	const gchar* _tmp81_;
	const gchar* _tmp82_;
	gint _tmp83_;
	gint _tmp84_;
	xmlTextWriter* _tmp85_;
	gint _tmp86_;
	gint _tmp87_;
	xmlTextWriter* _tmp88_;
	GeeIterator* _ak_it;
	GXmlDomNode* _tmp89_;
	GXmlDomNamedNodeMap* _tmp90_;
	GXmlDomNamedNodeMap* _tmp91_;
	GXmlDomNamedNodeMap* _tmp92_;
	GeeSet* _tmp93_;
	GeeSet* _tmp94_;
	GeeSet* _tmp95_;
	GeeIterator* _tmp96_;
	GeeIterator* _tmp97_;
	GeeIterator* _tmp98_;
	gboolean _tmp99_;
	gchar* ak;
	GeeIterator* _tmp100_;
	gpointer _tmp101_;
	gchar* _vala1_v;
	GXmlDomNode* _tmp102_;
	GXmlDomNamedNodeMap* _tmp103_;
	GXmlDomNamedNodeMap* _tmp104_;
	GeeHashMap* _tmp105_;
	GeeHashMap* _tmp106_;
	const gchar* _tmp107_;
	gpointer _tmp108_;
	gchar* _tmp109_;
	const gchar* _tmp110_;
	gboolean _tmp111_;
	gchar* ns;
	GXmlDomNode* _tmp112_;
	gchar* _tmp113_;
	gchar* _tmp114_;
	const gchar* _tmp115_;
	gchar** strs;
	const gchar* _tmp116_;
	gchar** _tmp117_;
	gchar** _tmp118_;
	gint strs_length1;
	gint _strs_size_;
	gchar** _tmp119_;
	gint _tmp119__length1;
	gchar* nsp;
	gchar** _tmp120_;
	gint _tmp120__length1;
	const gchar* _tmp121_;
	gchar* _tmp122_;
	gboolean _tmp123_;
	const gchar* _tmp124_;
	const gchar* _tmp125_;
	const gchar* _tmp126_;
	GXmlDomNode* _tmp127_;
	gchar* _tmp128_;
	gchar* _tmp129_;
	gchar* _tmp130_;
	gint _tmp131_;
	xmlTextWriter* _tmp132_;
	const gchar* _tmp133_;
	const gchar* _tmp134_;
	gint _tmp135_;
	gint _tmp136_;
	xmlTextWriter* _tmp137_;
	gint _tmp138_;
	gint _tmp139_;
	xmlTextWriter* _tmp140_;
	GXmlDomNodeList* _n_list;
	GXmlDomNode* _tmp141_;
	GXmlDomNodeList* _tmp142_;
	GXmlDomNodeList* _tmp143_;
	gint _n_size;
	GXmlDomNodeList* _tmp144_;
	gint _tmp145_;
	gint _tmp146_;
	gint _n_index;
	gint _tmp147_;
	gint _tmp148_;
	gint _tmp149_;
	GXmlDomNode* n;
	GXmlDomNodeList* _tmp150_;
	gint _tmp151_;
	gpointer _tmp152_;
	GXmlDomNode* _tmp153_;
	GError * _inner_error_;
};


static gpointer gxml_xparser_parent_class = NULL;
static GXmlParserIface* gxml_xparser_gxml_parser_parent_iface = NULL;

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;
GType gxml_xparser_get_type (void) G_GNUC_CONST;
#define GXML_XPARSER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GXML_TYPE_XPARSER, GXmlXParserPrivate))
enum  {
	GXML_XPARSER_0_PROPERTY,
	GXML_XPARSER_BACKUP_PROPERTY,
	GXML_XPARSER_INDENT_PROPERTY,
	GXML_XPARSER_NODE_PROPERTY
};
GXmlXParser* gxml_xparser_new (GXmlDomNode* node);
GXmlXParser* gxml_xparser_construct (GType object_type, GXmlDomNode* node);
GXmlDomDocument* gxml_dom_node_get_owner_document (GXmlDomNode* self);
static void gxml_xparser_real_write_stream (GXmlParser* base, GOutputStream* stream, GCancellable* cancellable, GError** error);
static gchar* gxml_xparser_dump (GXmlXParser* self, GError** error);
static guint8* _vala_array_dup7 (guint8* self, int length);
static void gxml_xparser_real_write_stream_async_data_free (gpointer _data);
static void gxml_xparser_real_write_stream_async (GXmlParser* base, GOutputStream* stream, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean gxml_xparser_real_write_stream_async_co (GxmlXparserWriteStreamAsyncData* _data_);
static void gxml_xparser_dump_async (GXmlXParser* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gchar* gxml_xparser_dump_finish (GXmlXParser* self, GAsyncResult* _res_, GError** error);
static void gxml_xparser_write_stream_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static guint8* _vala_array_dup8 (guint8* self, int length);
static GInputStream* gxml_xparser_real_create_stream (GXmlParser* base, GCancellable* cancellable, GError** error);
static guint8* _vala_array_dup9 (guint8* self, int length);
static void gxml_xparser_real_create_stream_async_data_free (gpointer _data);
static void gxml_xparser_real_create_stream_async (GXmlParser* base, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean gxml_xparser_real_create_stream_async_co (GxmlXparserCreateStreamAsyncData* _data_);
static void gxml_xparser_create_stream_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static guint8* _vala_array_dup10 (guint8* self, int length);
static gchar* gxml_xparser_real_write_string (GXmlParser* base, GError** error);
static void gxml_xparser_real_write_string_async_data_free (gpointer _data);
static void gxml_xparser_real_write_string_async (GXmlParser* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean gxml_xparser_real_write_string_async_co (GxmlXparserWriteStringAsyncData* _data_);
static void gxml_xparser_write_string_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void gxml_xparser_real_read_string (GXmlParser* base, const gchar* str, GCancellable* cancellable, GError** error);
GQuark gxml_parser_error_quark (void);
static guint8* _vala_array_dup11 (guint8* self, int length);
void gxml_parser_read_stream (GXmlParser* self, GInputStream* stream, GCancellable* cancellable, GError** error);
static void gxml_xparser_real_read_string_async_data_free (gpointer _data);
static void gxml_xparser_real_read_string_async (GXmlParser* base, const gchar* str, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean gxml_xparser_real_read_string_async_co (GxmlXparserReadStringAsyncData* _data_);
static guint8* _vala_array_dup12 (guint8* self, int length);
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);
static gboolean _gxml_xparser_real_read_string_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_xparser_read_string_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void gxml_xparser_real_read_stream (GXmlParser* base, GInputStream* istream, GCancellable* cancellable, GError** error);
void gxml_xparser_read_node (GXmlXParser* self, GXmlDomNode* node, GError** error);
static void gxml_xparser_real_read_stream_async_data_free (gpointer _data);
static void gxml_xparser_real_read_stream_async (GXmlParser* base, GInputStream* istream, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean gxml_xparser_real_read_stream_async_co (GxmlXparserReadStreamAsyncData* _data_);
static gboolean _gxml_xparser_real_read_stream_async_co_gsource_func (gpointer self);
gboolean gxml_parser_move_next_node (GXmlParser* self, GError** error);
gboolean gxml_parser_current_is_element (GXmlParser* self);
gchar* gxml_parser_current_node_name (GXmlParser* self);
gchar* gxml_dom_element_get_local_name (GXmlDomElement* self);
gboolean gxml_parser_current_is_document (GXmlParser* self);
gboolean gxml_parser_read_child_node (GXmlParser* self, GXmlDomNode* parent, GError** error);
void gxml_parser_read_element (GXmlParser* self, GXmlDomElement* element, GError** error);
gboolean gxml_parser_read_child_element (GXmlParser* self, GXmlDomNode* parent, GError** error);
GType gxml_gom_node_get_type (void) G_GNUC_CONST;
GType gxml_gom_document_get_type (void) G_GNUC_CONST;
void gxml_parser_read_child_nodes (GXmlParser* self, GXmlDomNode* parent, GError** error);
GType gxml_gom_element_get_type (void) G_GNUC_CONST;
gboolean gxml_gom_element_get_parse_children (GXmlGomElement* self);
gchar* gxml_parser_read_unparsed (GXmlParser* self, GError** error);
void gxml_gom_element_set_unparsed (GXmlGomElement* self, const gchar* value);
static void gxml_xparser_real_read_child_nodes_stream (GXmlParser* base, GInputStream* istream, GCancellable* cancellable, GError** error);
static void gxml_xparser_read_child_nodes_stream_async_data_free (gpointer _data);
void gxml_xparser_read_child_nodes_stream_async (GXmlXParser* self, GInputStream* istream, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
void gxml_xparser_read_child_nodes_stream_finish (GXmlXParser* self, GAsyncResult* _res_, GError** error);
static gboolean gxml_xparser_read_child_nodes_stream_async_co (GxmlXparserReadChildNodesStreamAsyncData* _data_);
static gboolean _gxml_xparser_read_child_nodes_stream_async_co_gsource_func (gpointer self);
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 void gxml_xparser_read_child_nodes_stream_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static gchar* gxml_xparser_real_read_unparsed (GXmlParser* base, GError** error);
static gboolean gxml_xparser_real_move_next_node (GXmlParser* base, GError** error);
static gboolean gxml_xparser_real_current_is_empty_element (GXmlParser* base);
static gboolean gxml_xparser_real_current_is_element (GXmlParser* base);
static gboolean gxml_xparser_real_current_is_document (GXmlParser* base);
static gchar* gxml_xparser_real_current_node_name (GXmlParser* base);
static GXmlDomElement* gxml_xparser_real_create_element (GXmlParser* base, GXmlDomNode* parent, GError** error);
GXmlDomElement* gxml_dom_document_create_element_ns (GXmlDomDocument* self, const gchar* namespace, const gchar* qualified_name, GError** error);
GXmlDomElement* gxml_dom_document_create_element (GXmlDomDocument* self, const gchar* local_name, GError** error);
GXmlDomNode* gxml_dom_node_append_child (GXmlDomNode* self, GXmlDomNode* node, GError** error);
static void gxml_xparser_real_read_element (GXmlParser* base, GXmlDomElement* element, GError** error);
GQuark gxml_dom_error_quark (void);
void gxml_dom_element_set_attribute_ns (GXmlDomElement* self, const gchar* namespace, const gchar* name, const gchar* value, GError** error);
GXmlDomNode* gxml_parser_get_node (GXmlParser* self);
GType gxml_gom_object_get_type (void) G_GNUC_CONST;
gboolean gxml_gom_object_set_attribute (GXmlGomObject* self, const gchar* name, const gchar* val);
void gxml_dom_element_set_attribute (GXmlDomElement* self, const gchar* name, const gchar* value, GError** error);
static gboolean gxml_xparser_real_read_child_node (GXmlParser* base, GXmlDomNode* parent, GError** error);
GXmlDomText* gxml_dom_document_create_text_node (GXmlDomDocument* self, const gchar* data, GError** error);
GXmlDomProcessingInstruction* gxml_dom_document_create_processing_instruction (GXmlDomDocument* self, const gchar* target, const gchar* data, GError** error);
GXmlDomComment* gxml_dom_document_create_comment (GXmlDomDocument* self, const gchar* data, GError** error);
GXmlGomDocumentType* gxml_gom_document_type_new (GXmlDomDocument* doc, const gchar* name, const gchar* public_id, const gchar* system_id);
GXmlGomDocumentType* gxml_gom_document_type_construct (GType object_type, GXmlDomDocument* doc, const gchar* name, const gchar* public_id, const gchar* system_id);
GType gxml_gom_document_type_get_type (void) G_GNUC_CONST;
gboolean gxml_parser_get_indent (GXmlParser* self);
GXmlDomElement* gxml_dom_document_get_document_element (GXmlDomDocument* self);
static void gxml_xparser_start_node (GXmlXParser* self, GXmlDomNode* node, GError** error);
gchar* gxml_dom_element_get_namespace_uri (GXmlDomElement* self);
GXmlDomNode* gxml_dom_node_get_parent_node (GXmlDomNode* self);
gchar* gxml_dom_node_lookup_prefix (GXmlDomNode* self, const gchar* nspace);
gchar* gxml_dom_element_get_prefix (GXmlDomElement* self);
gchar* gxml_dom_node_get_node_name (GXmlDomNode* self);
GList* gxml_gom_object_get_properties_list (GXmlGomObject* self);
GType gxml_gom_property_get_type (void) G_GNUC_CONST;
gchar* gxml_gom_property_get_value (GXmlGomProperty* self);
gchar* gxml_gom_object_get_property_string (GXmlGomObject* self, GParamSpec* prop);
GXmlDomNamedNodeMap* gxml_dom_element_get_attributes (GXmlDomElement* self);
static void _g_param_spec_unref0_ (gpointer var);
static void _g_list_free__g_param_spec_unref0_ (GList* self);
GXmlDomNodeList* gxml_dom_node_get_child_nodes (GXmlDomNode* self);
static void gxml_xparser_write_node (GXmlXParser* self, GXmlDomNode* n, GError** error);
static void gxml_xparser_dump_async_data_free (gpointer _data);
static gboolean gxml_xparser_dump_async_co (GxmlXparserDumpAsyncData* _data_);
static gboolean _gxml_xparser_dump_async_co_gsource_func (gpointer self);
static void gxml_xparser_start_node_async (GXmlXParser* self, GXmlDomNode* node, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void gxml_xparser_start_node_finish (GXmlXParser* self, GAsyncResult* _res_, GError** error);
static void gxml_xparser_dump_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void gxml_xparser_start_node_async_data_free (gpointer _data);
static gboolean gxml_xparser_start_node_async_co (GxmlXparserStartNodeAsyncData* _data_);
static gboolean _gxml_xparser_start_node_async_co_gsource_func (gpointer self);
gchar* gxml_dom_node_get_node_value (GXmlDomNode* self);
gchar* gxml_dom_processing_instruction_get_target (GXmlDomProcessingInstruction* self);
gchar* gxml_dom_character_data_get_data (GXmlDomCharacterData* self);
const gchar* gxml_dom_document_type_get_name (GXmlDomDocumentType* self);
const gchar* gxml_dom_document_type_get_public_id (GXmlDomDocumentType* self);
const gchar* gxml_dom_document_type_get_system_id (GXmlDomDocumentType* self);
static GObject * gxml_xparser_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
void gxml_parser_set_backup (GXmlParser* self, gboolean value);
void gxml_parser_set_indent (GXmlParser* self, gboolean value);
static void gxml_xparser_finalize (GObject* obj);
gboolean gxml_parser_get_backup (GXmlParser* self);
static void _vala_gxml_xparser_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_gxml_xparser_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
static gint _vala_array_length (gpointer array);


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


GXmlXParser* gxml_xparser_construct (GType object_type, GXmlDomNode* node) {
	GXmlXParser * self = NULL;
	GXmlDomNode* _tmp0_ = NULL;
	GXmlDomNode* _tmp1_ = NULL;
	GXmlDomNode* _tmp2_ = NULL;
	g_return_val_if_fail (node != NULL, NULL);
	self = (GXmlXParser*) g_object_new (object_type, NULL);
	_tmp0_ = node;
	_tmp1_ = _g_object_ref0 (_tmp0_);
	_g_object_unref0 (self->priv->_node);
	self->priv->_node = _tmp1_;
	_tmp2_ = self->priv->_node;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, GXML_TYPE_DOM_DOCUMENT)) {
		GXmlDomNode* _tmp3_ = NULL;
		GXmlDomDocument* _tmp4_ = NULL;
		_tmp3_ = self->priv->_node;
		_tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, GXML_TYPE_DOM_DOCUMENT) ? ((GXmlDomDocument*) _tmp3_) : NULL);
		_g_object_unref0 (self->priv->_document);
		self->priv->_document = _tmp4_;
	} else {
		GXmlDomNode* _tmp5_ = NULL;
		GXmlDomDocument* _tmp6_ = NULL;
		GXmlDomDocument* _tmp7_ = NULL;
		GXmlDomDocument* _tmp8_ = NULL;
		_tmp5_ = self->priv->_node;
		_tmp6_ = gxml_dom_node_get_owner_document (_tmp5_);
		_tmp7_ = _tmp6_;
		_tmp8_ = _g_object_ref0 (_tmp7_);
		_g_object_unref0 (self->priv->_document);
		self->priv->_document = _tmp8_;
	}
	return self;
}


GXmlXParser* gxml_xparser_new (GXmlDomNode* node) {
	return gxml_xparser_construct (GXML_TYPE_XPARSER, node);
}


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_dup7 (guint8* self, int length) {
	return g_memdup (self, length * sizeof (guint8));
}


static void gxml_xparser_real_write_stream (GXmlParser* base, GOutputStream* stream, GCancellable* cancellable, GError** error) {
	GXmlXParser * self;
	gchar* s = NULL;
	gchar* _tmp0_ = NULL;
	GMemoryInputStream* b = NULL;
	const gchar* _tmp1_ = NULL;
	guint8* _tmp2_ = NULL;
	gint _tmp2__length1 = 0;
	guint8* _tmp3_ = NULL;
	gint _tmp3__length1 = 0;
	guint8* _tmp4_ = NULL;
	gint _tmp4__length1 = 0;
	GMemoryInputStream* _tmp5_ = NULL;
	GOutputStream* _tmp6_ = NULL;
	GMemoryInputStream* _tmp7_ = NULL;
	GOutputStream* _tmp8_ = NULL;
	GError * _inner_error_ = NULL;
	self = (GXmlXParser*) base;
	g_return_if_fail (stream != NULL);
	_tmp0_ = gxml_xparser_dump (self, &_inner_error_);
	s = _tmp0_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		g_propagate_error (error, _inner_error_);
		return;
	}
	_tmp1_ = s;
	_tmp2_ = string_get_data (_tmp1_, &_tmp2__length1);
	_tmp3_ = _tmp2_;
	_tmp3__length1 = _tmp2__length1;
	_tmp4_ = (_tmp3_ != NULL) ? _vala_array_dup7 (_tmp3_, _tmp3__length1) : ((gpointer) _tmp3_);
	_tmp4__length1 = _tmp3__length1;
	_tmp5_ = (GMemoryInputStream*) g_memory_input_stream_new_from_data (_tmp4_, _tmp4__length1, NULL);
	b = _tmp5_;
	_tmp6_ = stream;
	_tmp7_ = b;
	g_output_stream_splice (_tmp6_, (GInputStream*) _tmp7_, G_OUTPUT_STREAM_SPLICE_NONE, NULL, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		g_propagate_error (error, _inner_error_);
		_g_object_unref0 (b);
		_g_free0 (s);
		return;
	}
	_tmp8_ = stream;
	g_output_stream_close (_tmp8_, NULL, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		g_propagate_error (error, _inner_error_);
		_g_object_unref0 (b);
		_g_free0 (s);
		return;
	}
	_xmlFreeTextWriter0 (self->priv->tw);
	self->priv->tw = NULL;
	_g_object_unref0 (b);
	_g_free0 (s);
}


static void gxml_xparser_real_write_stream_async_data_free (gpointer _data) {
	GxmlXparserWriteStreamAsyncData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->stream);
	_g_object_unref0 (_data_->cancellable);
	_g_object_unref0 (_data_->self);
	g_slice_free (GxmlXparserWriteStreamAsyncData, _data_);
}


static void gxml_xparser_real_write_stream_async (GXmlParser* base, GOutputStream* stream, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GXmlXParser * self;
	GxmlXparserWriteStreamAsyncData* _data_;
	GXmlXParser* _tmp0_ = NULL;
	GOutputStream* _tmp1_ = NULL;
	GOutputStream* _tmp2_ = NULL;
	GCancellable* _tmp3_ = NULL;
	GCancellable* _tmp4_ = NULL;
	self = (GXmlXParser*) base;
	_data_ = g_slice_new0 (GxmlXparserWriteStreamAsyncData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, gxml_xparser_real_write_stream_async);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, gxml_xparser_real_write_stream_async_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	_tmp1_ = stream;
	_tmp2_ = _g_object_ref0 (_tmp1_);
	_g_object_unref0 (_data_->stream);
	_data_->stream = _tmp2_;
	_tmp3_ = cancellable;
	_tmp4_ = _g_object_ref0 (_tmp3_);
	_g_object_unref0 (_data_->cancellable);
	_data_->cancellable = _tmp4_;
	gxml_xparser_real_write_stream_async_co (_data_);
}


static void gxml_xparser_real_write_stream_finish (GXmlParser* base, GAsyncResult* _res_, GError** error) {
	GxmlXparserWriteStreamAsyncData* _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_));
}


static void gxml_xparser_write_stream_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	GxmlXparserWriteStreamAsyncData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	gxml_xparser_real_write_stream_async_co (_data_);
}


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


static gboolean gxml_xparser_real_write_stream_async_co (GxmlXparserWriteStreamAsyncData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_state_ = 1;
	gxml_xparser_dump_async (_data_->self, gxml_xparser_write_stream_async_ready, _data_);
	return FALSE;
	_state_1:
	_data_->_tmp0_ = NULL;
	_data_->_tmp0_ = gxml_xparser_dump_finish (_data_->self, _data_->_res_, &_data_->_inner_error_);
	_data_->s = _data_->_tmp0_;
	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_->_tmp1_ = NULL;
	_data_->_tmp1_ = _data_->s;
	_data_->_tmp2_ = NULL;
	_data_->_tmp2__length1 = 0;
	_data_->_tmp2_ = string_get_data (_data_->_tmp1_, &_data_->_tmp2__length1);
	_data_->_tmp3_ = NULL;
	_data_->_tmp3__length1 = 0;
	_data_->_tmp3_ = _data_->_tmp2_;
	_data_->_tmp3__length1 = _data_->_tmp2__length1;
	_data_->_tmp4_ = NULL;
	_data_->_tmp4__length1 = 0;
	_data_->_tmp4_ = (_data_->_tmp3_ != NULL) ? _vala_array_dup8 (_data_->_tmp3_, _data_->_tmp3__length1) : ((gpointer) _data_->_tmp3_);
	_data_->_tmp4__length1 = _data_->_tmp3__length1;
	_data_->_tmp5_ = NULL;
	_data_->_tmp5_ = (GMemoryInputStream*) g_memory_input_stream_new_from_data (_data_->_tmp4_, _data_->_tmp4__length1, NULL);
	_data_->b = _data_->_tmp5_;
	_data_->_tmp6_ = NULL;
	_data_->_tmp6_ = _data_->stream;
	_data_->_tmp7_ = NULL;
	_data_->_tmp7_ = _data_->b;
	g_output_stream_splice (_data_->_tmp6_, (GInputStream*) _data_->_tmp7_, G_OUTPUT_STREAM_SPLICE_NONE, NULL, &_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_->b);
		_g_free0 (_data_->s);
		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_->_tmp8_ = NULL;
	_data_->_tmp8_ = _data_->stream;
	g_output_stream_close (_data_->_tmp8_, NULL, &_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_->b);
		_g_free0 (_data_->s);
		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;
	}
	_xmlFreeTextWriter0 (_data_->self->priv->tw);
	_data_->self->priv->tw = NULL;
	_g_object_unref0 (_data_->b);
	_g_free0 (_data_->s);
	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;
}


/**
   * Creates an {@link GLib.InputStream} to write a string representation
   * in XML
   */
static guint8* _vala_array_dup9 (guint8* self, int length) {
	return g_memdup (self, length * sizeof (guint8));
}


static GInputStream* gxml_xparser_real_create_stream (GXmlParser* base, GCancellable* cancellable, GError** error) {
	GXmlXParser * self;
	GInputStream* result = NULL;
	gchar* s = NULL;
	gchar* _tmp0_ = NULL;
	guint8* _tmp1_ = NULL;
	gint _tmp1__length1 = 0;
	guint8* _tmp2_ = NULL;
	gint _tmp2__length1 = 0;
	guint8* _tmp3_ = NULL;
	gint _tmp3__length1 = 0;
	GMemoryInputStream* _tmp4_ = NULL;
	GError * _inner_error_ = NULL;
	self = (GXmlXParser*) base;
	_tmp0_ = gxml_xparser_dump (self, &_inner_error_);
	s = _tmp0_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		g_propagate_error (error, _inner_error_);
		return NULL;
	}
	_xmlFreeTextWriter0 (self->priv->tw);
	self->priv->tw = NULL;
	_tmp1_ = string_get_data (s, &_tmp1__length1);
	_tmp2_ = _tmp1_;
	_tmp2__length1 = _tmp1__length1;
	_tmp3_ = (_tmp2_ != NULL) ? _vala_array_dup9 (_tmp2_, _tmp2__length1) : ((gpointer) _tmp2_);
	_tmp3__length1 = _tmp2__length1;
	_tmp4_ = (GMemoryInputStream*) g_memory_input_stream_new_from_data (_tmp3_, _tmp3__length1, NULL);
	result = (GInputStream*) _tmp4_;
	_g_free0 (s);
	return result;
}


static void gxml_xparser_real_create_stream_async_data_free (gpointer _data) {
	GxmlXparserCreateStreamAsyncData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->cancellable);
	_g_object_unref0 (_data_->result);
	_g_object_unref0 (_data_->self);
	g_slice_free (GxmlXparserCreateStreamAsyncData, _data_);
}


static void gxml_xparser_real_create_stream_async (GXmlParser* base, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GXmlXParser * self;
	GxmlXparserCreateStreamAsyncData* _data_;
	GXmlXParser* _tmp0_ = NULL;
	GCancellable* _tmp1_ = NULL;
	GCancellable* _tmp2_ = NULL;
	self = (GXmlXParser*) base;
	_data_ = g_slice_new0 (GxmlXparserCreateStreamAsyncData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, gxml_xparser_real_create_stream_async);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, gxml_xparser_real_create_stream_async_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	_tmp1_ = cancellable;
	_tmp2_ = _g_object_ref0 (_tmp1_);
	_g_object_unref0 (_data_->cancellable);
	_data_->cancellable = _tmp2_;
	gxml_xparser_real_create_stream_async_co (_data_);
}


static GInputStream* gxml_xparser_real_create_stream_finish (GXmlParser* base, GAsyncResult* _res_, GError** error) {
	GInputStream* result;
	GxmlXparserCreateStreamAsyncData* _data_;
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
		return NULL;
	}
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
	result = _data_->result;
	_data_->result = NULL;
	return result;
}


/**
   * Creates asynchronically an {@link GLib.InputStream} to write a string representation
   * in XML
   */
static void gxml_xparser_create_stream_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	GxmlXparserCreateStreamAsyncData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	gxml_xparser_real_create_stream_async_co (_data_);
}


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


static gboolean gxml_xparser_real_create_stream_async_co (GxmlXparserCreateStreamAsyncData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_state_ = 1;
	gxml_xparser_dump_async (_data_->self, gxml_xparser_create_stream_async_ready, _data_);
	return FALSE;
	_state_1:
	_data_->_tmp0_ = NULL;
	_data_->_tmp0_ = gxml_xparser_dump_finish (_data_->self, _data_->_res_, &_data_->_inner_error_);
	_data_->s = _data_->_tmp0_;
	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;
	}
	_xmlFreeTextWriter0 (_data_->self->priv->tw);
	_data_->self->priv->tw = NULL;
	_data_->_tmp1_ = NULL;
	_data_->_tmp1__length1 = 0;
	_data_->_tmp1_ = string_get_data (_data_->s, &_data_->_tmp1__length1);
	_data_->_tmp2_ = NULL;
	_data_->_tmp2__length1 = 0;
	_data_->_tmp2_ = _data_->_tmp1_;
	_data_->_tmp2__length1 = _data_->_tmp1__length1;
	_data_->_tmp3_ = NULL;
	_data_->_tmp3__length1 = 0;
	_data_->_tmp3_ = (_data_->_tmp2_ != NULL) ? _vala_array_dup10 (_data_->_tmp2_, _data_->_tmp2__length1) : ((gpointer) _data_->_tmp2_);
	_data_->_tmp3__length1 = _data_->_tmp2__length1;
	_data_->_tmp4_ = NULL;
	_data_->_tmp4_ = (GMemoryInputStream*) g_memory_input_stream_new_from_data (_data_->_tmp3_, _data_->_tmp3__length1, NULL);
	_data_->result = (GInputStream*) _data_->_tmp4_;
	_g_free0 (_data_->s);
	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_free0 (_data_->s);
	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;
}


static gchar* gxml_xparser_real_write_string (GXmlParser* base, GError** error) {
	GXmlXParser * self;
	gchar* result = NULL;
	gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	GError * _inner_error_ = NULL;
	self = (GXmlXParser*) base;
	_tmp1_ = gxml_xparser_dump (self, &_inner_error_);
	_tmp0_ = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		g_propagate_error (error, _inner_error_);
		return NULL;
	}
	_tmp2_ = _tmp0_;
	_tmp0_ = NULL;
	result = _tmp2_;
	_g_free0 (_tmp0_);
	return result;
}


static void gxml_xparser_real_write_string_async_data_free (gpointer _data) {
	GxmlXparserWriteStringAsyncData* _data_;
	_data_ = _data;
	_g_free0 (_data_->result);
	_g_object_unref0 (_data_->self);
	g_slice_free (GxmlXparserWriteStringAsyncData, _data_);
}


static void gxml_xparser_real_write_string_async (GXmlParser* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GXmlXParser * self;
	GxmlXparserWriteStringAsyncData* _data_;
	GXmlXParser* _tmp0_ = NULL;
	self = (GXmlXParser*) base;
	_data_ = g_slice_new0 (GxmlXparserWriteStringAsyncData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, gxml_xparser_real_write_string_async);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, gxml_xparser_real_write_string_async_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	gxml_xparser_real_write_string_async_co (_data_);
}


static gchar* gxml_xparser_real_write_string_finish (GXmlParser* base, GAsyncResult* _res_, GError** error) {
	gchar* result;
	GxmlXparserWriteStringAsyncData* _data_;
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
		return NULL;
	}
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
	result = _data_->result;
	_data_->result = NULL;
	return result;
}


static void gxml_xparser_write_string_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	GxmlXparserWriteStringAsyncData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	gxml_xparser_real_write_string_async_co (_data_);
}


static gboolean gxml_xparser_real_write_string_async_co (GxmlXparserWriteStringAsyncData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_state_ = 1;
	gxml_xparser_dump_async (_data_->self, gxml_xparser_write_string_async_ready, _data_);
	return FALSE;
	_state_1:
	_data_->_tmp1_ = NULL;
	_data_->_tmp1_ = gxml_xparser_dump_finish (_data_->self, _data_->_res_, &_data_->_inner_error_);
	_data_->_tmp0_ = _data_->_tmp1_;
	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_->_tmp2_ = NULL;
	_data_->_tmp2_ = _data_->_tmp0_;
	_data_->_tmp0_ = NULL;
	_data_->result = _data_->_tmp2_;
	_g_free0 (_data_->_tmp0_);
	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_free0 (_data_->_tmp0_);
	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;
}


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


static void gxml_xparser_real_read_string (GXmlParser* base, const gchar* str, GCancellable* cancellable, GError** error) {
	GXmlXParser * self;
	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;
	self = (GXmlXParser*) base;
	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_dup11 (_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_stream ((GXmlParser*) 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);
}


static void gxml_xparser_real_read_string_async_data_free (gpointer _data) {
	GxmlXparserReadStringAsyncData* _data_;
	_data_ = _data;
	_g_free0 (_data_->str);
	_g_object_unref0 (_data_->cancellable);
	_g_object_unref0 (_data_->self);
	g_slice_free (GxmlXparserReadStringAsyncData, _data_);
}


static void gxml_xparser_real_read_string_async (GXmlParser* base, const gchar* str, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GXmlXParser * self;
	GxmlXparserReadStringAsyncData* _data_;
	GXmlXParser* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	GCancellable* _tmp3_ = NULL;
	GCancellable* _tmp4_ = NULL;
	self = (GXmlXParser*) base;
	_data_ = g_slice_new0 (GxmlXparserReadStringAsyncData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, gxml_xparser_real_read_string_async);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, gxml_xparser_real_read_string_async_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	_tmp1_ = str;
	_tmp2_ = g_strdup (_tmp1_);
	_g_free0 (_data_->str);
	_data_->str = _tmp2_;
	_tmp3_ = cancellable;
	_tmp4_ = _g_object_ref0 (_tmp3_);
	_g_object_unref0 (_data_->cancellable);
	_data_->cancellable = _tmp4_;
	gxml_xparser_real_read_string_async_co (_data_);
}


static void gxml_xparser_real_read_string_finish (GXmlParser* base, GAsyncResult* _res_, GError** error) {
	GxmlXparserReadStringAsyncData* _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_));
}


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


static gboolean _gxml_xparser_real_read_string_async_co_gsource_func (gpointer self) {
	gboolean result;
	result = gxml_xparser_real_read_string_async_co (self);
	return result;
}


static void gxml_xparser_read_string_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	GxmlXparserReadStringAsyncData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	gxml_xparser_real_read_string_async_co (_data_);
}


static gboolean gxml_xparser_real_read_string_async_co (GxmlXparserReadStringAsyncData* _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_->str;
	if (g_strcmp0 (_data_->_tmp0_, "") == 0) {
		_data_->_tmp1_ = NULL;
		_data_->_tmp1_ = _ ("Invalid document string, it is empty or is not allowed");
		_data_->_tmp2_ = NULL;
		_data_->_tmp2_ = g_error_new_literal (GXML_PARSER_ERROR, GXML_PARSER_ERROR_INVALID_DATA_ERROR, _data_->_tmp1_);
		_data_->_inner_error_ = _data_->_tmp2_;
		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_->_tmp3_ = NULL;
	_data_->_tmp3_ = _data_->str;
	_data_->_tmp4_ = NULL;
	_data_->_tmp4__length1 = 0;
	_data_->_tmp4_ = string_get_data (_data_->_tmp3_, &_data_->_tmp4__length1);
	_data_->_tmp5_ = NULL;
	_data_->_tmp5__length1 = 0;
	_data_->_tmp5_ = _data_->_tmp4_;
	_data_->_tmp5__length1 = _data_->_tmp4__length1;
	_data_->_tmp6_ = NULL;
	_data_->_tmp6__length1 = 0;
	_data_->_tmp6_ = (_data_->_tmp5_ != NULL) ? _vala_array_dup12 (_data_->_tmp5_, _data_->_tmp5__length1) : ((gpointer) _data_->_tmp5_);
	_data_->_tmp6__length1 = _data_->_tmp5__length1;
	_data_->_tmp7_ = NULL;
	_data_->_tmp7_ = g_free;
	_data_->_tmp8_ = NULL;
	_data_->_tmp8_ = (GMemoryInputStream*) g_memory_input_stream_new_from_data (_data_->_tmp6_, _data_->_tmp6__length1, _data_->_tmp7_);
	_data_->stream = _data_->_tmp8_;
	g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, _gxml_xparser_real_read_string_async_co_gsource_func, _data_, NULL);
	_data_->_state_ = 1;
	return FALSE;
	_state_1:
	;
	_data_->_tmp9_ = NULL;
	_data_->_tmp9_ = _data_->cancellable;
	_data_->_state_ = 2;
	gxml_parser_read_stream_async ((GXmlParser*) _data_->self, (GInputStream*) _data_->stream, _data_->_tmp9_, gxml_xparser_read_string_async_ready, _data_);
	return FALSE;
	_state_2:
	gxml_parser_read_stream_finish ((GXmlParser*) _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_->stream);
		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_->stream);
	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;
}


static void gxml_xparser_real_read_stream (GXmlParser* base, GInputStream* istream, GCancellable* cancellable, GError** error) {
	GXmlXParser * self;
	GMemoryOutputStream* b = NULL;
	GMemoryOutputStream* _tmp0_ = NULL;
	GMemoryOutputStream* _tmp1_ = NULL;
	GInputStream* _tmp2_ = NULL;
	GMemoryOutputStream* _tmp3_ = NULL;
	void* _tmp4_ = NULL;
	void* _tmp5_ = NULL;
	GMemoryOutputStream* _tmp6_ = NULL;
	gsize _tmp7_ = 0UL;
	xmlTextReader* _tmp8_ = NULL;
	GXmlDomNode* _tmp9_ = NULL;
	GError * _inner_error_ = NULL;
	self = (GXmlXParser*) base;
	g_return_if_fail (istream != NULL);
	_tmp0_ = (GMemoryOutputStream*) g_memory_output_stream_new_resizable ();
	b = _tmp0_;
	_tmp1_ = b;
	_tmp2_ = istream;
	g_output_stream_splice ((GOutputStream*) _tmp1_, _tmp2_, 0, NULL, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		g_propagate_error (error, _inner_error_);
		_g_object_unref0 (b);
		return;
	}
	_tmp3_ = b;
	_tmp4_ = g_memory_output_stream_get_data (_tmp3_);
	_tmp5_ = _tmp4_;
	_tmp6_ = b;
	_tmp7_ = g_memory_output_stream_get_data_size (_tmp6_);
	_tmp8_ = xmlReaderForMemory ((gchar*) _tmp5_, (gint) _tmp7_, "/gxml_memory", NULL, 0);
	_xmlFreeTextReader0 (self->priv->tr);
	self->priv->tr = _tmp8_;
	_tmp9_ = self->priv->_node;
	gxml_xparser_read_node (self, _tmp9_, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		g_propagate_error (error, _inner_error_);
		_g_object_unref0 (b);
		return;
	}
	_xmlFreeTextReader0 (self->priv->tr);
	self->priv->tr = NULL;
	_g_object_unref0 (b);
}


static void gxml_xparser_real_read_stream_async_data_free (gpointer _data) {
	GxmlXparserReadStreamAsyncData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->istream);
	_g_object_unref0 (_data_->cancellable);
	_g_object_unref0 (_data_->self);
	g_slice_free (GxmlXparserReadStreamAsyncData, _data_);
}


static void gxml_xparser_real_read_stream_async (GXmlParser* base, GInputStream* istream, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GXmlXParser * self;
	GxmlXparserReadStreamAsyncData* _data_;
	GXmlXParser* _tmp0_ = NULL;
	GInputStream* _tmp1_ = NULL;
	GInputStream* _tmp2_ = NULL;
	GCancellable* _tmp3_ = NULL;
	GCancellable* _tmp4_ = NULL;
	self = (GXmlXParser*) base;
	_data_ = g_slice_new0 (GxmlXparserReadStreamAsyncData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, gxml_xparser_real_read_stream_async);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, gxml_xparser_real_read_stream_async_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	_tmp1_ = istream;
	_tmp2_ = _g_object_ref0 (_tmp1_);
	_g_object_unref0 (_data_->istream);
	_data_->istream = _tmp2_;
	_tmp3_ = cancellable;
	_tmp4_ = _g_object_ref0 (_tmp3_);
	_g_object_unref0 (_data_->cancellable);
	_data_->cancellable = _tmp4_;
	gxml_xparser_real_read_stream_async_co (_data_);
}


static void gxml_xparser_real_read_stream_finish (GXmlParser* base, GAsyncResult* _res_, GError** error) {
	GxmlXparserReadStreamAsyncData* _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_));
}


static gboolean _gxml_xparser_real_read_stream_async_co_gsource_func (gpointer self) {
	gboolean result;
	result = gxml_xparser_real_read_stream_async_co (self);
	return result;
}


static gboolean gxml_xparser_real_read_stream_async_co (GxmlXparserReadStreamAsyncData* _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_ = (GMemoryOutputStream*) g_memory_output_stream_new_resizable ();
	_data_->b = _data_->_tmp0_;
	_data_->_tmp1_ = NULL;
	_data_->_tmp1_ = _data_->b;
	_data_->_tmp2_ = NULL;
	_data_->_tmp2_ = _data_->istream;
	g_output_stream_splice ((GOutputStream*) _data_->_tmp1_, _data_->_tmp2_, 0, NULL, &_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_->b);
		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_xparser_real_read_stream_async_co_gsource_func, _data_, NULL);
	_data_->_state_ = 1;
	return FALSE;
	_state_1:
	;
	_data_->_tmp3_ = NULL;
	_data_->_tmp3_ = _data_->b;
	_data_->_tmp4_ = NULL;
	_data_->_tmp4_ = g_memory_output_stream_get_data (_data_->_tmp3_);
	_data_->_tmp5_ = NULL;
	_data_->_tmp5_ = _data_->_tmp4_;
	_data_->_tmp6_ = NULL;
	_data_->_tmp6_ = _data_->b;
	_data_->_tmp7_ = 0UL;
	_data_->_tmp7_ = g_memory_output_stream_get_data_size (_data_->_tmp6_);
	_data_->_tmp8_ = NULL;
	_data_->_tmp8_ = xmlReaderForMemory ((gchar*) _data_->_tmp5_, (gint) _data_->_tmp7_, "/gxml_memory", NULL, 0);
	_xmlFreeTextReader0 (_data_->self->priv->tr);
	_data_->self->priv->tr = _data_->_tmp8_;
	_data_->_tmp9_ = NULL;
	_data_->_tmp9_ = _data_->self->priv->_node;
	gxml_xparser_read_node (_data_->self, _data_->_tmp9_, &_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_->b);
		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;
	}
	_xmlFreeTextReader0 (_data_->self->priv->tr);
	_data_->self->priv->tr = NULL;
	_g_object_unref0 (_data_->b);
	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;
}


/**
   * Reads a node using current parser.
   */
void gxml_xparser_read_node (GXmlXParser* self, GXmlDomNode* node, GError** error) {
	xmlTextReader* _tmp0_ = NULL;
	GXmlDomNode* _tmp3_ = NULL;
	gboolean _tmp21_ = FALSE;
	gboolean _tmp22_ = FALSE;
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (node != NULL);
	_tmp0_ = self->priv->tr;
	if (_tmp0_ == NULL) {
		const gchar* _tmp1_ = NULL;
		GError* _tmp2_ = NULL;
		_tmp1_ = _ ("Internal Error: No TextReader was set");
		_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;
	}
	gxml_parser_move_next_node ((GXmlParser*) self, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		g_propagate_error (error, _inner_error_);
		return;
	}
	_tmp3_ = node;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, GXML_TYPE_DOM_ELEMENT)) {
		GXmlDomNode* _tmp20_ = NULL;
		while (TRUE) {
			gboolean _tmp4_ = FALSE;
			gboolean _tmp5_ = FALSE;
			gboolean _tmp16_ = FALSE;
			gboolean _tmp18_ = FALSE;
			gboolean _tmp19_ = FALSE;
			_tmp5_ = gxml_parser_current_is_element ((GXmlParser*) self);
			if (_tmp5_) {
				gchar* _tmp6_ = NULL;
				gchar* _tmp7_ = NULL;
				gchar* _tmp8_ = NULL;
				gchar* _tmp9_ = NULL;
				GXmlDomNode* _tmp10_ = NULL;
				gchar* _tmp11_ = NULL;
				gchar* _tmp12_ = NULL;
				gchar* _tmp13_ = NULL;
				gchar* _tmp14_ = NULL;
				gchar* _tmp15_ = NULL;
				_tmp6_ = gxml_parser_current_node_name ((GXmlParser*) self);
				_tmp7_ = _tmp6_;
				_tmp8_ = g_utf8_strdown (_tmp7_, (gssize) -1);
				_tmp9_ = _tmp8_;
				_tmp10_ = node;
				_tmp11_ = gxml_dom_element_get_local_name (G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, GXML_TYPE_DOM_ELEMENT) ? ((GXmlDomElement*) _tmp10_) : NULL);
				_tmp12_ = _tmp11_;
				_tmp13_ = _tmp12_;
				_tmp14_ = g_utf8_strdown (_tmp13_, (gssize) -1);
				_tmp15_ = _tmp14_;
				_tmp4_ = g_strcmp0 (_tmp9_, _tmp15_) == 0;
				_g_free0 (_tmp15_);
				_g_free0 (_tmp13_);
				_g_free0 (_tmp9_);
				_g_free0 (_tmp7_);
			} else {
				_tmp4_ = FALSE;
			}
			if (_tmp4_) {
				break;
			}
			_tmp16_ = gxml_parser_current_is_document ((GXmlParser*) self);
			if (!_tmp16_) {
				GXmlDomDocument* _tmp17_ = NULL;
				_tmp17_ = self->priv->_document;
				gxml_parser_read_child_node ((GXmlParser*) self, (GXmlDomNode*) _tmp17_, &_inner_error_);
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					g_propagate_error (error, _inner_error_);
					return;
				}
			}
			_tmp19_ = gxml_parser_move_next_node ((GXmlParser*) self, &_inner_error_);
			_tmp18_ = _tmp19_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				g_propagate_error (error, _inner_error_);
				return;
			}
			if (!_tmp18_) {
				break;
			}
		}
		_tmp20_ = node;
		gxml_parser_read_element ((GXmlParser*) self, G_TYPE_CHECK_INSTANCE_TYPE (_tmp20_, GXML_TYPE_DOM_ELEMENT) ? ((GXmlDomElement*) _tmp20_) : NULL, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			g_propagate_error (error, _inner_error_);
			return;
		}
	}
	_tmp22_ = gxml_parser_current_is_element ((GXmlParser*) self);
	if (_tmp22_) {
		GXmlDomNode* _tmp23_ = NULL;
		_tmp23_ = node;
		_tmp21_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp23_, GXML_TYPE_DOM_DOCUMENT);
	} else {
		_tmp21_ = FALSE;
	}
	if (_tmp21_) {
		GXmlDomNode* _tmp24_ = NULL;
		_tmp24_ = node;
		gxml_parser_read_child_element ((GXmlParser*) self, _tmp24_, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			g_propagate_error (error, _inner_error_);
			return;
		}
	} else {
		GXmlDomNode* _tmp25_ = NULL;
		GXmlDomNode* _tmp27_ = NULL;
		_tmp25_ = node;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp25_, GXML_TYPE_GOM_DOCUMENT)) {
			GXmlDomNode* _tmp26_ = NULL;
			_tmp26_ = node;
			gxml_parser_read_child_nodes ((GXmlParser*) self, _tmp26_, &_inner_error_);
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				g_propagate_error (error, _inner_error_);
				return;
			}
		}
		_tmp27_ = node;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp27_, GXML_TYPE_GOM_ELEMENT)) {
			GXmlDomNode* _tmp28_ = NULL;
			gboolean _tmp29_ = FALSE;
			gboolean _tmp30_ = FALSE;
			_tmp28_ = node;
			_tmp29_ = gxml_gom_element_get_parse_children (G_TYPE_CHECK_INSTANCE_TYPE (_tmp28_, GXML_TYPE_GOM_ELEMENT) ? ((GXmlGomElement*) _tmp28_) : NULL);
			_tmp30_ = _tmp29_;
			if (_tmp30_) {
				GXmlDomNode* _tmp31_ = NULL;
				_tmp31_ = node;
				gxml_parser_read_child_nodes ((GXmlParser*) self, _tmp31_, &_inner_error_);
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					g_propagate_error (error, _inner_error_);
					return;
				}
			} else {
				gchar* _tmp32_ = NULL;
				gchar* _tmp33_ = NULL;
				GXmlDomNode* _tmp34_ = NULL;
				_tmp33_ = gxml_parser_read_unparsed ((GXmlParser*) self, &_inner_error_);
				_tmp32_ = _tmp33_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					g_propagate_error (error, _inner_error_);
					return;
				}
				_tmp34_ = node;
				gxml_gom_element_set_unparsed (G_TYPE_CHECK_INSTANCE_TYPE (_tmp34_, GXML_TYPE_GOM_ELEMENT) ? ((GXmlGomElement*) _tmp34_) : NULL, _tmp32_);
				gxml_parser_move_next_node ((GXmlParser*) self, &_inner_error_);
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					g_propagate_error (error, _inner_error_);
					_g_free0 (_tmp32_);
					return;
				}
				_g_free0 (_tmp32_);
			}
		}
	}
}


static void gxml_xparser_real_read_child_nodes_stream (GXmlParser* base, GInputStream* istream, GCancellable* cancellable, GError** error) {
	GXmlXParser * self;
	GMemoryOutputStream* b = NULL;
	GMemoryOutputStream* _tmp0_ = NULL;
	GMemoryOutputStream* _tmp1_ = NULL;
	GInputStream* _tmp2_ = NULL;
	GMemoryOutputStream* _tmp3_ = NULL;
	void* _tmp4_ = NULL;
	void* _tmp5_ = NULL;
	GMemoryOutputStream* _tmp6_ = NULL;
	gsize _tmp7_ = 0UL;
	xmlTextReader* _tmp8_ = NULL;
	GXmlDomNode* _tmp9_ = NULL;
	GError * _inner_error_ = NULL;
	self = (GXmlXParser*) base;
	g_return_if_fail (istream != NULL);
	_tmp0_ = (GMemoryOutputStream*) g_memory_output_stream_new_resizable ();
	b = _tmp0_;
	_tmp1_ = b;
	_tmp2_ = istream;
	g_output_stream_splice ((GOutputStream*) _tmp1_, _tmp2_, 0, NULL, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		g_propagate_error (error, _inner_error_);
		_g_object_unref0 (b);
		return;
	}
	_tmp3_ = b;
	_tmp4_ = g_memory_output_stream_get_data (_tmp3_);
	_tmp5_ = _tmp4_;
	_tmp6_ = b;
	_tmp7_ = g_memory_output_stream_get_data_size (_tmp6_);
	_tmp8_ = xmlReaderForMemory ((gchar*) _tmp5_, (gint) _tmp7_, "/gxml_memory", NULL, 0);
	_xmlFreeTextReader0 (self->priv->tr);
	self->priv->tr = _tmp8_;
	_tmp9_ = self->priv->_node;
	gxml_parser_read_child_nodes ((GXmlParser*) self, _tmp9_, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		g_propagate_error (error, _inner_error_);
		_g_object_unref0 (b);
		return;
	}
	_xmlFreeTextReader0 (self->priv->tr);
	self->priv->tr = NULL;
	_g_object_unref0 (b);
}


static void gxml_xparser_read_child_nodes_stream_async_data_free (gpointer _data) {
	GxmlXparserReadChildNodesStreamAsyncData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->istream);
	_g_object_unref0 (_data_->cancellable);
	_g_object_unref0 (_data_->self);
	g_slice_free (GxmlXparserReadChildNodesStreamAsyncData, _data_);
}


void gxml_xparser_read_child_nodes_stream_async (GXmlXParser* self, GInputStream* istream, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GxmlXparserReadChildNodesStreamAsyncData* _data_;
	GXmlXParser* _tmp0_ = NULL;
	GInputStream* _tmp1_ = NULL;
	GInputStream* _tmp2_ = NULL;
	GCancellable* _tmp3_ = NULL;
	GCancellable* _tmp4_ = NULL;
	_data_ = g_slice_new0 (GxmlXparserReadChildNodesStreamAsyncData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, gxml_xparser_read_child_nodes_stream_async);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, gxml_xparser_read_child_nodes_stream_async_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	_tmp1_ = istream;
	_tmp2_ = _g_object_ref0 (_tmp1_);
	_g_object_unref0 (_data_->istream);
	_data_->istream = _tmp2_;
	_tmp3_ = cancellable;
	_tmp4_ = _g_object_ref0 (_tmp3_);
	_g_object_unref0 (_data_->cancellable);
	_data_->cancellable = _tmp4_;
	gxml_xparser_read_child_nodes_stream_async_co (_data_);
}


void gxml_xparser_read_child_nodes_stream_finish (GXmlXParser* self, GAsyncResult* _res_, GError** error) {
	GxmlXparserReadChildNodesStreamAsyncData* _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_));
}


static gboolean _gxml_xparser_read_child_nodes_stream_async_co_gsource_func (gpointer self) {
	gboolean result;
	result = gxml_xparser_read_child_nodes_stream_async_co (self);
	return result;
}


static void gxml_xparser_read_child_nodes_stream_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	GxmlXparserReadChildNodesStreamAsyncData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	gxml_xparser_read_child_nodes_stream_async_co (_data_);
}


static gboolean gxml_xparser_read_child_nodes_stream_async_co (GxmlXparserReadChildNodesStreamAsyncData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		case 2:
		goto _state_2;
		case 3:
		goto _state_3;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_tmp0_ = NULL;
	_data_->_tmp0_ = (GMemoryOutputStream*) g_memory_output_stream_new_resizable ();
	_data_->b = _data_->_tmp0_;
	_data_->_tmp1_ = NULL;
	_data_->_tmp1_ = _data_->b;
	_data_->_tmp2_ = NULL;
	_data_->_tmp2_ = _data_->istream;
	g_output_stream_splice ((GOutputStream*) _data_->_tmp1_, _data_->_tmp2_, 0, NULL, &_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_->b);
		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_xparser_read_child_nodes_stream_async_co_gsource_func, _data_, NULL);
	_data_->_state_ = 1;
	return FALSE;
	_state_1:
	;
	_data_->_tmp3_ = NULL;
	_data_->_tmp3_ = _data_->b;
	_data_->_tmp4_ = NULL;
	_data_->_tmp4_ = g_memory_output_stream_get_data (_data_->_tmp3_);
	_data_->_tmp5_ = NULL;
	_data_->_tmp5_ = _data_->_tmp4_;
	_data_->_tmp6_ = NULL;
	_data_->_tmp6_ = _data_->b;
	_data_->_tmp7_ = 0UL;
	_data_->_tmp7_ = g_memory_output_stream_get_data_size (_data_->_tmp6_);
	_data_->_tmp8_ = NULL;
	_data_->_tmp8_ = xmlReaderForMemory ((gchar*) _data_->_tmp5_, (gint) _data_->_tmp7_, "/gxml_memory", NULL, 0);
	_xmlFreeTextReader0 (_data_->self->priv->tr);
	_data_->self->priv->tr = _data_->_tmp8_;
	g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, _gxml_xparser_read_child_nodes_stream_async_co_gsource_func, _data_, NULL);
	_data_->_state_ = 2;
	return FALSE;
	_state_2:
	;
	_data_->_tmp9_ = NULL;
	_data_->_tmp9_ = _data_->self->priv->_node;
	_data_->_state_ = 3;
	gxml_parser_read_child_nodes_async ((GXmlParser*) _data_->self, _data_->_tmp9_, gxml_xparser_read_child_nodes_stream_async_ready, _data_);
	return FALSE;
	_state_3:
	gxml_parser_read_child_nodes_finish ((GXmlParser*) _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_->b);
		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;
	}
	_xmlFreeTextReader0 (_data_->self->priv->tr);
	_data_->self->priv->tr = NULL;
	_g_object_unref0 (_data_->b);
	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;
}


/**
   * Reads all child nodes as string
   */
static gchar* gxml_xparser_real_read_unparsed (GXmlParser* base, GError** error) {
	GXmlXParser * self;
	gchar* result = NULL;
	xmlTextReader* _tmp0_ = NULL;
	gchar* s = NULL;
	xmlTextReader* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	GError * _inner_error_ = NULL;
	self = (GXmlXParser*) base;
	_tmp0_ = self->priv->tr;
	if (_tmp0_ == NULL) {
		const gchar* _tmp1_ = NULL;
		GError* _tmp2_ = NULL;
		_tmp1_ = _ ("Internal Error: No TextReader was set");
		_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 NULL;
	}
	_tmp3_ = self->priv->tr;
	_tmp4_ = (gchar*) xmlTextReaderReadInnerXml (_tmp3_);
	s = _tmp4_;
	result = s;
	return result;
}


/**
   * Use parser to go to next parsed node.
   */
static gboolean gxml_xparser_real_move_next_node (GXmlParser* base, GError** error) {
	GXmlXParser * self;
	gboolean result = FALSE;
	xmlTextReader* _tmp0_ = NULL;
	gint res = 0;
	xmlTextReader* _tmp4_ = NULL;
	gint _tmp5_ = 0;
	GError * _inner_error_ = NULL;
	self = (GXmlXParser*) base;
	_tmp0_ = self->priv->tr;
	if (_tmp0_ == NULL) {
		const gchar* _tmp1_ = NULL;
		GError* _tmp2_ = NULL;
		gboolean _tmp3_ = FALSE;
		_tmp1_ = _ ("Internal Error: No TextReader was set");
		_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_;
	}
	_tmp4_ = self->priv->tr;
	_tmp5_ = xmlTextReaderRead (_tmp4_);
	res = _tmp5_;
	if (res == -1) {
		const gchar* _tmp6_ = NULL;
		GError* _tmp7_ = NULL;
		gboolean _tmp8_ = FALSE;
		_tmp6_ = _ ("Can't read node data");
		_tmp7_ = g_error_new_literal (GXML_PARSER_ERROR, GXML_PARSER_ERROR_INVALID_DATA_ERROR, _tmp6_);
		_inner_error_ = _tmp7_;
		g_propagate_error (error, _inner_error_);
		return _tmp8_;
	}
	if (res == 0) {
		result = FALSE;
		return result;
	}
	result = TRUE;
	return result;
}


/**
   * Check if current node has childs.
   */
static gboolean gxml_xparser_real_current_is_empty_element (GXmlParser* base) {
	GXmlXParser * self;
	gboolean result = FALSE;
	xmlTextReader* _tmp0_ = NULL;
	xmlTextReader* _tmp1_ = NULL;
	gint _tmp2_ = 0;
	self = (GXmlXParser*) base;
	_tmp0_ = self->priv->tr;
	if (_tmp0_ == NULL) {
		result = FALSE;
		return result;
	}
	_tmp1_ = self->priv->tr;
	_tmp2_ = xmlTextReaderIsEmptyElement (_tmp1_);
	result = _tmp2_ == 1;
	return result;
}


/**
   * Check if current node found by parser, is a {@link DomElement}
   */
static gboolean gxml_xparser_real_current_is_element (GXmlParser* base) {
	GXmlXParser * self;
	gboolean result = FALSE;
	xmlTextReader* _tmp0_ = NULL;
	xmlTextReader* _tmp1_ = NULL;
	gint _tmp2_ = 0;
	self = (GXmlXParser*) base;
	_tmp0_ = self->priv->tr;
	if (_tmp0_ == NULL) {
		result = FALSE;
		return result;
	}
	_tmp1_ = self->priv->tr;
	_tmp2_ = xmlTextReaderNodeType (_tmp1_);
	result = _tmp2_ == ((gint) XML_READER_TYPE_ELEMENT);
	return result;
}


/**
   * Check if current node found by parser, is a {@link DomDocument}
   */
static gboolean gxml_xparser_real_current_is_document (GXmlParser* base) {
	GXmlXParser * self;
	gboolean result = FALSE;
	xmlTextReader* _tmp0_ = NULL;
	xmlTextReader* _tmp1_ = NULL;
	gint _tmp2_ = 0;
	self = (GXmlXParser*) base;
	_tmp0_ = self->priv->tr;
	if (_tmp0_ == NULL) {
		result = FALSE;
		return result;
	}
	_tmp1_ = self->priv->tr;
	_tmp2_ = xmlTextReaderNodeType (_tmp1_);
	result = _tmp2_ == ((gint) XML_READER_TYPE_DOCUMENT);
	return result;
}


/**
   * Returns current node's local name, found by parser.
   */
static gchar* gxml_xparser_real_current_node_name (GXmlParser* base) {
	GXmlXParser * self;
	gchar* result = NULL;
	xmlTextReader* _tmp0_ = NULL;
	xmlTextReader* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	self = (GXmlXParser*) base;
	_tmp0_ = self->priv->tr;
	if (_tmp0_ == NULL) {
		gchar* _tmp1_ = NULL;
		_tmp1_ = g_strdup ("");
		result = _tmp1_;
		return result;
	}
	_tmp2_ = self->priv->tr;
	_tmp3_ = (const gchar*) xmlTextReaderConstLocalName (_tmp2_);
	_tmp4_ = g_strdup (_tmp3_);
	result = _tmp4_;
	return result;
}


/**
   * Creates a new {@link DomElement} and append it as a child of parent.
   *

   * It should set current namespace, taking care about set namespace prefix.
   */
static GXmlDomElement* gxml_xparser_real_create_element (GXmlParser* base, GXmlDomNode* parent, GError** error) {
	GXmlXParser * self;
	GXmlDomElement* result = NULL;
	xmlTextReader* _tmp0_ = NULL;
	GXmlDomElement* n = NULL;
	gchar* prefix = NULL;
	xmlTextReader* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	const gchar* _tmp5_ = NULL;
	GXmlDomNode* _tmp30_ = NULL;
	GXmlDomElement* _tmp31_ = NULL;
	GXmlDomNode* _tmp32_ = NULL;
	GXmlDomNode* _tmp33_ = NULL;
	GError * _inner_error_ = NULL;
	self = (GXmlXParser*) base;
	g_return_val_if_fail (parent != NULL, NULL);
	_tmp0_ = self->priv->tr;
	if (_tmp0_ == NULL) {
		const gchar* _tmp1_ = NULL;
		GError* _tmp2_ = NULL;
		_tmp1_ = _ ("Internal Error: No TextReader was set");
		_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 NULL;
	}
	n = NULL;
	_tmp3_ = self->priv->tr;
	_tmp4_ = (gchar*) xmlTextReaderPrefix (_tmp3_);
	prefix = _tmp4_;
	_tmp5_ = prefix;
	if (_tmp5_ != NULL) {
		gchar* nsuri = NULL;
		xmlTextReader* _tmp6_ = NULL;
		const gchar* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
		GXmlDomElement* _tmp9_ = NULL;
		GXmlDomDocument* _tmp10_ = NULL;
		const gchar* _tmp11_ = NULL;
		xmlTextReader* _tmp12_ = NULL;
		gchar* _tmp13_ = NULL;
		gchar* _tmp14_ = NULL;
		gchar* _tmp15_ = NULL;
		gchar* _tmp16_ = NULL;
		xmlTextReader* _tmp17_ = NULL;
		const gchar* _tmp18_ = NULL;
		gchar* _tmp19_ = NULL;
		gchar* _tmp20_ = NULL;
		GXmlDomElement* _tmp21_ = NULL;
		GXmlDomElement* _tmp22_ = NULL;
		GXmlDomElement* _tmp23_ = NULL;
		_tmp6_ = self->priv->tr;
		_tmp7_ = prefix;
		_tmp8_ = (gchar*) xmlTextReaderLookupNamespace (_tmp6_, (xmlChar*) _tmp7_);
		nsuri = _tmp8_;
		_tmp10_ = self->priv->_document;
		_tmp11_ = nsuri;
		_tmp12_ = self->priv->tr;
		_tmp13_ = (gchar*) xmlTextReaderPrefix (_tmp12_);
		_tmp14_ = _tmp13_;
		_tmp15_ = g_strconcat (_tmp14_, ":", NULL);
		_tmp16_ = _tmp15_;
		_tmp17_ = self->priv->tr;
		_tmp18_ = (const gchar*) xmlTextReaderConstLocalName (_tmp17_);
		_tmp19_ = g_strconcat (_tmp16_, _tmp18_, NULL);
		_tmp20_ = _tmp19_;
		_tmp21_ = gxml_dom_document_create_element_ns (_tmp10_, _tmp11_, _tmp20_, &_inner_error_);
		_tmp22_ = _tmp21_;
		_g_free0 (_tmp20_);
		_g_free0 (_tmp16_);
		_g_free0 (_tmp14_);
		_tmp9_ = _tmp22_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			g_propagate_error (error, _inner_error_);
			_g_free0 (nsuri);
			_g_free0 (prefix);
			_g_object_unref0 (n);
			return NULL;
		}
		_tmp23_ = _tmp9_;
		_tmp9_ = NULL;
		_g_object_unref0 (n);
		n = _tmp23_;
		_g_object_unref0 (_tmp9_);
		_g_free0 (nsuri);
	} else {
		GXmlDomElement* _tmp24_ = NULL;
		GXmlDomDocument* _tmp25_ = NULL;
		xmlTextReader* _tmp26_ = NULL;
		const gchar* _tmp27_ = NULL;
		GXmlDomElement* _tmp28_ = NULL;
		GXmlDomElement* _tmp29_ = NULL;
		_tmp25_ = self->priv->_document;
		_tmp26_ = self->priv->tr;
		_tmp27_ = (const gchar*) xmlTextReaderConstLocalName (_tmp26_);
		_tmp28_ = gxml_dom_document_create_element (_tmp25_, _tmp27_, &_inner_error_);
		_tmp24_ = _tmp28_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			g_propagate_error (error, _inner_error_);
			_g_free0 (prefix);
			_g_object_unref0 (n);
			return NULL;
		}
		_tmp29_ = _tmp24_;
		_tmp24_ = NULL;
		_g_object_unref0 (n);
		n = _tmp29_;
		_g_object_unref0 (_tmp24_);
	}
	_tmp30_ = parent;
	_tmp31_ = n;
	_tmp32_ = gxml_dom_node_append_child (_tmp30_, (GXmlDomNode*) _tmp31_, &_inner_error_);
	_tmp33_ = _tmp32_;
	_g_object_unref0 (_tmp33_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		g_propagate_error (error, _inner_error_);
		_g_free0 (prefix);
		_g_object_unref0 (n);
		return NULL;
	}
	result = n;
	_g_free0 (prefix);
	return result;
}


static void gxml_xparser_real_read_element (GXmlParser* base, GXmlDomElement* element, GError** error) {
	GXmlXParser * self;
	xmlTextReader* _tmp0_ = NULL;
	gint nattr = 0;
	xmlTextReader* _tmp3_ = NULL;
	gint _tmp4_ = 0;
	GError * _inner_error_ = NULL;
	self = (GXmlXParser*) base;
	g_return_if_fail (element != NULL);
	_tmp0_ = self->priv->tr;
	if (_tmp0_ == NULL) {
		const gchar* _tmp1_ = NULL;
		GError* _tmp2_ = NULL;
		_tmp1_ = _ ("Internal Error: No TextReader was set");
		_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_ = self->priv->tr;
	_tmp4_ = xmlTextReaderAttributeCount (_tmp3_);
	nattr = _tmp4_;
	{
		gint i = 0;
		i = 0;
		{
			gboolean _tmp5_ = FALSE;
			_tmp5_ = TRUE;
			while (TRUE) {
				gint _tmp7_ = 0;
				gint _tmp8_ = 0;
				gint c = 0;
				xmlTextReader* _tmp9_ = NULL;
				gint _tmp10_ = 0;
				gint _tmp11_ = 0;
				gint _tmp12_ = 0;
				xmlTextReader* _tmp19_ = NULL;
				gint _tmp20_ = 0;
				if (!_tmp5_) {
					gint _tmp6_ = 0;
					_tmp6_ = i;
					i = _tmp6_ + 1;
				}
				_tmp5_ = FALSE;
				_tmp7_ = i;
				_tmp8_ = nattr;
				if (!(_tmp7_ < _tmp8_)) {
					break;
				}
				_tmp9_ = self->priv->tr;
				_tmp10_ = i;
				_tmp11_ = xmlTextReaderMoveToAttributeNo (_tmp9_, _tmp10_);
				c = _tmp11_;
				_tmp12_ = c;
				if (_tmp12_ != 1) {
					const gchar* _tmp13_ = NULL;
					gint _tmp14_ = 0;
					gchar* _tmp15_ = NULL;
					gchar* _tmp16_ = NULL;
					GError* _tmp17_ = NULL;
					GError* _tmp18_ = NULL;
					_tmp13_ = _ ("Parsing ERROR: Fail to move to attribute number: %i");
					_tmp14_ = i;
					_tmp15_ = g_strdup_printf (_tmp13_, _tmp14_);
					_tmp16_ = _tmp15_;
					_tmp17_ = g_error_new_literal (GXML_DOM_ERROR, GXML_DOM_ERROR_HIERARCHY_REQUEST_ERROR, _tmp16_);
					_tmp18_ = _tmp17_;
					_g_free0 (_tmp16_);
					_inner_error_ = _tmp18_;
					g_propagate_error (error, _inner_error_);
					return;
				}
				_tmp19_ = self->priv->tr;
				_tmp20_ = xmlTextReaderIsNamespaceDecl (_tmp19_);
				if (_tmp20_ == 1) {
					gchar* nsp = NULL;
					xmlTextReader* _tmp21_ = NULL;
					const gchar* _tmp22_ = NULL;
					gchar* _tmp23_ = NULL;
					gchar* aprefix = NULL;
					xmlTextReader* _tmp24_ = NULL;
					gchar* _tmp25_ = NULL;
					xmlTextReader* _tmp26_ = NULL;
					xmlTextReader* _tmp27_ = NULL;
					gint _tmp28_ = 0;
					_tmp21_ = self->priv->tr;
					_tmp22_ = (const gchar*) xmlTextReaderConstLocalName (_tmp21_);
					_tmp23_ = g_strdup (_tmp22_);
					nsp = _tmp23_;
					_tmp24_ = self->priv->tr;
					_tmp25_ = (gchar*) xmlTextReaderPrefix (_tmp24_);
					aprefix = _tmp25_;
					_tmp26_ = self->priv->tr;
					xmlTextReaderReadAttributeValue (_tmp26_);
					_tmp27_ = self->priv->tr;
					_tmp28_ = xmlTextReaderNodeType (_tmp27_);
					if (_tmp28_ == ((gint) XML_READER_TYPE_TEXT)) {
						gchar* ansuri = NULL;
						xmlTextReader* _tmp29_ = NULL;
						gchar* _tmp30_ = NULL;
						gchar* ansp = NULL;
						const gchar* _tmp31_ = NULL;
						gchar* _tmp32_ = NULL;
						const gchar* _tmp33_ = NULL;
						GXmlDomElement* _tmp39_ = NULL;
						const gchar* _tmp40_ = NULL;
						const gchar* _tmp41_ = NULL;
						_tmp29_ = self->priv->tr;
						_tmp30_ = (gchar*) xmlTextReaderReadString (_tmp29_);
						ansuri = _tmp30_;
						_tmp31_ = nsp;
						_tmp32_ = g_strdup (_tmp31_);
						ansp = _tmp32_;
						_tmp33_ = nsp;
						if (g_strcmp0 (_tmp33_, "xmlns") != 0) {
							const gchar* _tmp34_ = NULL;
							gchar* _tmp35_ = NULL;
							gchar* _tmp36_ = NULL;
							const gchar* _tmp37_ = NULL;
							gchar* _tmp38_ = NULL;
							_tmp34_ = aprefix;
							_tmp35_ = g_strconcat (_tmp34_, ":", NULL);
							_tmp36_ = _tmp35_;
							_tmp37_ = nsp;
							_tmp38_ = g_strconcat (_tmp36_, _tmp37_, NULL);
							_g_free0 (ansp);
							ansp = _tmp38_;
							_g_free0 (_tmp36_);
						}
						_tmp39_ = element;
						_tmp40_ = ansp;
						_tmp41_ = ansuri;
						gxml_dom_element_set_attribute_ns (_tmp39_, "http://www.w3.org/2000/xmlns/", _tmp40_, _tmp41_, &_inner_error_);
						if (G_UNLIKELY (_inner_error_ != NULL)) {
							g_propagate_error (error, _inner_error_);
							_g_free0 (ansp);
							_g_free0 (ansuri);
							_g_free0 (aprefix);
							_g_free0 (nsp);
							return;
						}
						_g_free0 (ansp);
						_g_free0 (ansuri);
					}
					_g_free0 (aprefix);
					_g_free0 (nsp);
				} else {
					gchar* attrname = NULL;
					xmlTextReader* _tmp42_ = NULL;
					const gchar* _tmp43_ = NULL;
					gchar* _tmp44_ = NULL;
					gchar* prefix = NULL;
					xmlTextReader* _tmp45_ = NULL;
					gchar* _tmp46_ = NULL;
					xmlTextReader* _tmp47_ = NULL;
					xmlTextReader* _tmp48_ = NULL;
					gint _tmp49_ = 0;
					_tmp42_ = self->priv->tr;
					_tmp43_ = (const gchar*) xmlTextReaderConstLocalName (_tmp42_);
					_tmp44_ = g_strdup (_tmp43_);
					attrname = _tmp44_;
					_tmp45_ = self->priv->tr;
					_tmp46_ = (gchar*) xmlTextReaderPrefix (_tmp45_);
					prefix = _tmp46_;
					_tmp47_ = self->priv->tr;
					xmlTextReaderReadAttributeValue (_tmp47_);
					_tmp48_ = self->priv->tr;
					_tmp49_ = xmlTextReaderNodeType (_tmp48_);
					if (_tmp49_ == ((gint) XML_READER_TYPE_TEXT)) {
						gchar* attrval = NULL;
						xmlTextReader* _tmp50_ = NULL;
						gchar* _tmp51_ = NULL;
						gboolean processed = FALSE;
						gchar* attn = NULL;
						const gchar* _tmp52_ = NULL;
						gchar* _tmp53_ = NULL;
						const gchar* _tmp54_ = NULL;
						GXmlDomNode* _tmp60_ = NULL;
						GXmlDomNode* _tmp61_ = NULL;
						gboolean _tmp66_ = FALSE;
						_tmp50_ = self->priv->tr;
						_tmp51_ = (gchar*) xmlTextReaderReadString (_tmp50_);
						attrval = _tmp51_;
						processed = FALSE;
						_tmp52_ = attrname;
						_tmp53_ = g_strdup (_tmp52_);
						attn = _tmp53_;
						_tmp54_ = prefix;
						if (_tmp54_ != NULL) {
							const gchar* _tmp55_ = NULL;
							gchar* _tmp56_ = NULL;
							gchar* _tmp57_ = NULL;
							const gchar* _tmp58_ = NULL;
							gchar* _tmp59_ = NULL;
							_tmp55_ = prefix;
							_tmp56_ = g_strconcat (_tmp55_, ":", NULL);
							_tmp57_ = _tmp56_;
							_tmp58_ = attrname;
							_tmp59_ = g_strconcat (_tmp57_, _tmp58_, NULL);
							_g_free0 (attn);
							attn = _tmp59_;
							_g_free0 (_tmp57_);
						}
						_tmp60_ = gxml_parser_get_node ((GXmlParser*) self);
						_tmp61_ = _tmp60_;
						if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp61_, GXML_TYPE_GOM_OBJECT)) {
							GXmlDomElement* _tmp62_ = NULL;
							const gchar* _tmp63_ = NULL;
							const gchar* _tmp64_ = NULL;
							gboolean _tmp65_ = FALSE;
							_tmp62_ = element;
							_tmp63_ = attn;
							_tmp64_ = attrval;
							_tmp65_ = gxml_gom_object_set_attribute (G_TYPE_CHECK_INSTANCE_TYPE (_tmp62_, GXML_TYPE_GOM_OBJECT) ? ((GXmlGomObject*) _tmp62_) : NULL, _tmp63_, _tmp64_);
							processed = _tmp65_;
						}
						_tmp66_ = processed;
						if (!_tmp66_) {
							const gchar* _tmp67_ = NULL;
							_tmp67_ = prefix;
							if (_tmp67_ != NULL) {
								gchar* nsuri = NULL;
								const gchar* _tmp68_ = NULL;
								GXmlDomElement* _tmp73_ = NULL;
								const gchar* _tmp74_ = NULL;
								const gchar* _tmp75_ = NULL;
								gchar* _tmp76_ = NULL;
								gchar* _tmp77_ = NULL;
								const gchar* _tmp78_ = NULL;
								gchar* _tmp79_ = NULL;
								gchar* _tmp80_ = NULL;
								const gchar* _tmp81_ = NULL;
								nsuri = NULL;
								_tmp68_ = prefix;
								if (g_strcmp0 (_tmp68_, "xml") == 0) {
									gchar* _tmp69_ = NULL;
									_tmp69_ = g_strdup ("http://www.w3.org/2000/xmlns/");
									_g_free0 (nsuri);
									nsuri = _tmp69_;
								} else {
									xmlTextReader* _tmp70_ = NULL;
									const gchar* _tmp71_ = NULL;
									gchar* _tmp72_ = NULL;
									_tmp70_ = self->priv->tr;
									_tmp71_ = prefix;
									_tmp72_ = (gchar*) xmlTextReaderLookupNamespace (_tmp70_, (xmlChar*) _tmp71_);
									_g_free0 (nsuri);
									nsuri = _tmp72_;
								}
								_tmp73_ = element;
								_tmp74_ = nsuri;
								_tmp75_ = prefix;
								_tmp76_ = g_strconcat (_tmp75_, ":", NULL);
								_tmp77_ = _tmp76_;
								_tmp78_ = attrname;
								_tmp79_ = g_strconcat (_tmp77_, _tmp78_, NULL);
								_tmp80_ = _tmp79_;
								_tmp81_ = attrval;
								gxml_dom_element_set_attribute_ns (_tmp73_, _tmp74_, _tmp80_, _tmp81_, &_inner_error_);
								_g_free0 (_tmp80_);
								_g_free0 (_tmp77_);
								if (G_UNLIKELY (_inner_error_ != NULL)) {
									g_propagate_error (error, _inner_error_);
									_g_free0 (nsuri);
									_g_free0 (attn);
									_g_free0 (attrval);
									_g_free0 (prefix);
									_g_free0 (attrname);
									return;
								}
								_g_free0 (nsuri);
							} else {
								GXmlDomElement* _tmp82_ = NULL;
								const gchar* _tmp83_ = NULL;
								const gchar* _tmp84_ = NULL;
								_tmp82_ = element;
								_tmp83_ = attrname;
								_tmp84_ = attrval;
								gxml_dom_element_set_attribute (_tmp82_, _tmp83_, _tmp84_, &_inner_error_);
								if (G_UNLIKELY (_inner_error_ != NULL)) {
									g_propagate_error (error, _inner_error_);
									_g_free0 (attn);
									_g_free0 (attrval);
									_g_free0 (prefix);
									_g_free0 (attrname);
									return;
								}
							}
						}
						_g_free0 (attn);
						_g_free0 (attrval);
					}
					_g_free0 (prefix);
					_g_free0 (attrname);
				}
			}
		}
	}
}


static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) {
	gchar* result = NULL;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (old != NULL, NULL);
	g_return_val_if_fail (replacement != NULL, NULL);
	{
		GRegex* regex = NULL;
		const gchar* _tmp0_ = NULL;
		gchar* _tmp1_ = NULL;
		gchar* _tmp2_ = NULL;
		GRegex* _tmp3_ = NULL;
		GRegex* _tmp4_ = NULL;
		gchar* _tmp5_ = NULL;
		GRegex* _tmp6_ = NULL;
		const gchar* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
		_tmp0_ = old;
		_tmp1_ = g_regex_escape_string (_tmp0_, -1);
		_tmp2_ = _tmp1_;
		_tmp3_ = g_regex_new (_tmp2_, 0, 0, &_inner_error_);
		_tmp4_ = _tmp3_;
		_g_free0 (_tmp2_);
		regex = _tmp4_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == G_REGEX_ERROR) {
				goto __catch26_g_regex_error;
			}
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
			g_clear_error (&_inner_error_);
			return NULL;
		}
		_tmp6_ = regex;
		_tmp7_ = replacement;
		_tmp8_ = g_regex_replace_literal (_tmp6_, self, (gssize) -1, 0, _tmp7_, 0, &_inner_error_);
		_tmp5_ = _tmp8_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			_g_regex_unref0 (regex);
			if (_inner_error_->domain == G_REGEX_ERROR) {
				goto __catch26_g_regex_error;
			}
			_g_regex_unref0 (regex);
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
			g_clear_error (&_inner_error_);
			return NULL;
		}
		_tmp9_ = _tmp5_;
		_tmp5_ = NULL;
		result = _tmp9_;
		_g_free0 (_tmp5_);
		_g_regex_unref0 (regex);
		return result;
	}
	goto __finally26;
	__catch26_g_regex_error:
	{
		GError* e = NULL;
		e = _inner_error_;
		_inner_error_ = NULL;
		g_assert_not_reached ();
		_g_error_free0 (e);
	}
	__finally26:
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
		g_clear_error (&_inner_error_);
		return NULL;
	}
}


static gchar* string_chomp (const gchar* self) {
	gchar* result = NULL;
	gchar* _result_ = NULL;
	gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = g_strdup (self);
	_result_ = _tmp0_;
	_tmp1_ = _result_;
	g_strchomp (_tmp1_);
	result = _result_;
	return result;
}


static gchar* string_strip (const gchar* self) {
	gchar* result = NULL;
	gchar* _result_ = NULL;
	gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = g_strdup (self);
	_result_ = _tmp0_;
	_tmp1_ = _result_;
	g_strstrip (_tmp1_);
	result = _result_;
	return result;
}


static gboolean gxml_xparser_real_read_child_node (GXmlParser* base, GXmlDomNode* parent, GError** error) {
	GXmlXParser * self;
	gboolean result = FALSE;
	xmlTextReader* _tmp0_ = NULL;
	GXmlDomNode* n = NULL;
	gboolean ret = FALSE;
	gint t = 0;
	xmlTextReader* _tmp4_ = NULL;
	gint _tmp5_ = 0;
	gint _tmp6_ = 0;
	GError * _inner_error_ = NULL;
	self = (GXmlXParser*) base;
	g_return_val_if_fail (parent != NULL, FALSE);
	_tmp0_ = self->priv->tr;
	if (_tmp0_ == NULL) {
		const gchar* _tmp1_ = NULL;
		GError* _tmp2_ = NULL;
		gboolean _tmp3_ = FALSE;
		_tmp1_ = _ ("Internal Error: No TextReader was set");
		_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_;
	}
	n = NULL;
	ret = TRUE;
	_tmp4_ = self->priv->tr;
	_tmp5_ = xmlTextReaderNodeType (_tmp4_);
	t = _tmp5_;
	_tmp6_ = t;
	switch (_tmp6_) {
		case XML_READER_TYPE_NONE:
		{
			gxml_parser_move_next_node ((GXmlParser*) self, &_inner_error_);
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				gboolean _tmp7_ = FALSE;
				g_propagate_error (error, _inner_error_);
				_g_object_unref0 (n);
				return _tmp7_;
			}
			break;
		}
		case XML_READER_TYPE_ATTRIBUTE:
		{
			break;
		}
		case XML_READER_TYPE_TEXT:
		{
			gchar* txtval = NULL;
			xmlTextReader* _tmp8_ = NULL;
			gchar* _tmp9_ = NULL;
			GXmlDomNode* _tmp10_ = NULL;
			_tmp8_ = self->priv->tr;
			_tmp9_ = (gchar*) xmlTextReaderReadString (_tmp8_);
			txtval = _tmp9_;
			_tmp10_ = parent;
			if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, GXML_TYPE_DOM_DOCUMENT)) {
				GXmlDomText* _tmp11_ = NULL;
				GXmlDomDocument* _tmp12_ = NULL;
				const gchar* _tmp13_ = NULL;
				GXmlDomText* _tmp14_ = NULL;
				GXmlDomText* _tmp16_ = NULL;
				GXmlDomNode* _tmp17_ = NULL;
				GXmlDomNode* _tmp18_ = NULL;
				GXmlDomNode* _tmp19_ = NULL;
				GXmlDomNode* _tmp20_ = NULL;
				_tmp12_ = self->priv->_document;
				_tmp13_ = txtval;
				_tmp14_ = gxml_dom_document_create_text_node (_tmp12_, _tmp13_, &_inner_error_);
				_tmp11_ = _tmp14_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					gboolean _tmp15_ = FALSE;
					g_propagate_error (error, _inner_error_);
					_g_free0 (txtval);
					_g_object_unref0 (n);
					return _tmp15_;
				}
				_tmp16_ = _tmp11_;
				_tmp11_ = NULL;
				_g_object_unref0 (n);
				n = (GXmlDomNode*) _tmp16_;
				_tmp17_ = parent;
				_tmp18_ = n;
				_tmp19_ = gxml_dom_node_append_child (_tmp17_, _tmp18_, &_inner_error_);
				_tmp20_ = _tmp19_;
				_g_object_unref0 (_tmp20_);
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					gboolean _tmp21_ = FALSE;
					g_propagate_error (error, _inner_error_);
					_g_object_unref0 (_tmp11_);
					_g_free0 (txtval);
					_g_object_unref0 (n);
					return _tmp21_;
				}
				_g_object_unref0 (_tmp11_);
			}
			_g_free0 (txtval);
			break;
		}
		case XML_READER_TYPE_CDATA:
		{
			break;
		}
		case XML_READER_TYPE_ENTITY_REFERENCE:
		{
			break;
		}
		case XML_READER_TYPE_ENTITY:
		{
			break;
		}
		case XML_READER_TYPE_PROCESSING_INSTRUCTION:
		{
			gchar* pit = NULL;
			xmlTextReader* _tmp22_ = NULL;
			const gchar* _tmp23_ = NULL;
			gchar* _tmp24_ = NULL;
			gchar* pival = NULL;
			xmlTextReader* _tmp25_ = NULL;
			gchar* _tmp26_ = NULL;
			GXmlDomProcessingInstruction* _tmp27_ = NULL;
			GXmlDomDocument* _tmp28_ = NULL;
			const gchar* _tmp29_ = NULL;
			const gchar* _tmp30_ = NULL;
			GXmlDomProcessingInstruction* _tmp31_ = NULL;
			GXmlDomProcessingInstruction* _tmp33_ = NULL;
			GXmlDomNode* _tmp34_ = NULL;
			GXmlDomNode* _tmp35_ = NULL;
			GXmlDomNode* _tmp36_ = NULL;
			GXmlDomNode* _tmp37_ = NULL;
			_tmp22_ = self->priv->tr;
			_tmp23_ = (const gchar*) xmlTextReaderConstLocalName (_tmp22_);
			_tmp24_ = g_strdup (_tmp23_);
			pit = _tmp24_;
			_tmp25_ = self->priv->tr;
			_tmp26_ = (gchar*) xmlTextReaderValue (_tmp25_);
			pival = _tmp26_;
			_tmp28_ = self->priv->_document;
			_tmp29_ = pit;
			_tmp30_ = pival;
			_tmp31_ = gxml_dom_document_create_processing_instruction (_tmp28_, _tmp29_, _tmp30_, &_inner_error_);
			_tmp27_ = _tmp31_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				gboolean _tmp32_ = FALSE;
				g_propagate_error (error, _inner_error_);
				_g_free0 (pival);
				_g_free0 (pit);
				_g_object_unref0 (n);
				return _tmp32_;
			}
			_tmp33_ = _tmp27_;
			_tmp27_ = NULL;
			_g_object_unref0 (n);
			n = (GXmlDomNode*) _tmp33_;
			_tmp34_ = parent;
			_tmp35_ = n;
			_tmp36_ = gxml_dom_node_append_child (_tmp34_, _tmp35_, &_inner_error_);
			_tmp37_ = _tmp36_;
			_g_object_unref0 (_tmp37_);
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				gboolean _tmp38_ = FALSE;
				g_propagate_error (error, _inner_error_);
				_g_object_unref0 (_tmp27_);
				_g_free0 (pival);
				_g_free0 (pit);
				_g_object_unref0 (n);
				return _tmp38_;
			}
			_g_object_unref0 (_tmp27_);
			_g_free0 (pival);
			_g_free0 (pit);
			break;
		}
		case XML_READER_TYPE_COMMENT:
		{
			gchar* commval = NULL;
			xmlTextReader* _tmp39_ = NULL;
			gchar* _tmp40_ = NULL;
			GXmlDomComment* _tmp41_ = NULL;
			GXmlDomDocument* _tmp42_ = NULL;
			const gchar* _tmp43_ = NULL;
			GXmlDomComment* _tmp44_ = NULL;
			GXmlDomComment* _tmp46_ = NULL;
			GXmlDomNode* _tmp47_ = NULL;
			GXmlDomNode* _tmp48_ = NULL;
			GXmlDomNode* _tmp49_ = NULL;
			GXmlDomNode* _tmp50_ = NULL;
			_tmp39_ = self->priv->tr;
			_tmp40_ = (gchar*) xmlTextReaderValue (_tmp39_);
			commval = _tmp40_;
			_tmp42_ = self->priv->_document;
			_tmp43_ = commval;
			_tmp44_ = gxml_dom_document_create_comment (_tmp42_, _tmp43_, &_inner_error_);
			_tmp41_ = _tmp44_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				gboolean _tmp45_ = FALSE;
				g_propagate_error (error, _inner_error_);
				_g_free0 (commval);
				_g_object_unref0 (n);
				return _tmp45_;
			}
			_tmp46_ = _tmp41_;
			_tmp41_ = NULL;
			_g_object_unref0 (n);
			n = (GXmlDomNode*) _tmp46_;
			_tmp47_ = parent;
			_tmp48_ = n;
			_tmp49_ = gxml_dom_node_append_child (_tmp47_, _tmp48_, &_inner_error_);
			_tmp50_ = _tmp49_;
			_g_object_unref0 (_tmp50_);
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				gboolean _tmp51_ = FALSE;
				g_propagate_error (error, _inner_error_);
				_g_object_unref0 (_tmp41_);
				_g_free0 (commval);
				_g_object_unref0 (n);
				return _tmp51_;
			}
			_g_object_unref0 (_tmp41_);
			_g_free0 (commval);
			break;
		}
		case XML_READER_TYPE_DOCUMENT:
		{
			ret = FALSE;
			break;
		}
		case XML_READER_TYPE_DOCUMENT_TYPE:
		{
			xmlBuffer* bf = NULL;
			xmlBuffer* _tmp52_ = NULL;
			xmlNode* xn = NULL;
			xmlTextReader* _tmp53_ = NULL;
			xmlNode* _tmp54_ = NULL;
			xmlBuffer* _tmp55_ = NULL;
			xmlNode* _tmp56_ = NULL;
			xmlDoc* _tmp57_ = NULL;
			xmlNode* _tmp58_ = NULL;
			gchar* sids = NULL;
			xmlBuffer* _tmp59_ = NULL;
			const gchar* _tmp60_ = NULL;
			gchar* _tmp61_ = NULL;
			GRegex* reg = NULL;
			GRegex* _tmp62_ = NULL;
			GMatchInfo* info = NULL;
			GRegex* _tmp64_ = NULL;
			const gchar* _tmp65_ = NULL;
			GMatchInfo* _tmp66_ = NULL;
			gboolean _tmp67_ = FALSE;
			gchar* pid = NULL;
			GMatchInfo* _tmp72_ = NULL;
			gchar* _tmp73_ = NULL;
			const gchar* _tmp74_ = NULL;
			gchar* sid = NULL;
			GMatchInfo* _tmp81_ = NULL;
			gchar* _tmp82_ = NULL;
			const gchar* _tmp83_ = NULL;
			GXmlDomDocument* _tmp90_ = NULL;
			xmlTextReader* _tmp91_ = NULL;
			const gchar* _tmp92_ = NULL;
			const gchar* _tmp93_ = NULL;
			const gchar* _tmp94_ = NULL;
			GXmlGomDocumentType* _tmp95_ = NULL;
			GXmlDomNode* _tmp96_ = NULL;
			GXmlDomNode* _tmp97_ = NULL;
			GXmlDomNode* _tmp98_ = NULL;
			GXmlDomNode* _tmp99_ = NULL;
			_tmp52_ = xmlBufferCreate ();
			bf = _tmp52_;
			_tmp53_ = self->priv->tr;
			_tmp54_ = xmlTextReaderCurrentNode (_tmp53_);
			xn = _tmp54_;
			_tmp55_ = bf;
			_tmp56_ = xn;
			_tmp57_ = _tmp56_->doc;
			_tmp58_ = xn;
			xmlNodeDump (_tmp55_, _tmp57_, _tmp58_, 0, 0);
			_tmp59_ = bf;
			_tmp60_ = xmlBufferContent (_tmp59_);
			_tmp61_ = g_strdup (_tmp60_);
			sids = _tmp61_;
			_tmp62_ = g_regex_new ("^<!DOCTYPE\\s*((([a-z]*|[A-Z]*))|(([a-z]*|[A-Z]*)\\s*PUBLIC\\s*(?<pid>" \
" \".*\")\\s*(?<sid> \".*\")))\\s*>", 0, 0, &_inner_error_);
			reg = _tmp62_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				gboolean _tmp63_ = FALSE;
				g_propagate_error (error, _inner_error_);
				_g_free0 (sids);
				_xmlBufferFree0 (bf);
				_g_object_unref0 (n);
				return _tmp63_;
			}
			info = NULL;
			_tmp64_ = reg;
			_tmp65_ = sids;
			_tmp67_ = g_regex_match (_tmp64_, _tmp65_, G_REGEX_MATCH_ANCHORED, &_tmp66_);
			_g_match_info_unref0 (info);
			info = _tmp66_;
			if (!_tmp67_) {
				const gchar* _tmp68_ = NULL;
				gchar* _tmp69_ = NULL;
				gchar* _tmp70_ = NULL;
				const gchar* _tmp71_ = NULL;
				_tmp68_ = sids;
				_tmp69_ = g_strconcat ("Invalid sequence for document type definition: ", _tmp68_, NULL);
				_tmp70_ = _tmp69_;
				_tmp71_ = _ (_tmp70_);
				g_warning ("XParser.vala:360: %s", _tmp71_);
				_g_free0 (_tmp70_);
				result = FALSE;
				_g_match_info_unref0 (info);
				_g_regex_unref0 (reg);
				_g_free0 (sids);
				_xmlBufferFree0 (bf);
				_g_object_unref0 (n);
				return result;
			}
			_tmp72_ = info;
			_tmp73_ = g_match_info_fetch_named (_tmp72_, "pid");
			pid = _tmp73_;
			_tmp74_ = pid;
			if (_tmp74_ != NULL) {
				const gchar* _tmp75_ = NULL;
				gchar* _tmp76_ = NULL;
				gchar* _tmp77_ = NULL;
				gchar* _tmp78_ = NULL;
				gchar* _tmp79_ = NULL;
				gchar* _tmp80_ = NULL;
				_tmp75_ = pid;
				_tmp76_ = string_replace (_tmp75_, "\"", "");
				_tmp77_ = _tmp76_;
				_tmp78_ = string_chomp (_tmp77_);
				_tmp79_ = _tmp78_;
				_tmp80_ = string_strip (_tmp79_);
				_g_free0 (pid);
				pid = _tmp80_;
				_g_free0 (_tmp79_);
				_g_free0 (_tmp77_);
			}
			_tmp81_ = info;
			_tmp82_ = g_match_info_fetch_named (_tmp81_, "sid");
			sid = _tmp82_;
			_tmp83_ = sid;
			if (_tmp83_ != NULL) {
				const gchar* _tmp84_ = NULL;
				gchar* _tmp85_ = NULL;
				gchar* _tmp86_ = NULL;
				gchar* _tmp87_ = NULL;
				gchar* _tmp88_ = NULL;
				gchar* _tmp89_ = NULL;
				_tmp84_ = sid;
				_tmp85_ = string_replace (_tmp84_, "\"", "");
				_tmp86_ = _tmp85_;
				_tmp87_ = string_chomp (_tmp86_);
				_tmp88_ = _tmp87_;
				_tmp89_ = string_strip (_tmp88_);
				_g_free0 (sid);
				sid = _tmp89_;
				_g_free0 (_tmp88_);
				_g_free0 (_tmp86_);
			}
			_tmp90_ = self->priv->_document;
			_tmp91_ = self->priv->tr;
			_tmp92_ = (const gchar*) xmlTextReaderConstLocalName (_tmp91_);
			_tmp93_ = pid;
			_tmp94_ = sid;
			_tmp95_ = gxml_gom_document_type_new (_tmp90_, _tmp92_, _tmp93_, _tmp94_);
			_g_object_unref0 (n);
			n = (GXmlDomNode*) _tmp95_;
			_tmp96_ = parent;
			_tmp97_ = n;
			_tmp98_ = gxml_dom_node_append_child (_tmp96_, _tmp97_, &_inner_error_);
			_tmp99_ = _tmp98_;
			_g_object_unref0 (_tmp99_);
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				gboolean _tmp100_ = FALSE;
				g_propagate_error (error, _inner_error_);
				_g_free0 (sid);
				_g_free0 (pid);
				_g_match_info_unref0 (info);
				_g_regex_unref0 (reg);
				_g_free0 (sids);
				_xmlBufferFree0 (bf);
				_g_object_unref0 (n);
				return _tmp100_;
			}
			_g_free0 (sid);
			_g_free0 (pid);
			_g_match_info_unref0 (info);
			_g_regex_unref0 (reg);
			_g_free0 (sids);
			_xmlBufferFree0 (bf);
			break;
		}
		case XML_READER_TYPE_DOCUMENT_FRAGMENT:
		{
			ret = FALSE;
			break;
		}
		case XML_READER_TYPE_NOTATION:
		{
			break;
		}
		case XML_READER_TYPE_WHITESPACE:
		{
			break;
		}
		case XML_READER_TYPE_SIGNIFICANT_WHITESPACE:
		{
			gchar* stxtval = NULL;
			xmlTextReader* _tmp101_ = NULL;
			gchar* _tmp102_ = NULL;
			GXmlDomNode* _tmp103_ = NULL;
			_tmp101_ = self->priv->tr;
			_tmp102_ = (gchar*) xmlTextReaderReadString (_tmp101_);
			stxtval = _tmp102_;
			_tmp103_ = parent;
			if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp103_, GXML_TYPE_DOM_DOCUMENT)) {
				GXmlDomText* _tmp104_ = NULL;
				GXmlDomDocument* _tmp105_ = NULL;
				const gchar* _tmp106_ = NULL;
				GXmlDomText* _tmp107_ = NULL;
				GXmlDomText* _tmp109_ = NULL;
				GXmlDomNode* _tmp110_ = NULL;
				GXmlDomNode* _tmp111_ = NULL;
				GXmlDomNode* _tmp112_ = NULL;
				GXmlDomNode* _tmp113_ = NULL;
				_tmp105_ = self->priv->_document;
				_tmp106_ = stxtval;
				_tmp107_ = gxml_dom_document_create_text_node (_tmp105_, _tmp106_, &_inner_error_);
				_tmp104_ = _tmp107_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					gboolean _tmp108_ = FALSE;
					g_propagate_error (error, _inner_error_);
					_g_free0 (stxtval);
					_g_object_unref0 (n);
					return _tmp108_;
				}
				_tmp109_ = _tmp104_;
				_tmp104_ = NULL;
				_g_object_unref0 (n);
				n = (GXmlDomNode*) _tmp109_;
				_tmp110_ = parent;
				_tmp111_ = n;
				_tmp112_ = gxml_dom_node_append_child (_tmp110_, _tmp111_, &_inner_error_);
				_tmp113_ = _tmp112_;
				_g_object_unref0 (_tmp113_);
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					gboolean _tmp114_ = FALSE;
					g_propagate_error (error, _inner_error_);
					_g_object_unref0 (_tmp104_);
					_g_free0 (stxtval);
					_g_object_unref0 (n);
					return _tmp114_;
				}
				_g_object_unref0 (_tmp104_);
			}
			_g_free0 (stxtval);
			break;
		}
		case XML_READER_TYPE_END_ELEMENT:
		{
			ret = FALSE;
			break;
		}
		case XML_READER_TYPE_END_ENTITY:
		{
			ret = FALSE;
			break;
		}
		case XML_READER_TYPE_XML_DECLARATION:
		{
			ret = FALSE;
			break;
		}
		case XML_READER_TYPE_ELEMENT:
		{
			ret = FALSE;
			break;
		}
		default:
		break;
	}
	result = ret;
	_g_object_unref0 (n);
	return result;
}


static gchar* gxml_xparser_dump (GXmlXParser* self, GError** error) {
	gchar* result = NULL;
	gint size = 0;
	xmlDoc* doc = NULL;
	xmlTextWriter* _tmp0_ = NULL;
	GXmlDomNode* _tmp1_ = NULL;
	xmlTextWriter* _tmp3_ = NULL;
	gboolean _tmp4_ = FALSE;
	gboolean _tmp5_ = FALSE;
	GXmlDomNode* _tmp6_ = NULL;
	GXmlDomNode* _tmp14_ = NULL;
	xmlTextWriter* _tmp15_ = NULL;
	xmlTextWriter* _tmp16_ = NULL;
	xmlTextWriter* _tmp17_ = NULL;
	gchar* str = NULL;
	xmlDoc* _tmp18_ = NULL;
	gchar* _tmp19_ = NULL;
	gint _tmp20_ = 0;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	doc = NULL;
	_tmp0_ = xmlNewTextWriterDoc (&doc, FALSE);
	_xmlFreeTextWriter0 (self->priv->tw);
	self->priv->tw = _tmp0_;
	_tmp1_ = self->priv->_node;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, GXML_TYPE_DOM_DOCUMENT)) {
		xmlTextWriter* _tmp2_ = NULL;
		_tmp2_ = self->priv->tw;
		xmlTextWriterStartDocument (_tmp2_, NULL, NULL, NULL);
	}
	_tmp3_ = self->priv->tw;
	_tmp4_ = gxml_parser_get_indent ((GXmlParser*) self);
	_tmp5_ = _tmp4_;
	xmlTextWriterSetIndent (_tmp3_, _tmp5_);
	_tmp6_ = self->priv->_node;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, GXML_TYPE_DOM_DOCUMENT)) {
		GXmlDomNode* _tmp7_ = NULL;
		GXmlDomNode* _tmp8_ = NULL;
		GXmlDomElement* _tmp9_ = NULL;
		GXmlDomElement* _tmp10_ = NULL;
		GXmlDomElement* _tmp11_ = NULL;
		gboolean _tmp12_ = FALSE;
		_tmp7_ = gxml_parser_get_node ((GXmlParser*) self);
		_tmp8_ = _tmp7_;
		_tmp9_ = gxml_dom_document_get_document_element (G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, GXML_TYPE_DOM_DOCUMENT) ? ((GXmlDomDocument*) _tmp8_) : NULL);
		_tmp10_ = _tmp9_;
		_tmp11_ = _tmp10_;
		_tmp12_ = _tmp11_ == NULL;
		_g_object_unref0 (_tmp11_);
		if (_tmp12_) {
			xmlTextWriter* _tmp13_ = NULL;
			_tmp13_ = self->priv->tw;
			xmlTextWriterEndDocument (_tmp13_);
		}
	}
	_tmp14_ = self->priv->_node;
	gxml_xparser_start_node (self, _tmp14_, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		g_propagate_error (error, _inner_error_);
		_xmlFreeDoc0 (doc);
		return NULL;
	}
	_tmp15_ = self->priv->tw;
	xmlTextWriterEndElement (_tmp15_);
	_tmp16_ = self->priv->tw;
	xmlTextWriterEndDocument (_tmp16_);
	_tmp17_ = self->priv->tw;
	xmlTextWriterFlush (_tmp17_);
	_tmp18_ = doc;
	xmlDocDumpMemory (_tmp18_, (xmlChar**) (&_tmp19_), &_tmp20_);
	_g_free0 (str);
	str = _tmp19_;
	size = _tmp20_;
	_xmlFreeTextWriter0 (self->priv->tw);
	self->priv->tw = NULL;
	result = str;
	_xmlFreeDoc0 (doc);
	return result;
}


static gpointer _g_param_spec_ref0 (gpointer self) {
	return self ? g_param_spec_ref (self) : NULL;
}


static gboolean string_contains (const gchar* self, const gchar* needle) {
	gboolean result = FALSE;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	g_return_val_if_fail (self != NULL, FALSE);
	g_return_val_if_fail (needle != NULL, FALSE);
	_tmp0_ = needle;
	_tmp1_ = strstr ((gchar*) self, (gchar*) _tmp0_);
	result = _tmp1_ != NULL;
	return result;
}


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 void gxml_xparser_start_node (GXmlXParser* self, GXmlDomNode* node, GError** error) {
	xmlTextWriter* _tmp0_ = NULL;
	gint size = 0;
	GXmlDomNode* _tmp3_ = NULL;
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (node != NULL);
	_tmp0_ = self->priv->tw;
	if (_tmp0_ == NULL) {
		const gchar* _tmp1_ = NULL;
		GError* _tmp2_ = NULL;
		_tmp1_ = _ ("Internal Error: No TextWriter initialized");
		_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;
	}
	size = 0;
	_tmp3_ = node;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, GXML_TYPE_DOM_ELEMENT)) {
		GXmlDomNode* _tmp4_ = NULL;
		gchar* _tmp5_ = NULL;
		gchar* _tmp6_ = NULL;
		gchar* _tmp7_ = NULL;
		gboolean _tmp8_ = FALSE;
		GList* lp = NULL;
		GXmlDomNode* _tmp53_ = NULL;
		GList* _tmp54_ = NULL;
		GList* _tmp55_ = NULL;
		_tmp4_ = node;
		_tmp5_ = gxml_dom_element_get_namespace_uri (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, GXML_TYPE_DOM_ELEMENT) ? ((GXmlDomElement*) _tmp4_) : NULL);
		_tmp6_ = _tmp5_;
		_tmp7_ = _tmp6_;
		_tmp8_ = _tmp7_ != NULL;
		_g_free0 (_tmp7_);
		if (_tmp8_) {
			gchar* lpns = NULL;
			GXmlDomNode* _tmp9_ = NULL;
			GXmlDomNode* _tmp10_ = NULL;
			GXmlDomNode* _tmp11_ = NULL;
			GXmlDomNode* _tmp12_ = NULL;
			GXmlDomNode* _tmp13_ = NULL;
			gchar* _tmp14_ = NULL;
			gchar* _tmp15_ = NULL;
			gchar* _tmp16_ = NULL;
			gchar* _tmp17_ = NULL;
			gchar* _tmp18_ = NULL;
			gboolean _tmp19_ = FALSE;
			const gchar* _tmp20_ = NULL;
			GXmlDomNode* _tmp21_ = NULL;
			gchar* _tmp22_ = NULL;
			gchar* _tmp23_ = NULL;
			gchar* _tmp24_ = NULL;
			gboolean _tmp25_ = FALSE;
			_tmp9_ = node;
			_tmp10_ = gxml_dom_node_get_parent_node (_tmp9_);
			_tmp11_ = _tmp10_;
			_tmp12_ = _tmp11_;
			_tmp13_ = node;
			_tmp14_ = gxml_dom_element_get_namespace_uri (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, GXML_TYPE_DOM_ELEMENT) ? ((GXmlDomElement*) _tmp13_) : NULL);
			_tmp15_ = _tmp14_;
			_tmp16_ = _tmp15_;
			_tmp17_ = gxml_dom_node_lookup_prefix (_tmp12_, _tmp16_);
			_tmp18_ = _tmp17_;
			_g_free0 (_tmp16_);
			_g_object_unref0 (_tmp12_);
			lpns = _tmp18_;
			_tmp20_ = lpns;
			_tmp21_ = node;
			_tmp22_ = gxml_dom_element_get_prefix (G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, GXML_TYPE_DOM_ELEMENT) ? ((GXmlDomElement*) _tmp21_) : NULL);
			_tmp23_ = _tmp22_;
			_tmp24_ = _tmp23_;
			_tmp25_ = g_strcmp0 (_tmp20_, _tmp24_) == 0;
			_g_free0 (_tmp24_);
			if (_tmp25_) {
				GXmlDomNode* _tmp26_ = NULL;
				gchar* _tmp27_ = NULL;
				gchar* _tmp28_ = NULL;
				gchar* _tmp29_ = NULL;
				_tmp26_ = node;
				_tmp27_ = gxml_dom_element_get_prefix (G_TYPE_CHECK_INSTANCE_TYPE (_tmp26_, GXML_TYPE_DOM_ELEMENT) ? ((GXmlDomElement*) _tmp26_) : NULL);
				_tmp28_ = _tmp27_;
				_tmp29_ = _tmp28_;
				_tmp19_ = _tmp29_ != NULL;
				_g_free0 (_tmp29_);
			} else {
				_tmp19_ = FALSE;
			}
			if (_tmp19_) {
				xmlTextWriter* _tmp30_ = NULL;
				GXmlDomNode* _tmp31_ = NULL;
				gchar* _tmp32_ = NULL;
				gchar* _tmp33_ = NULL;
				gchar* _tmp34_ = NULL;
				_tmp30_ = self->priv->tw;
				_tmp31_ = node;
				_tmp32_ = gxml_dom_node_get_node_name (_tmp31_);
				_tmp33_ = _tmp32_;
				_tmp34_ = _tmp33_;
				xmlTextWriterStartElement (_tmp30_, (xmlChar*) _tmp34_);
				_g_free0 (_tmp34_);
			} else {
				xmlTextWriter* _tmp35_ = NULL;
				GXmlDomNode* _tmp36_ = NULL;
				gchar* _tmp37_ = NULL;
				gchar* _tmp38_ = NULL;
				gchar* _tmp39_ = NULL;
				GXmlDomNode* _tmp40_ = NULL;
				gchar* _tmp41_ = NULL;
				gchar* _tmp42_ = NULL;
				gchar* _tmp43_ = NULL;
				GXmlDomNode* _tmp44_ = NULL;
				gchar* _tmp45_ = NULL;
				gchar* _tmp46_ = NULL;
				gchar* _tmp47_ = NULL;
				_tmp35_ = self->priv->tw;
				_tmp36_ = node;
				_tmp37_ = gxml_dom_element_get_prefix (G_TYPE_CHECK_INSTANCE_TYPE (_tmp36_, GXML_TYPE_DOM_ELEMENT) ? ((GXmlDomElement*) _tmp36_) : NULL);
				_tmp38_ = _tmp37_;
				_tmp39_ = _tmp38_;
				_tmp40_ = node;
				_tmp41_ = gxml_dom_element_get_local_name (G_TYPE_CHECK_INSTANCE_TYPE (_tmp40_, GXML_TYPE_DOM_ELEMENT) ? ((GXmlDomElement*) _tmp40_) : NULL);
				_tmp42_ = _tmp41_;
				_tmp43_ = _tmp42_;
				_tmp44_ = node;
				_tmp45_ = gxml_dom_element_get_namespace_uri (G_TYPE_CHECK_INSTANCE_TYPE (_tmp44_, GXML_TYPE_DOM_ELEMENT) ? ((GXmlDomElement*) _tmp44_) : NULL);
				_tmp46_ = _tmp45_;
				_tmp47_ = _tmp46_;
				xmlTextWriterStartElementNS (_tmp35_, (xmlChar*) _tmp39_, (xmlChar*) _tmp43_, (xmlChar*) _tmp47_);
				_g_free0 (_tmp47_);
				_g_free0 (_tmp43_);
				_g_free0 (_tmp39_);
			}
			_g_free0 (lpns);
		} else {
			xmlTextWriter* _tmp48_ = NULL;
			GXmlDomNode* _tmp49_ = NULL;
			gchar* _tmp50_ = NULL;
			gchar* _tmp51_ = NULL;
			gchar* _tmp52_ = NULL;
			_tmp48_ = self->priv->tw;
			_tmp49_ = node;
			_tmp50_ = gxml_dom_element_get_local_name (G_TYPE_CHECK_INSTANCE_TYPE (_tmp49_, GXML_TYPE_DOM_ELEMENT) ? ((GXmlDomElement*) _tmp49_) : NULL);
			_tmp51_ = _tmp50_;
			_tmp52_ = _tmp51_;
			xmlTextWriterStartElement (_tmp48_, (xmlChar*) _tmp52_);
			_g_free0 (_tmp52_);
		}
		_tmp53_ = node;
		_tmp54_ = gxml_gom_object_get_properties_list (G_TYPE_CHECK_INSTANCE_TYPE (_tmp53_, GXML_TYPE_GOM_OBJECT) ? ((GXmlGomObject*) _tmp53_) : NULL);
		lp = _tmp54_;
		_tmp55_ = lp;
		{
			GList* pspec_collection = NULL;
			GList* pspec_it = NULL;
			pspec_collection = _tmp55_;
			for (pspec_it = pspec_collection; pspec_it != NULL; pspec_it = pspec_it->next) {
				GParamSpec* _tmp56_ = NULL;
				GParamSpec* pspec = NULL;
				_tmp56_ = _g_param_spec_ref0 ((GParamSpec*) pspec_it->data);
				pspec = _tmp56_;
				{
					gchar* attname = NULL;
					GParamSpec* _tmp57_ = NULL;
					const gchar* _tmp58_ = NULL;
					gchar* _tmp59_ = NULL;
					gchar* val = NULL;
					GParamSpec* _tmp60_ = NULL;
					GType _tmp61_ = 0UL;
					gboolean _tmp62_ = FALSE;
					const gchar* _tmp78_ = NULL;
					gint _tmp79_ = 0;
					xmlTextWriter* _tmp80_ = NULL;
					const gchar* _tmp81_ = NULL;
					const gchar* _tmp82_ = NULL;
					gint _tmp83_ = 0;
					gint _tmp84_ = 0;
					xmlTextWriter* _tmp85_ = NULL;
					gint _tmp86_ = 0;
					gint _tmp87_ = 0;
					_tmp57_ = pspec;
					_tmp58_ = g_param_spec_get_nick (_tmp57_);
					_tmp59_ = string_replace (_tmp58_, "::", "");
					attname = _tmp59_;
					val = NULL;
					_tmp60_ = pspec;
					_tmp61_ = _tmp60_->value_type;
					_tmp62_ = g_type_is_a (_tmp61_, GXML_TYPE_GOM_PROPERTY);
					if (_tmp62_) {
						GValue v = {0};
						GParamSpec* _tmp63_ = NULL;
						GType _tmp64_ = 0UL;
						GValue _tmp65_ = {0};
						GXmlDomNode* _tmp66_ = NULL;
						GParamSpec* _tmp67_ = NULL;
						const gchar* _tmp68_ = NULL;
						GXmlGomProperty* gp = NULL;
						GObject* _tmp69_ = NULL;
						GXmlGomProperty* _tmp70_ = NULL;
						GXmlGomProperty* _tmp71_ = NULL;
						GXmlGomProperty* _tmp72_ = NULL;
						gchar* _tmp73_ = NULL;
						gchar* _tmp74_ = NULL;
						_tmp63_ = pspec;
						_tmp64_ = _tmp63_->value_type;
						g_value_init (&_tmp65_, _tmp64_);
						v = _tmp65_;
						_tmp66_ = node;
						_tmp67_ = pspec;
						_tmp68_ = _tmp67_->name;
						g_object_get_property ((GObject*) _tmp66_, _tmp68_, &v);
						_tmp69_ = g_value_get_object (&v);
						_tmp70_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp69_, GXML_TYPE_GOM_PROPERTY) ? ((GXmlGomProperty*) _tmp69_) : NULL);
						gp = _tmp70_;
						_tmp71_ = gp;
						if (_tmp71_ == NULL) {
							_g_object_unref0 (gp);
							G_IS_VALUE (&v) ? (g_value_unset (&v), NULL) : NULL;
							_g_free0 (val);
							_g_free0 (attname);
							_g_param_spec_unref0 (pspec);
							continue;
						}
						_tmp72_ = gp;
						_tmp73_ = gxml_gom_property_get_value (_tmp72_);
						_tmp74_ = _tmp73_;
						_g_free0 (val);
						val = _tmp74_;
						_g_object_unref0 (gp);
						G_IS_VALUE (&v) ? (g_value_unset (&v), NULL) : NULL;
					} else {
						GXmlDomNode* _tmp75_ = NULL;
						GParamSpec* _tmp76_ = NULL;
						gchar* _tmp77_ = NULL;
						_tmp75_ = node;
						_tmp76_ = pspec;
						_tmp77_ = gxml_gom_object_get_property_string (G_TYPE_CHECK_INSTANCE_TYPE (_tmp75_, GXML_TYPE_GOM_OBJECT) ? ((GXmlGomObject*) _tmp75_) : NULL, _tmp76_);
						_g_free0 (val);
						val = _tmp77_;
					}
					_tmp78_ = val;
					if (_tmp78_ == NULL) {
						_g_free0 (val);
						_g_free0 (attname);
						_g_param_spec_unref0 (pspec);
						continue;
					}
					_tmp79_ = size;
					_tmp80_ = self->priv->tw;
					_tmp81_ = attname;
					_tmp82_ = val;
					_tmp83_ = xmlTextWriterWriteAttribute (_tmp80_, (xmlChar*) _tmp81_, (xmlChar*) _tmp82_);
					size = _tmp79_ + _tmp83_;
					_tmp84_ = size;
					_tmp85_ = self->priv->tw;
					_tmp86_ = xmlTextWriterEndAttribute (_tmp85_);
					size = _tmp84_ + _tmp86_;
					_tmp87_ = size;
					if (_tmp87_ > 1500) {
						xmlTextWriter* _tmp88_ = NULL;
						_tmp88_ = self->priv->tw;
						xmlTextWriterFlush (_tmp88_);
					}
					_g_free0 (val);
					_g_free0 (attname);
					_g_param_spec_unref0 (pspec);
				}
			}
		}
		{
			GeeIterator* _ak_it = NULL;
			GXmlDomNode* _tmp89_ = NULL;
			GXmlDomNamedNodeMap* _tmp90_ = NULL;
			GXmlDomNamedNodeMap* _tmp91_ = NULL;
			GXmlDomNamedNodeMap* _tmp92_ = NULL;
			GeeSet* _tmp93_ = NULL;
			GeeSet* _tmp94_ = NULL;
			GeeSet* _tmp95_ = NULL;
			GeeIterator* _tmp96_ = NULL;
			GeeIterator* _tmp97_ = NULL;
			_tmp89_ = node;
			_tmp90_ = gxml_dom_element_get_attributes (G_TYPE_CHECK_INSTANCE_TYPE (_tmp89_, GXML_TYPE_DOM_ELEMENT) ? ((GXmlDomElement*) _tmp89_) : NULL);
			_tmp91_ = _tmp90_;
			_tmp92_ = _tmp91_;
			_tmp93_ = gee_map_get_keys ((GeeMap*) _tmp92_);
			_tmp94_ = _tmp93_;
			_tmp95_ = _tmp94_;
			_tmp96_ = gee_iterable_iterator ((GeeIterable*) _tmp95_);
			_tmp97_ = _tmp96_;
			_g_object_unref0 (_tmp95_);
			_g_object_unref0 (_tmp92_);
			_ak_it = _tmp97_;
			while (TRUE) {
				GeeIterator* _tmp98_ = NULL;
				gboolean _tmp99_ = FALSE;
				gchar* ak = NULL;
				GeeIterator* _tmp100_ = NULL;
				gpointer _tmp101_ = NULL;
				gchar* v = NULL;
				GXmlDomNode* _tmp102_ = NULL;
				GXmlDomNamedNodeMap* _tmp103_ = NULL;
				GXmlDomNamedNodeMap* _tmp104_ = NULL;
				GeeHashMap* _tmp105_ = NULL;
				GeeHashMap* _tmp106_ = NULL;
				const gchar* _tmp107_ = NULL;
				gpointer _tmp108_ = NULL;
				gchar* _tmp109_ = NULL;
				const gchar* _tmp110_ = NULL;
				gboolean _tmp111_ = FALSE;
				gint _tmp131_ = 0;
				xmlTextWriter* _tmp132_ = NULL;
				const gchar* _tmp133_ = NULL;
				const gchar* _tmp134_ = NULL;
				gint _tmp135_ = 0;
				gint _tmp136_ = 0;
				xmlTextWriter* _tmp137_ = NULL;
				gint _tmp138_ = 0;
				gint _tmp139_ = 0;
				_tmp98_ = _ak_it;
				_tmp99_ = gee_iterator_next (_tmp98_);
				if (!_tmp99_) {
					break;
				}
				_tmp100_ = _ak_it;
				_tmp101_ = gee_iterator_get (_tmp100_);
				ak = (gchar*) _tmp101_;
				_tmp102_ = node;
				_tmp103_ = gxml_dom_element_get_attributes (G_TYPE_CHECK_INSTANCE_TYPE (_tmp102_, GXML_TYPE_DOM_ELEMENT) ? ((GXmlDomElement*) _tmp102_) : NULL);
				_tmp104_ = _tmp103_;
				_tmp105_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp104_, GEE_TYPE_HASH_MAP) ? ((GeeHashMap*) _tmp104_) : NULL;
				if (_tmp105_ == NULL) {
					_g_object_unref0 (_tmp104_);
				}
				_tmp106_ = _tmp105_;
				_tmp107_ = ak;
				_tmp108_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp106_, _tmp107_);
				_tmp109_ = (gchar*) _tmp108_;
				_g_object_unref0 (_tmp106_);
				v = _tmp109_;
				_tmp110_ = ak;
				_tmp111_ = string_contains (_tmp110_, "xmlns:");
				if (_tmp111_) {
					gchar* ns = NULL;
					GXmlDomNode* _tmp112_ = NULL;
					gchar* _tmp113_ = NULL;
					gchar* _tmp114_ = NULL;
					const gchar* _tmp115_ = NULL;
					_tmp112_ = node;
					_tmp113_ = gxml_dom_element_get_namespace_uri (G_TYPE_CHECK_INSTANCE_TYPE (_tmp112_, GXML_TYPE_DOM_ELEMENT) ? ((GXmlDomElement*) _tmp112_) : NULL);
					_tmp114_ = _tmp113_;
					ns = _tmp114_;
					_tmp115_ = ns;
					if (_tmp115_ != NULL) {
						gchar** strs = NULL;
						const gchar* _tmp116_ = NULL;
						gchar** _tmp117_ = NULL;
						gchar** _tmp118_ = NULL;
						gint strs_length1 = 0;
						gint _strs_size_ = 0;
						gchar** _tmp119_ = NULL;
						gint _tmp119__length1 = 0;
						_tmp116_ = ak;
						_tmp118_ = _tmp117_ = g_strsplit (_tmp116_, ":", 0);
						strs = _tmp118_;
						strs_length1 = _vala_array_length (_tmp117_);
						_strs_size_ = strs_length1;
						_tmp119_ = strs;
						_tmp119__length1 = strs_length1;
						if (_tmp119__length1 == 2) {
							gchar* nsp = NULL;
							gchar** _tmp120_ = NULL;
							gint _tmp120__length1 = 0;
							const gchar* _tmp121_ = NULL;
							gchar* _tmp122_ = NULL;
							gboolean _tmp123_ = FALSE;
							const gchar* _tmp124_ = NULL;
							const gchar* _tmp125_ = NULL;
							_tmp120_ = strs;
							_tmp120__length1 = strs_length1;
							_tmp121_ = _tmp120_[1];
							_tmp122_ = g_strdup (_tmp121_);
							nsp = _tmp122_;
							_tmp124_ = ns;
							_tmp125_ = v;
							if (g_strcmp0 (_tmp124_, _tmp125_) == 0) {
								const gchar* _tmp126_ = NULL;
								GXmlDomNode* _tmp127_ = NULL;
								gchar* _tmp128_ = NULL;
								gchar* _tmp129_ = NULL;
								gchar* _tmp130_ = NULL;
								_tmp126_ = nsp;
								_tmp127_ = node;
								_tmp128_ = gxml_dom_element_get_prefix (G_TYPE_CHECK_INSTANCE_TYPE (_tmp127_, GXML_TYPE_DOM_ELEMENT) ? ((GXmlDomElement*) _tmp127_) : NULL);
								_tmp129_ = _tmp128_;
								_tmp130_ = _tmp129_;
								_tmp123_ = g_strcmp0 (_tmp126_, _tmp130_) == 0;
								_g_free0 (_tmp130_);
							} else {
								_tmp123_ = FALSE;
							}
							if (_tmp123_) {
								_g_free0 (nsp);
								strs = (_vala_array_free (strs, strs_length1, (GDestroyNotify) g_free), NULL);
								_g_free0 (ns);
								_g_free0 (v);
								_g_free0 (ak);
								continue;
							}
							_g_free0 (nsp);
						}
						strs = (_vala_array_free (strs, strs_length1, (GDestroyNotify) g_free), NULL);
					}
					_g_free0 (ns);
				}
				_tmp131_ = size;
				_tmp132_ = self->priv->tw;
				_tmp133_ = ak;
				_tmp134_ = v;
				_tmp135_ = xmlTextWriterWriteAttribute (_tmp132_, (xmlChar*) _tmp133_, (xmlChar*) _tmp134_);
				size = _tmp131_ + _tmp135_;
				_tmp136_ = size;
				_tmp137_ = self->priv->tw;
				_tmp138_ = xmlTextWriterEndAttribute (_tmp137_);
				size = _tmp136_ + _tmp138_;
				_tmp139_ = size;
				if (_tmp139_ > 1500) {
					xmlTextWriter* _tmp140_ = NULL;
					_tmp140_ = self->priv->tw;
					xmlTextWriterFlush (_tmp140_);
				}
				_g_free0 (v);
				_g_free0 (ak);
			}
			_g_object_unref0 (_ak_it);
		}
		__g_list_free__g_param_spec_unref0_0 (lp);
	}
	{
		GXmlDomNodeList* _n_list = NULL;
		GXmlDomNode* _tmp141_ = NULL;
		GXmlDomNodeList* _tmp142_ = NULL;
		GXmlDomNodeList* _tmp143_ = NULL;
		gint _n_size = 0;
		GXmlDomNodeList* _tmp144_ = NULL;
		gint _tmp145_ = 0;
		gint _tmp146_ = 0;
		gint _n_index = 0;
		_tmp141_ = node;
		_tmp142_ = gxml_dom_node_get_child_nodes (_tmp141_);
		_tmp143_ = _tmp142_;
		_n_list = _tmp143_;
		_tmp144_ = _n_list;
		_tmp145_ = gee_collection_get_size ((GeeCollection*) _tmp144_);
		_tmp146_ = _tmp145_;
		_n_size = _tmp146_;
		_n_index = -1;
		while (TRUE) {
			gint _tmp147_ = 0;
			gint _tmp148_ = 0;
			gint _tmp149_ = 0;
			GXmlDomNode* n = NULL;
			GXmlDomNodeList* _tmp150_ = NULL;
			gint _tmp151_ = 0;
			gpointer _tmp152_ = NULL;
			GXmlDomNode* _tmp153_ = NULL;
			_tmp147_ = _n_index;
			_n_index = _tmp147_ + 1;
			_tmp148_ = _n_index;
			_tmp149_ = _n_size;
			if (!(_tmp148_ < _tmp149_)) {
				break;
			}
			_tmp150_ = _n_list;
			_tmp151_ = _n_index;
			_tmp152_ = gee_list_get ((GeeList*) _tmp150_, _tmp151_);
			n = (GXmlDomNode*) _tmp152_;
			_tmp153_ = n;
			gxml_xparser_write_node (self, _tmp153_, &_inner_error_);
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				g_propagate_error (error, _inner_error_);
				_g_object_unref0 (n);
				_g_object_unref0 (_n_list);
				return;
			}
			_g_object_unref0 (n);
		}
		_g_object_unref0 (_n_list);
	}
}


static void gxml_xparser_dump_async_data_free (gpointer _data) {
	GxmlXparserDumpAsyncData* _data_;
	_data_ = _data;
	_g_free0 (_data_->result);
	_g_object_unref0 (_data_->self);
	g_slice_free (GxmlXparserDumpAsyncData, _data_);
}


static void gxml_xparser_dump_async (GXmlXParser* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GxmlXparserDumpAsyncData* _data_;
	GXmlXParser* _tmp0_ = NULL;
	_data_ = g_slice_new0 (GxmlXparserDumpAsyncData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, gxml_xparser_dump_async);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, gxml_xparser_dump_async_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	gxml_xparser_dump_async_co (_data_);
}


static gchar* gxml_xparser_dump_finish (GXmlXParser* self, GAsyncResult* _res_, GError** error) {
	gchar* result;
	GxmlXparserDumpAsyncData* _data_;
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
		return NULL;
	}
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
	result = _data_->result;
	_data_->result = NULL;
	return result;
}


static gboolean _gxml_xparser_dump_async_co_gsource_func (gpointer self) {
	gboolean result;
	result = gxml_xparser_dump_async_co (self);
	return result;
}


static void gxml_xparser_dump_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	GxmlXparserDumpAsyncData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	gxml_xparser_dump_async_co (_data_);
}


static gboolean gxml_xparser_dump_async_co (GxmlXparserDumpAsyncData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		case 2:
		goto _state_2;
		case 3:
		goto _state_3;
		case 4:
		goto _state_4;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->doc = NULL;
	_data_->_tmp0_ = NULL;
	_data_->_tmp0_ = xmlNewTextWriterDoc (&_data_->doc, FALSE);
	_xmlFreeTextWriter0 (_data_->self->priv->tw);
	_data_->self->priv->tw = _data_->_tmp0_;
	_data_->_tmp1_ = NULL;
	_data_->_tmp1_ = _data_->self->priv->_node;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp1_, GXML_TYPE_DOM_DOCUMENT)) {
		_data_->_tmp2_ = NULL;
		_data_->_tmp2_ = _data_->self->priv->tw;
		xmlTextWriterStartDocument (_data_->_tmp2_, NULL, NULL, NULL);
	}
	_data_->_tmp3_ = NULL;
	_data_->_tmp3_ = _data_->self->priv->tw;
	_data_->_tmp4_ = FALSE;
	_data_->_tmp4_ = gxml_parser_get_indent ((GXmlParser*) _data_->self);
	_data_->_tmp5_ = FALSE;
	_data_->_tmp5_ = _data_->_tmp4_;
	xmlTextWriterSetIndent (_data_->_tmp3_, _data_->_tmp5_);
	_data_->_tmp6_ = NULL;
	_data_->_tmp6_ = _data_->self->priv->_node;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp6_, GXML_TYPE_DOM_DOCUMENT)) {
		_data_->_tmp7_ = NULL;
		_data_->_tmp7_ = gxml_parser_get_node ((GXmlParser*) _data_->self);
		_data_->_tmp8_ = NULL;
		_data_->_tmp8_ = _data_->_tmp7_;
		_data_->_tmp9_ = NULL;
		_data_->_tmp9_ = gxml_dom_document_get_document_element (G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp8_, GXML_TYPE_DOM_DOCUMENT) ? ((GXmlDomDocument*) _data_->_tmp8_) : NULL);
		_data_->_tmp10_ = NULL;
		_data_->_tmp10_ = _data_->_tmp9_;
		_data_->_tmp11_ = NULL;
		_data_->_tmp11_ = _data_->_tmp10_;
		_data_->_tmp12_ = FALSE;
		_data_->_tmp12_ = _data_->_tmp11_ == NULL;
		_g_object_unref0 (_data_->_tmp11_);
		if (_data_->_tmp12_) {
			_data_->_tmp13_ = NULL;
			_data_->_tmp13_ = _data_->self->priv->tw;
			xmlTextWriterEndDocument (_data_->_tmp13_);
		}
	}
	g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, _gxml_xparser_dump_async_co_gsource_func, _data_, NULL);
	_data_->_state_ = 1;
	return FALSE;
	_state_1:
	;
	_data_->_tmp14_ = NULL;
	_data_->_tmp14_ = _data_->self->priv->_node;
	_data_->_state_ = 2;
	gxml_xparser_start_node_async (_data_->self, _data_->_tmp14_, gxml_xparser_dump_async_ready, _data_);
	return FALSE;
	_state_2:
	gxml_xparser_start_node_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_);
		_xmlFreeDoc0 (_data_->doc);
		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_xparser_dump_async_co_gsource_func, _data_, NULL);
	_data_->_state_ = 3;
	return FALSE;
	_state_3:
	;
	_data_->_tmp15_ = NULL;
	_data_->_tmp15_ = _data_->self->priv->tw;
	xmlTextWriterEndElement (_data_->_tmp15_);
	_data_->_tmp16_ = NULL;
	_data_->_tmp16_ = _data_->self->priv->tw;
	xmlTextWriterEndDocument (_data_->_tmp16_);
	_data_->_tmp17_ = NULL;
	_data_->_tmp17_ = _data_->self->priv->tw;
	xmlTextWriterFlush (_data_->_tmp17_);
	g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, _gxml_xparser_dump_async_co_gsource_func, _data_, NULL);
	_data_->_state_ = 4;
	return FALSE;
	_state_4:
	;
	_data_->_tmp18_ = NULL;
	_data_->_tmp18_ = _data_->doc;
	_data_->_tmp19_ = NULL;
	_data_->_tmp20_ = 0;
	xmlDocDumpMemory (_data_->_tmp18_, (xmlChar**) (&_data_->_tmp19_), &_data_->_tmp20_);
	_g_free0 (_data_->str);
	_data_->str = _data_->_tmp19_;
	_data_->size = _data_->_tmp20_;
	_xmlFreeTextWriter0 (_data_->self->priv->tw);
	_data_->self->priv->tw = NULL;
	_data_->result = _data_->str;
	_xmlFreeDoc0 (_data_->doc);
	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_free0 (_data_->str);
	_xmlFreeDoc0 (_data_->doc);
	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;
}


static void gxml_xparser_start_node_async_data_free (gpointer _data) {
	GxmlXparserStartNodeAsyncData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->node);
	_g_object_unref0 (_data_->self);
	g_slice_free (GxmlXparserStartNodeAsyncData, _data_);
}


static void gxml_xparser_start_node_async (GXmlXParser* self, GXmlDomNode* node, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GxmlXparserStartNodeAsyncData* _data_;
	GXmlXParser* _tmp0_ = NULL;
	GXmlDomNode* _tmp1_ = NULL;
	GXmlDomNode* _tmp2_ = NULL;
	_data_ = g_slice_new0 (GxmlXparserStartNodeAsyncData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, gxml_xparser_start_node_async);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, gxml_xparser_start_node_async_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	_tmp1_ = node;
	_tmp2_ = _g_object_ref0 (_tmp1_);
	_g_object_unref0 (_data_->node);
	_data_->node = _tmp2_;
	gxml_xparser_start_node_async_co (_data_);
}


static void gxml_xparser_start_node_finish (GXmlXParser* self, GAsyncResult* _res_, GError** error) {
	GxmlXparserStartNodeAsyncData* _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_));
}


static gboolean _gxml_xparser_start_node_async_co_gsource_func (gpointer self) {
	gboolean result;
	result = gxml_xparser_start_node_async_co (self);
	return result;
}


static gboolean gxml_xparser_start_node_async_co (GxmlXparserStartNodeAsyncData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		case 2:
		goto _state_2;
		case 3:
		goto _state_3;
		case 4:
		goto _state_4;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_tmp0_ = NULL;
	_data_->_tmp0_ = _data_->self->priv->tw;
	if (_data_->_tmp0_ == NULL) {
		_data_->_tmp1_ = NULL;
		_data_->_tmp1_ = _ ("Internal Error: No TextWriter initialized");
		_data_->_tmp2_ = NULL;
		_data_->_tmp2_ = g_error_new_literal (GXML_PARSER_ERROR, GXML_PARSER_ERROR_INVALID_DATA_ERROR, _data_->_tmp1_);
		_data_->_inner_error_ = _data_->_tmp2_;
		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_->size = 0;
	_data_->_tmp3_ = NULL;
	_data_->_tmp3_ = _data_->node;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp3_, GXML_TYPE_DOM_ELEMENT)) {
		_data_->_tmp4_ = NULL;
		_data_->_tmp4_ = _data_->node;
		_data_->_tmp5_ = NULL;
		_data_->_tmp5_ = gxml_dom_element_get_namespace_uri (G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp4_, GXML_TYPE_DOM_ELEMENT) ? ((GXmlDomElement*) _data_->_tmp4_) : NULL);
		_data_->_tmp6_ = NULL;
		_data_->_tmp6_ = _data_->_tmp5_;
		_data_->_tmp7_ = NULL;
		_data_->_tmp7_ = _data_->_tmp6_;
		_data_->_tmp8_ = FALSE;
		_data_->_tmp8_ = _data_->_tmp7_ != NULL;
		_g_free0 (_data_->_tmp7_);
		if (_data_->_tmp8_) {
			_data_->_tmp9_ = NULL;
			_data_->_tmp9_ = _data_->node;
			_data_->_tmp10_ = NULL;
			_data_->_tmp10_ = gxml_dom_node_get_parent_node (_data_->_tmp9_);
			_data_->_tmp11_ = NULL;
			_data_->_tmp11_ = _data_->_tmp10_;
			_data_->_tmp12_ = NULL;
			_data_->_tmp12_ = _data_->_tmp11_;
			_data_->_tmp13_ = NULL;
			_data_->_tmp13_ = _data_->node;
			_data_->_tmp14_ = NULL;
			_data_->_tmp14_ = gxml_dom_element_get_namespace_uri (G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp13_, GXML_TYPE_DOM_ELEMENT) ? ((GXmlDomElement*) _data_->_tmp13_) : NULL);
			_data_->_tmp15_ = NULL;
			_data_->_tmp15_ = _data_->_tmp14_;
			_data_->_tmp16_ = NULL;
			_data_->_tmp16_ = _data_->_tmp15_;
			_data_->_tmp17_ = NULL;
			_data_->_tmp17_ = gxml_dom_node_lookup_prefix (_data_->_tmp12_, _data_->_tmp16_);
			_data_->_tmp18_ = NULL;
			_data_->_tmp18_ = _data_->_tmp17_;
			_g_free0 (_data_->_tmp16_);
			_g_object_unref0 (_data_->_tmp12_);
			_data_->lpns = _data_->_tmp18_;
			_data_->_tmp20_ = NULL;
			_data_->_tmp20_ = _data_->lpns;
			_data_->_tmp21_ = NULL;
			_data_->_tmp21_ = _data_->node;
			_data_->_tmp22_ = NULL;
			_data_->_tmp22_ = gxml_dom_element_get_prefix (G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp21_, GXML_TYPE_DOM_ELEMENT) ? ((GXmlDomElement*) _data_->_tmp21_) : NULL);
			_data_->_tmp23_ = NULL;
			_data_->_tmp23_ = _data_->_tmp22_;
			_data_->_tmp24_ = NULL;
			_data_->_tmp24_ = _data_->_tmp23_;
			_data_->_tmp25_ = FALSE;
			_data_->_tmp25_ = g_strcmp0 (_data_->_tmp20_, _data_->_tmp24_) == 0;
			_g_free0 (_data_->_tmp24_);
			if (_data_->_tmp25_) {
				_data_->_tmp26_ = NULL;
				_data_->_tmp26_ = _data_->node;
				_data_->_tmp27_ = NULL;
				_data_->_tmp27_ = gxml_dom_element_get_prefix (G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp26_, GXML_TYPE_DOM_ELEMENT) ? ((GXmlDomElement*) _data_->_tmp26_) : NULL);
				_data_->_tmp28_ = NULL;
				_data_->_tmp28_ = _data_->_tmp27_;
				_data_->_tmp29_ = NULL;
				_data_->_tmp29_ = _data_->_tmp28_;
				_data_->_tmp19_ = _data_->_tmp29_ != NULL;
				_g_free0 (_data_->_tmp29_);
			} else {
				_data_->_tmp19_ = FALSE;
			}
			if (_data_->_tmp19_) {
				_data_->_tmp30_ = NULL;
				_data_->_tmp30_ = _data_->self->priv->tw;
				_data_->_tmp31_ = NULL;
				_data_->_tmp31_ = _data_->node;
				_data_->_tmp32_ = NULL;
				_data_->_tmp32_ = gxml_dom_node_get_node_name (_data_->_tmp31_);
				_data_->_tmp33_ = NULL;
				_data_->_tmp33_ = _data_->_tmp32_;
				_data_->_tmp34_ = NULL;
				_data_->_tmp34_ = _data_->_tmp33_;
				xmlTextWriterStartElement (_data_->_tmp30_, (xmlChar*) _data_->_tmp34_);
				_g_free0 (_data_->_tmp34_);
			} else {
				_data_->_tmp35_ = NULL;
				_data_->_tmp35_ = _data_->self->priv->tw;
				_data_->_tmp36_ = NULL;
				_data_->_tmp36_ = _data_->node;
				_data_->_tmp37_ = NULL;
				_data_->_tmp37_ = gxml_dom_element_get_prefix (G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp36_, GXML_TYPE_DOM_ELEMENT) ? ((GXmlDomElement*) _data_->_tmp36_) : NULL);
				_data_->_tmp38_ = NULL;
				_data_->_tmp38_ = _data_->_tmp37_;
				_data_->_tmp39_ = NULL;
				_data_->_tmp39_ = _data_->_tmp38_;
				_data_->_tmp40_ = NULL;
				_data_->_tmp40_ = _data_->node;
				_data_->_tmp41_ = NULL;
				_data_->_tmp41_ = gxml_dom_element_get_local_name (G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp40_, GXML_TYPE_DOM_ELEMENT) ? ((GXmlDomElement*) _data_->_tmp40_) : NULL);
				_data_->_tmp42_ = NULL;
				_data_->_tmp42_ = _data_->_tmp41_;
				_data_->_tmp43_ = NULL;
				_data_->_tmp43_ = _data_->_tmp42_;
				_data_->_tmp44_ = NULL;
				_data_->_tmp44_ = _data_->node;
				_data_->_tmp45_ = NULL;
				_data_->_tmp45_ = gxml_dom_element_get_namespace_uri (G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp44_, GXML_TYPE_DOM_ELEMENT) ? ((GXmlDomElement*) _data_->_tmp44_) : NULL);
				_data_->_tmp46_ = NULL;
				_data_->_tmp46_ = _data_->_tmp45_;
				_data_->_tmp47_ = NULL;
				_data_->_tmp47_ = _data_->_tmp46_;
				xmlTextWriterStartElementNS (_data_->_tmp35_, (xmlChar*) _data_->_tmp39_, (xmlChar*) _data_->_tmp43_, (xmlChar*) _data_->_tmp47_);
				_g_free0 (_data_->_tmp47_);
				_g_free0 (_data_->_tmp43_);
				_g_free0 (_data_->_tmp39_);
			}
			_g_free0 (_data_->lpns);
		} else {
			_data_->_tmp48_ = NULL;
			_data_->_tmp48_ = _data_->self->priv->tw;
			_data_->_tmp49_ = NULL;
			_data_->_tmp49_ = _data_->node;
			_data_->_tmp50_ = NULL;
			_data_->_tmp50_ = gxml_dom_element_get_local_name (G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp49_, GXML_TYPE_DOM_ELEMENT) ? ((GXmlDomElement*) _data_->_tmp49_) : NULL);
			_data_->_tmp51_ = NULL;
			_data_->_tmp51_ = _data_->_tmp50_;
			_data_->_tmp52_ = NULL;
			_data_->_tmp52_ = _data_->_tmp51_;
			xmlTextWriterStartElement (_data_->_tmp48_, (xmlChar*) _data_->_tmp52_);
			_g_free0 (_data_->_tmp52_);
		}
		g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, _gxml_xparser_start_node_async_co_gsource_func, _data_, NULL);
		_data_->_state_ = 1;
		return FALSE;
		_state_1:
		;
		_data_->_tmp53_ = NULL;
		_data_->_tmp53_ = _data_->node;
		_data_->_tmp54_ = NULL;
		_data_->_tmp54_ = gxml_gom_object_get_properties_list (G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp53_, GXML_TYPE_GOM_OBJECT) ? ((GXmlGomObject*) _data_->_tmp53_) : NULL);
		_data_->lp = _data_->_tmp54_;
		_data_->_tmp55_ = NULL;
		_data_->_tmp55_ = _data_->lp;
		{
			_data_->pspec_collection = _data_->_tmp55_;
			for (_data_->pspec_it = _data_->pspec_collection; _data_->pspec_it != NULL; _data_->pspec_it = _data_->pspec_it->next) {
				_data_->_tmp56_ = NULL;
				_data_->_tmp56_ = _g_param_spec_ref0 ((GParamSpec*) _data_->pspec_it->data);
				_data_->pspec = _data_->_tmp56_;
				{
					g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, _gxml_xparser_start_node_async_co_gsource_func, _data_, NULL);
					_data_->_state_ = 2;
					return FALSE;
					_state_2:
					;
					_data_->_tmp57_ = NULL;
					_data_->_tmp57_ = _data_->pspec;
					_data_->_tmp58_ = NULL;
					_data_->_tmp58_ = g_param_spec_get_nick (_data_->_tmp57_);
					_data_->_tmp59_ = NULL;
					_data_->_tmp59_ = string_replace (_data_->_tmp58_, "::", "");
					_data_->attname = _data_->_tmp59_;
					_data_->val = NULL;
					_data_->_tmp60_ = NULL;
					_data_->_tmp60_ = _data_->pspec;
					_data_->_tmp61_ = 0UL;
					_data_->_tmp61_ = _data_->_tmp60_->value_type;
					_data_->_tmp62_ = FALSE;
					_data_->_tmp62_ = g_type_is_a (_data_->_tmp61_, GXML_TYPE_GOM_PROPERTY);
					if (_data_->_tmp62_) {
						_data_->_tmp63_ = NULL;
						_data_->_tmp63_ = _data_->pspec;
						_data_->_tmp64_ = 0UL;
						_data_->_tmp64_ = _data_->_tmp63_->value_type;
						memset (&_data_->_tmp65_, 0, sizeof (GValue));
						g_value_init (&_data_->_tmp65_, _data_->_tmp64_);
						_data_->v = _data_->_tmp65_;
						_data_->_tmp66_ = NULL;
						_data_->_tmp66_ = _data_->node;
						_data_->_tmp67_ = NULL;
						_data_->_tmp67_ = _data_->pspec;
						_data_->_tmp68_ = NULL;
						_data_->_tmp68_ = _data_->_tmp67_->name;
						g_object_get_property ((GObject*) _data_->_tmp66_, _data_->_tmp68_, &_data_->v);
						_data_->_tmp69_ = NULL;
						_data_->_tmp69_ = g_value_get_object (&_data_->v);
						_data_->_tmp70_ = NULL;
						_data_->_tmp70_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp69_, GXML_TYPE_GOM_PROPERTY) ? ((GXmlGomProperty*) _data_->_tmp69_) : NULL);
						_data_->gp = _data_->_tmp70_;
						_data_->_tmp71_ = NULL;
						_data_->_tmp71_ = _data_->gp;
						if (_data_->_tmp71_ == NULL) {
							_g_object_unref0 (_data_->gp);
							G_IS_VALUE (&_data_->v) ? (g_value_unset (&_data_->v), NULL) : NULL;
							_g_free0 (_data_->val);
							_g_free0 (_data_->attname);
							_g_param_spec_unref0 (_data_->pspec);
							continue;
						}
						_data_->_tmp72_ = NULL;
						_data_->_tmp72_ = _data_->gp;
						_data_->_tmp73_ = NULL;
						_data_->_tmp73_ = gxml_gom_property_get_value (_data_->_tmp72_);
						_data_->_tmp74_ = NULL;
						_data_->_tmp74_ = _data_->_tmp73_;
						_g_free0 (_data_->val);
						_data_->val = _data_->_tmp74_;
						_g_object_unref0 (_data_->gp);
						G_IS_VALUE (&_data_->v) ? (g_value_unset (&_data_->v), NULL) : NULL;
					} else {
						_data_->_tmp75_ = NULL;
						_data_->_tmp75_ = _data_->node;
						_data_->_tmp76_ = NULL;
						_data_->_tmp76_ = _data_->pspec;
						_data_->_tmp77_ = NULL;
						_data_->_tmp77_ = gxml_gom_object_get_property_string (G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp75_, GXML_TYPE_GOM_OBJECT) ? ((GXmlGomObject*) _data_->_tmp75_) : NULL, _data_->_tmp76_);
						_g_free0 (_data_->val);
						_data_->val = _data_->_tmp77_;
					}
					_data_->_tmp78_ = NULL;
					_data_->_tmp78_ = _data_->val;
					if (_data_->_tmp78_ == NULL) {
						_g_free0 (_data_->val);
						_g_free0 (_data_->attname);
						_g_param_spec_unref0 (_data_->pspec);
						continue;
					}
					_data_->_tmp79_ = 0;
					_data_->_tmp79_ = _data_->size;
					_data_->_tmp80_ = NULL;
					_data_->_tmp80_ = _data_->self->priv->tw;
					_data_->_tmp81_ = NULL;
					_data_->_tmp81_ = _data_->attname;
					_data_->_tmp82_ = NULL;
					_data_->_tmp82_ = _data_->val;
					_data_->_tmp83_ = 0;
					_data_->_tmp83_ = xmlTextWriterWriteAttribute (_data_->_tmp80_, (xmlChar*) _data_->_tmp81_, (xmlChar*) _data_->_tmp82_);
					_data_->size = _data_->_tmp79_ + _data_->_tmp83_;
					_data_->_tmp84_ = 0;
					_data_->_tmp84_ = _data_->size;
					_data_->_tmp85_ = NULL;
					_data_->_tmp85_ = _data_->self->priv->tw;
					_data_->_tmp86_ = 0;
					_data_->_tmp86_ = xmlTextWriterEndAttribute (_data_->_tmp85_);
					_data_->size = _data_->_tmp84_ + _data_->_tmp86_;
					_data_->_tmp87_ = 0;
					_data_->_tmp87_ = _data_->size;
					if (_data_->_tmp87_ > 1500) {
						_data_->_tmp88_ = NULL;
						_data_->_tmp88_ = _data_->self->priv->tw;
						xmlTextWriterFlush (_data_->_tmp88_);
					}
					_g_free0 (_data_->val);
					_g_free0 (_data_->attname);
					_g_param_spec_unref0 (_data_->pspec);
				}
			}
		}
		{
			_data_->_tmp89_ = NULL;
			_data_->_tmp89_ = _data_->node;
			_data_->_tmp90_ = NULL;
			_data_->_tmp90_ = gxml_dom_element_get_attributes (G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp89_, GXML_TYPE_DOM_ELEMENT) ? ((GXmlDomElement*) _data_->_tmp89_) : NULL);
			_data_->_tmp91_ = NULL;
			_data_->_tmp91_ = _data_->_tmp90_;
			_data_->_tmp92_ = NULL;
			_data_->_tmp92_ = _data_->_tmp91_;
			_data_->_tmp93_ = NULL;
			_data_->_tmp93_ = gee_map_get_keys ((GeeMap*) _data_->_tmp92_);
			_data_->_tmp94_ = NULL;
			_data_->_tmp94_ = _data_->_tmp93_;
			_data_->_tmp95_ = NULL;
			_data_->_tmp95_ = _data_->_tmp94_;
			_data_->_tmp96_ = NULL;
			_data_->_tmp96_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp95_);
			_data_->_tmp97_ = NULL;
			_data_->_tmp97_ = _data_->_tmp96_;
			_g_object_unref0 (_data_->_tmp95_);
			_g_object_unref0 (_data_->_tmp92_);
			_data_->_ak_it = _data_->_tmp97_;
			while (TRUE) {
				_data_->_tmp98_ = NULL;
				_data_->_tmp98_ = _data_->_ak_it;
				_data_->_tmp99_ = FALSE;
				_data_->_tmp99_ = gee_iterator_next (_data_->_tmp98_);
				if (!_data_->_tmp99_) {
					break;
				}
				_data_->_tmp100_ = NULL;
				_data_->_tmp100_ = _data_->_ak_it;
				_data_->_tmp101_ = NULL;
				_data_->_tmp101_ = gee_iterator_get (_data_->_tmp100_);
				_data_->ak = (gchar*) _data_->_tmp101_;
				g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, _gxml_xparser_start_node_async_co_gsource_func, _data_, NULL);
				_data_->_state_ = 3;
				return FALSE;
				_state_3:
				;
				_data_->_tmp102_ = NULL;
				_data_->_tmp102_ = _data_->node;
				_data_->_tmp103_ = NULL;
				_data_->_tmp103_ = gxml_dom_element_get_attributes (G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp102_, GXML_TYPE_DOM_ELEMENT) ? ((GXmlDomElement*) _data_->_tmp102_) : NULL);
				_data_->_tmp104_ = NULL;
				_data_->_tmp104_ = _data_->_tmp103_;
				_data_->_tmp105_ = NULL;
				_data_->_tmp105_ = G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp104_, GEE_TYPE_HASH_MAP) ? ((GeeHashMap*) _data_->_tmp104_) : NULL;
				if (_data_->_tmp105_ == NULL) {
					_g_object_unref0 (_data_->_tmp104_);
				}
				_data_->_tmp106_ = NULL;
				_data_->_tmp106_ = _data_->_tmp105_;
				_data_->_tmp107_ = NULL;
				_data_->_tmp107_ = _data_->ak;
				_data_->_tmp108_ = NULL;
				_data_->_tmp108_ = gee_abstract_map_get ((GeeAbstractMap*) _data_->_tmp106_, _data_->_tmp107_);
				_data_->_tmp109_ = NULL;
				_data_->_tmp109_ = (gchar*) _data_->_tmp108_;
				_g_object_unref0 (_data_->_tmp106_);
				_data_->_vala1_v = _data_->_tmp109_;
				_data_->_tmp110_ = NULL;
				_data_->_tmp110_ = _data_->ak;
				_data_->_tmp111_ = FALSE;
				_data_->_tmp111_ = string_contains (_data_->_tmp110_, "xmlns:");
				if (_data_->_tmp111_) {
					_data_->_tmp112_ = NULL;
					_data_->_tmp112_ = _data_->node;
					_data_->_tmp113_ = NULL;
					_data_->_tmp113_ = gxml_dom_element_get_namespace_uri (G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp112_, GXML_TYPE_DOM_ELEMENT) ? ((GXmlDomElement*) _data_->_tmp112_) : NULL);
					_data_->_tmp114_ = NULL;
					_data_->_tmp114_ = _data_->_tmp113_;
					_data_->ns = _data_->_tmp114_;
					_data_->_tmp115_ = NULL;
					_data_->_tmp115_ = _data_->ns;
					if (_data_->_tmp115_ != NULL) {
						_data_->_tmp116_ = NULL;
						_data_->_tmp116_ = _data_->ak;
						_data_->_tmp117_ = NULL;
						_data_->_tmp118_ = NULL;
						_data_->_tmp118_ = _data_->_tmp117_ = g_strsplit (_data_->_tmp116_, ":", 0);
						_data_->strs_length1 = 0;
						_data_->_strs_size_ = 0;
						_data_->strs = _data_->_tmp118_;
						_data_->strs_length1 = _vala_array_length (_data_->_tmp117_);
						_data_->_strs_size_ = _data_->strs_length1;
						_data_->_tmp119_ = NULL;
						_data_->_tmp119__length1 = 0;
						_data_->_tmp119_ = _data_->strs;
						_data_->_tmp119__length1 = _data_->strs_length1;
						if (_data_->_tmp119__length1 == 2) {
							_data_->_tmp120_ = NULL;
							_data_->_tmp120__length1 = 0;
							_data_->_tmp120_ = _data_->strs;
							_data_->_tmp120__length1 = _data_->strs_length1;
							_data_->_tmp121_ = NULL;
							_data_->_tmp121_ = _data_->_tmp120_[1];
							_data_->_tmp122_ = NULL;
							_data_->_tmp122_ = g_strdup (_data_->_tmp121_);
							_data_->nsp = _data_->_tmp122_;
							_data_->_tmp124_ = NULL;
							_data_->_tmp124_ = _data_->ns;
							_data_->_tmp125_ = NULL;
							_data_->_tmp125_ = _data_->_vala1_v;
							if (g_strcmp0 (_data_->_tmp124_, _data_->_tmp125_) == 0) {
								_data_->_tmp126_ = NULL;
								_data_->_tmp126_ = _data_->nsp;
								_data_->_tmp127_ = NULL;
								_data_->_tmp127_ = _data_->node;
								_data_->_tmp128_ = NULL;
								_data_->_tmp128_ = gxml_dom_element_get_prefix (G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp127_, GXML_TYPE_DOM_ELEMENT) ? ((GXmlDomElement*) _data_->_tmp127_) : NULL);
								_data_->_tmp129_ = NULL;
								_data_->_tmp129_ = _data_->_tmp128_;
								_data_->_tmp130_ = NULL;
								_data_->_tmp130_ = _data_->_tmp129_;
								_data_->_tmp123_ = g_strcmp0 (_data_->_tmp126_, _data_->_tmp130_) == 0;
								_g_free0 (_data_->_tmp130_);
							} else {
								_data_->_tmp123_ = FALSE;
							}
							if (_data_->_tmp123_) {
								_g_free0 (_data_->nsp);
								_data_->strs = (_vala_array_free (_data_->strs, _data_->strs_length1, (GDestroyNotify) g_free), NULL);
								_g_free0 (_data_->ns);
								_g_free0 (_data_->_vala1_v);
								_g_free0 (_data_->ak);
								continue;
							}
							_g_free0 (_data_->nsp);
						}
						_data_->strs = (_vala_array_free (_data_->strs, _data_->strs_length1, (GDestroyNotify) g_free), NULL);
					}
					_g_free0 (_data_->ns);
				}
				_data_->_tmp131_ = 0;
				_data_->_tmp131_ = _data_->size;
				_data_->_tmp132_ = NULL;
				_data_->_tmp132_ = _data_->self->priv->tw;
				_data_->_tmp133_ = NULL;
				_data_->_tmp133_ = _data_->ak;
				_data_->_tmp134_ = NULL;
				_data_->_tmp134_ = _data_->_vala1_v;
				_data_->_tmp135_ = 0;
				_data_->_tmp135_ = xmlTextWriterWriteAttribute (_data_->_tmp132_, (xmlChar*) _data_->_tmp133_, (xmlChar*) _data_->_tmp134_);
				_data_->size = _data_->_tmp131_ + _data_->_tmp135_;
				_data_->_tmp136_ = 0;
				_data_->_tmp136_ = _data_->size;
				_data_->_tmp137_ = NULL;
				_data_->_tmp137_ = _data_->self->priv->tw;
				_data_->_tmp138_ = 0;
				_data_->_tmp138_ = xmlTextWriterEndAttribute (_data_->_tmp137_);
				_data_->size = _data_->_tmp136_ + _data_->_tmp138_;
				_data_->_tmp139_ = 0;
				_data_->_tmp139_ = _data_->size;
				if (_data_->_tmp139_ > 1500) {
					_data_->_tmp140_ = NULL;
					_data_->_tmp140_ = _data_->self->priv->tw;
					xmlTextWriterFlush (_data_->_tmp140_);
				}
				_g_free0 (_data_->_vala1_v);
				_g_free0 (_data_->ak);
			}
			_g_object_unref0 (_data_->_ak_it);
		}
		__g_list_free__g_param_spec_unref0_0 (_data_->lp);
	}
	{
		_data_->_tmp141_ = NULL;
		_data_->_tmp141_ = _data_->node;
		_data_->_tmp142_ = NULL;
		_data_->_tmp142_ = gxml_dom_node_get_child_nodes (_data_->_tmp141_);
		_data_->_tmp143_ = NULL;
		_data_->_tmp143_ = _data_->_tmp142_;
		_data_->_n_list = _data_->_tmp143_;
		_data_->_tmp144_ = NULL;
		_data_->_tmp144_ = _data_->_n_list;
		_data_->_tmp145_ = 0;
		_data_->_tmp145_ = gee_collection_get_size ((GeeCollection*) _data_->_tmp144_);
		_data_->_tmp146_ = 0;
		_data_->_tmp146_ = _data_->_tmp145_;
		_data_->_n_size = _data_->_tmp146_;
		_data_->_n_index = -1;
		while (TRUE) {
			_data_->_tmp147_ = 0;
			_data_->_tmp147_ = _data_->_n_index;
			_data_->_n_index = _data_->_tmp147_ + 1;
			_data_->_tmp148_ = 0;
			_data_->_tmp148_ = _data_->_n_index;
			_data_->_tmp149_ = 0;
			_data_->_tmp149_ = _data_->_n_size;
			if (!(_data_->_tmp148_ < _data_->_tmp149_)) {
				break;
			}
			_data_->_tmp150_ = NULL;
			_data_->_tmp150_ = _data_->_n_list;
			_data_->_tmp151_ = 0;
			_data_->_tmp151_ = _data_->_n_index;
			_data_->_tmp152_ = NULL;
			_data_->_tmp152_ = gee_list_get ((GeeList*) _data_->_tmp150_, _data_->_tmp151_);
			_data_->n = (GXmlDomNode*) _data_->_tmp152_;
			g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, _gxml_xparser_start_node_async_co_gsource_func, _data_, NULL);
			_data_->_state_ = 4;
			return FALSE;
			_state_4:
			;
			_data_->_tmp153_ = NULL;
			_data_->_tmp153_ = _data_->n;
			gxml_xparser_write_node (_data_->self, _data_->_tmp153_, &_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_->n);
				_g_object_unref0 (_data_->_n_list);
				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_->n);
		}
		_g_object_unref0 (_data_->_n_list);
	}
	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;
}


static void gxml_xparser_write_node (GXmlXParser* self, GXmlDomNode* n, GError** error) {
	xmlTextWriter* _tmp0_ = NULL;
	gint size = 0;
	GXmlDomNode* _tmp3_ = NULL;
	GXmlDomNode* _tmp10_ = NULL;
	GXmlDomNode* _tmp20_ = NULL;
	GXmlDomNode* _tmp30_ = NULL;
	GXmlDomNode* _tmp44_ = NULL;
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (n != NULL);
	_tmp0_ = self->priv->tw;
	if (_tmp0_ == NULL) {
		const gchar* _tmp1_ = NULL;
		GError* _tmp2_ = NULL;
		_tmp1_ = _ ("Internal Error: No TextWriter initialized");
		_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;
	}
	size = 0;
	_tmp3_ = n;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, GXML_TYPE_DOM_ELEMENT)) {
		GXmlDomNode* _tmp4_ = NULL;
		gint _tmp5_ = 0;
		xmlTextWriter* _tmp6_ = NULL;
		gint _tmp7_ = 0;
		gint _tmp8_ = 0;
		_tmp4_ = n;
		gxml_xparser_start_node (self, _tmp4_, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			g_propagate_error (error, _inner_error_);
			return;
		}
		_tmp5_ = size;
		_tmp6_ = self->priv->tw;
		_tmp7_ = xmlTextWriterEndElement (_tmp6_);
		size = _tmp5_ + _tmp7_;
		_tmp8_ = size;
		if (_tmp8_ > 1500) {
			xmlTextWriter* _tmp9_ = NULL;
			_tmp9_ = self->priv->tw;
			xmlTextWriterFlush (_tmp9_);
		}
	}
	_tmp10_ = n;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, GXML_TYPE_DOM_TEXT)) {
		gint _tmp11_ = 0;
		xmlTextWriter* _tmp12_ = NULL;
		GXmlDomNode* _tmp13_ = NULL;
		gchar* _tmp14_ = NULL;
		gchar* _tmp15_ = NULL;
		gchar* _tmp16_ = NULL;
		gint _tmp17_ = 0;
		gint _tmp18_ = 0;
		_tmp11_ = size;
		_tmp12_ = self->priv->tw;
		_tmp13_ = n;
		_tmp14_ = gxml_dom_node_get_node_value (_tmp13_);
		_tmp15_ = _tmp14_;
		_tmp16_ = _tmp15_;
		_tmp17_ = xmlTextWriterWriteString (_tmp12_, (xmlChar*) _tmp16_);
		size = _tmp11_ + _tmp17_;
		_g_free0 (_tmp16_);
		_tmp18_ = size;
		if (_tmp18_ > 1500) {
			xmlTextWriter* _tmp19_ = NULL;
			_tmp19_ = self->priv->tw;
			xmlTextWriterFlush (_tmp19_);
		}
	}
	_tmp20_ = n;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp20_, GXML_TYPE_DOM_COMMENT)) {
		gint _tmp21_ = 0;
		xmlTextWriter* _tmp22_ = NULL;
		GXmlDomNode* _tmp23_ = NULL;
		gchar* _tmp24_ = NULL;
		gchar* _tmp25_ = NULL;
		gchar* _tmp26_ = NULL;
		gint _tmp27_ = 0;
		gint _tmp28_ = 0;
		_tmp21_ = size;
		_tmp22_ = self->priv->tw;
		_tmp23_ = n;
		_tmp24_ = gxml_dom_node_get_node_value (_tmp23_);
		_tmp25_ = _tmp24_;
		_tmp26_ = _tmp25_;
		_tmp27_ = xmlTextWriterWriteComment (_tmp22_, (xmlChar*) _tmp26_);
		size = _tmp21_ + _tmp27_;
		_g_free0 (_tmp26_);
		_tmp28_ = size;
		if (_tmp28_ > 1500) {
			xmlTextWriter* _tmp29_ = NULL;
			_tmp29_ = self->priv->tw;
			xmlTextWriterFlush (_tmp29_);
		}
	}
	_tmp30_ = n;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp30_, GXML_TYPE_DOM_PROCESSING_INSTRUCTION)) {
		gint _tmp31_ = 0;
		xmlTextWriter* _tmp32_ = NULL;
		GXmlDomNode* _tmp33_ = NULL;
		gchar* _tmp34_ = NULL;
		gchar* _tmp35_ = NULL;
		gchar* _tmp36_ = NULL;
		GXmlDomNode* _tmp37_ = NULL;
		gchar* _tmp38_ = NULL;
		gchar* _tmp39_ = NULL;
		gchar* _tmp40_ = NULL;
		gint _tmp41_ = 0;
		gint _tmp42_ = 0;
		_tmp31_ = size;
		_tmp32_ = self->priv->tw;
		_tmp33_ = n;
		_tmp34_ = gxml_dom_processing_instruction_get_target (G_TYPE_CHECK_INSTANCE_TYPE (_tmp33_, GXML_TYPE_DOM_PROCESSING_INSTRUCTION) ? ((GXmlDomProcessingInstruction*) _tmp33_) : NULL);
		_tmp35_ = _tmp34_;
		_tmp36_ = _tmp35_;
		_tmp37_ = n;
		_tmp38_ = gxml_dom_character_data_get_data ((GXmlDomCharacterData*) (G_TYPE_CHECK_INSTANCE_TYPE (_tmp37_, GXML_TYPE_DOM_PROCESSING_INSTRUCTION) ? ((GXmlDomProcessingInstruction*) _tmp37_) : NULL));
		_tmp39_ = _tmp38_;
		_tmp40_ = _tmp39_;
		_tmp41_ = xmlTextWriterWritePI (_tmp32_, (xmlChar*) _tmp36_, (xmlChar*) _tmp40_);
		size = _tmp31_ + _tmp41_;
		_g_free0 (_tmp40_);
		_g_free0 (_tmp36_);
		_tmp42_ = size;
		if (_tmp42_ > 1500) {
			xmlTextWriter* _tmp43_ = NULL;
			_tmp43_ = self->priv->tw;
			xmlTextWriterFlush (_tmp43_);
		}
	}
	_tmp44_ = n;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp44_, GXML_TYPE_DOM_DOCUMENT_TYPE)) {
		gint _tmp45_ = 0;
		xmlTextWriter* _tmp46_ = NULL;
		GXmlDomNode* _tmp47_ = NULL;
		const gchar* _tmp48_ = NULL;
		const gchar* _tmp49_ = NULL;
		GXmlDomNode* _tmp50_ = NULL;
		const gchar* _tmp51_ = NULL;
		const gchar* _tmp52_ = NULL;
		GXmlDomNode* _tmp53_ = NULL;
		const gchar* _tmp54_ = NULL;
		const gchar* _tmp55_ = NULL;
		gint _tmp56_ = 0;
		gint _tmp57_ = 0;
		_tmp45_ = size;
		_tmp46_ = self->priv->tw;
		_tmp47_ = n;
		_tmp48_ = gxml_dom_document_type_get_name (G_TYPE_CHECK_INSTANCE_TYPE (_tmp47_, GXML_TYPE_DOM_DOCUMENT_TYPE) ? ((GXmlDomDocumentType*) _tmp47_) : NULL);
		_tmp49_ = _tmp48_;
		_tmp50_ = n;
		_tmp51_ = gxml_dom_document_type_get_public_id (G_TYPE_CHECK_INSTANCE_TYPE (_tmp50_, GXML_TYPE_DOM_DOCUMENT_TYPE) ? ((GXmlDomDocumentType*) _tmp50_) : NULL);
		_tmp52_ = _tmp51_;
		_tmp53_ = n;
		_tmp54_ = gxml_dom_document_type_get_system_id (G_TYPE_CHECK_INSTANCE_TYPE (_tmp53_, GXML_TYPE_DOM_DOCUMENT_TYPE) ? ((GXmlDomDocumentType*) _tmp53_) : NULL);
		_tmp55_ = _tmp54_;
		_tmp56_ = xmlTextWriterWriteDTD (_tmp46_, (xmlChar*) _tmp49_, (xmlChar*) _tmp52_, (xmlChar*) _tmp55_, (xmlChar*) NULL);
		size = _tmp45_ + _tmp56_;
		_tmp57_ = size;
		if (_tmp57_ > 1500) {
			xmlTextWriter* _tmp58_ = NULL;
			_tmp58_ = self->priv->tw;
			xmlTextWriterFlush (_tmp58_);
		}
	}
}


static gboolean gxml_xparser_real_get_backup (GXmlParser* base) {
	gboolean result;
	GXmlXParser* self;
	gboolean _tmp0_ = FALSE;
	self = (GXmlXParser*) base;
	_tmp0_ = self->priv->_backup;
	result = _tmp0_;
	return result;
}


static void gxml_xparser_real_set_backup (GXmlParser* base, gboolean value) {
	GXmlXParser* self;
	gboolean _tmp0_ = FALSE;
	self = (GXmlXParser*) base;
	_tmp0_ = value;
	self->priv->_backup = _tmp0_;
	g_object_notify ((GObject *) self, "backup");
}


static gboolean gxml_xparser_real_get_indent (GXmlParser* base) {
	gboolean result;
	GXmlXParser* self;
	gboolean _tmp0_ = FALSE;
	self = (GXmlXParser*) base;
	_tmp0_ = self->priv->_indent;
	result = _tmp0_;
	return result;
}


static void gxml_xparser_real_set_indent (GXmlParser* base, gboolean value) {
	GXmlXParser* self;
	gboolean _tmp0_ = FALSE;
	self = (GXmlXParser*) base;
	_tmp0_ = value;
	self->priv->_indent = _tmp0_;
	g_object_notify ((GObject *) self, "indent");
}


static GXmlDomNode* gxml_xparser_real_get_node (GXmlParser* base) {
	GXmlDomNode* result;
	GXmlXParser* self;
	GXmlDomNode* _tmp0_ = NULL;
	self = (GXmlXParser*) base;
	_tmp0_ = self->priv->_node;
	result = _tmp0_;
	return result;
}


static GObject * gxml_xparser_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	GXmlXParser * self;
	parent_class = G_OBJECT_CLASS (gxml_xparser_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GXML_TYPE_XPARSER, GXmlXParser);
	gxml_parser_set_backup ((GXmlParser*) self, TRUE);
	gxml_parser_set_indent ((GXmlParser*) self, FALSE);
	return obj;
}


static void gxml_xparser_class_init (GXmlXParserClass * klass) {
	gxml_xparser_parent_class = g_type_class_peek_parent (klass);
	g_type_class_add_private (klass, sizeof (GXmlXParserPrivate));
	G_OBJECT_CLASS (klass)->get_property = _vala_gxml_xparser_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_gxml_xparser_set_property;
	G_OBJECT_CLASS (klass)->constructor = gxml_xparser_constructor;
	G_OBJECT_CLASS (klass)->finalize = gxml_xparser_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), GXML_XPARSER_BACKUP_PROPERTY, 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));
	g_object_class_install_property (G_OBJECT_CLASS (klass), GXML_XPARSER_INDENT_PROPERTY, 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));
	g_object_class_install_property (G_OBJECT_CLASS (klass), GXML_XPARSER_NODE_PROPERTY, 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));
}


static void gxml_xparser_gxml_parser_interface_init (GXmlParserIface * iface) {
	gxml_xparser_gxml_parser_parent_iface = g_type_interface_peek_parent (iface);
	iface->write_stream = (void (*)(GXmlParser*, GOutputStream*, GCancellable*, GError**)) gxml_xparser_real_write_stream;
	iface->write_stream_async = (void (*)(GXmlParser*, GOutputStream*, GCancellable*, GAsyncReadyCallback, gpointer)) gxml_xparser_real_write_stream_async;
	iface->write_stream_finish = (void (*)(GXmlParser*, GAsyncResult*, GError**)) gxml_xparser_real_write_stream_finish;
	iface->create_stream = (GInputStream* (*)(GXmlParser*, GCancellable*, GError**)) gxml_xparser_real_create_stream;
	iface->create_stream_async = (void (*)(GXmlParser*, GCancellable*, GAsyncReadyCallback, gpointer)) gxml_xparser_real_create_stream_async;
	iface->create_stream_finish = (GInputStream* (*)(GXmlParser*, GAsyncResult*, GError**)) gxml_xparser_real_create_stream_finish;
	iface->write_string = (gchar* (*)(GXmlParser*, GError**)) gxml_xparser_real_write_string;
	iface->write_string_async = (void (*)(GXmlParser*, GAsyncReadyCallback, gpointer)) gxml_xparser_real_write_string_async;
	iface->write_string_finish = (gchar* (*)(GXmlParser*, GAsyncResult*, GError**)) gxml_xparser_real_write_string_finish;
	iface->read_string = (void (*)(GXmlParser*, const gchar*, GCancellable*, GError**)) gxml_xparser_real_read_string;
	iface->read_string_async = (void (*)(GXmlParser*, const gchar*, GCancellable*, GAsyncReadyCallback, gpointer)) gxml_xparser_real_read_string_async;
	iface->read_string_finish = (void (*)(GXmlParser*, GAsyncResult*, GError**)) gxml_xparser_real_read_string_finish;
	iface->read_stream = (void (*)(GXmlParser*, GInputStream*, GCancellable*, GError**)) gxml_xparser_real_read_stream;
	iface->read_stream_async = (void (*)(GXmlParser*, GInputStream*, GCancellable*, GAsyncReadyCallback, gpointer)) gxml_xparser_real_read_stream_async;
	iface->read_stream_finish = (void (*)(GXmlParser*, GAsyncResult*, GError**)) gxml_xparser_real_read_stream_finish;
	iface->read_child_nodes_stream = (void (*)(GXmlParser*, GInputStream*, GCancellable*, GError**)) gxml_xparser_real_read_child_nodes_stream;
	iface->read_unparsed = (gchar* (*)(GXmlParser*, GError**)) gxml_xparser_real_read_unparsed;
	iface->move_next_node = (gboolean (*)(GXmlParser*, GError**)) gxml_xparser_real_move_next_node;
	iface->current_is_empty_element = (gboolean (*)(GXmlParser*)) gxml_xparser_real_current_is_empty_element;
	iface->current_is_element = (gboolean (*)(GXmlParser*)) gxml_xparser_real_current_is_element;
	iface->current_is_document = (gboolean (*)(GXmlParser*)) gxml_xparser_real_current_is_document;
	iface->current_node_name = (gchar* (*)(GXmlParser*)) gxml_xparser_real_current_node_name;
	iface->create_element = (GXmlDomElement* (*)(GXmlParser*, GXmlDomNode*, GError**)) gxml_xparser_real_create_element;
	iface->read_element = (void (*)(GXmlParser*, GXmlDomElement*, GError**)) gxml_xparser_real_read_element;
	iface->read_child_node = (gboolean (*)(GXmlParser*, GXmlDomNode*, GError**)) gxml_xparser_real_read_child_node;
	iface->get_backup = gxml_xparser_real_get_backup;
	iface->set_backup = gxml_xparser_real_set_backup;
	iface->get_indent = gxml_xparser_real_get_indent;
	iface->set_indent = gxml_xparser_real_set_indent;
	iface->get_node = gxml_xparser_real_get_node;
}


static void gxml_xparser_instance_init (GXmlXParser * self) {
	self->priv = GXML_XPARSER_GET_PRIVATE (self);
}


static void gxml_xparser_finalize (GObject* obj) {
	GXmlXParser * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GXML_TYPE_XPARSER, GXmlXParser);
	_g_object_unref0 (self->priv->_document);
	_g_object_unref0 (self->priv->_node);
	_xmlFreeTextReader0 (self->priv->tr);
	_xmlFreeTextWriter0 (self->priv->tw);
	G_OBJECT_CLASS (gxml_xparser_parent_class)->finalize (obj);
}


/**
 * {@link Parser} implementation using libxml2 engine
 */
GType gxml_xparser_get_type (void) {
	static volatile gsize gxml_xparser_type_id__volatile = 0;
	if (g_once_init_enter (&gxml_xparser_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GXmlXParserClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gxml_xparser_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GXmlXParser), 0, (GInstanceInitFunc) gxml_xparser_instance_init, NULL };
		static const GInterfaceInfo gxml_parser_info = { (GInterfaceInitFunc) gxml_xparser_gxml_parser_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType gxml_xparser_type_id;
		gxml_xparser_type_id = g_type_register_static (G_TYPE_OBJECT, "GXmlXParser", &g_define_type_info, 0);
		g_type_add_interface_static (gxml_xparser_type_id, GXML_TYPE_PARSER, &gxml_parser_info);
		g_once_init_leave (&gxml_xparser_type_id__volatile, gxml_xparser_type_id);
	}
	return gxml_xparser_type_id__volatile;
}


static void _vala_gxml_xparser_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GXmlXParser * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GXML_TYPE_XPARSER, GXmlXParser);
	switch (property_id) {
		case GXML_XPARSER_BACKUP_PROPERTY:
		g_value_set_boolean (value, gxml_parser_get_backup ((GXmlParser*) self));
		break;
		case GXML_XPARSER_INDENT_PROPERTY:
		g_value_set_boolean (value, gxml_parser_get_indent ((GXmlParser*) self));
		break;
		case GXML_XPARSER_NODE_PROPERTY:
		g_value_set_object (value, gxml_parser_get_node ((GXmlParser*) self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}


static void _vala_gxml_xparser_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GXmlXParser * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GXML_TYPE_XPARSER, GXmlXParser);
	switch (property_id) {
		case GXML_XPARSER_BACKUP_PROPERTY:
		gxml_parser_set_backup ((GXmlParser*) self, g_value_get_boolean (value));
		break;
		case GXML_XPARSER_INDENT_PROPERTY:
		gxml_parser_set_indent ((GXmlParser*) self, g_value_get_boolean (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}


static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	if ((array != NULL) && (destroy_func != NULL)) {
		int i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}


static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}


static gint _vala_array_length (gpointer array) {
	int length;
	length = 0;
	if (array) {
		while (((gpointer*) array)[length]) {
			length++;
		}
	}
	return length;
}



