/* $Id: ruby_xml_document.h 138 2007-08-29 18:00:35Z danj $ */ /* Please see the LICENSE file for copyright and distribution information */ #ifndef __RUBY_XML_DOCUMENT__ #define __RUBY_XML_DOCUMENT__ extern VALUE cXMLDocument; typedef struct rxp_document { xmlDocPtr doc; /* Tree/DOM interface */ int data_type; /* The data type referenced by *data */ void *data; /* Pointer to an external structure of options */ } ruby_xml_document_t; VALUE ruby_xml_document_filename_get(VALUE self); VALUE ruby_xml_document_new_native(VALUE class, VALUE xmlver); VALUE ruby_xml_document_wrap(VALUE class, xmlDocPtr xnode); void ruby_xml_document_free(ruby_xml_document_t *rxd); VALUE ruby_xml_document_root_get(VALUE self); void ruby_init_xml_document(void); #endif