#include <LibXmlKit/xmldoc.h>
#include <LibXmlKit/xmlmem.h>
#include <libxml/parserInternals.h>
Functions | |
| s_xml_doc_init_setting (dovalid, FALSE, dorem) | |
| if (fname==NULL) fname=s_defname | |
| if (ctxt==NULL) return NULL | |
| if ((ctxt->directory==NULL)&&(directory==NULL)) directory=xmlParserGetDirectory(fname) | |
| if ((ctxt->directory==NULL)&&(directory!=NULL)) ctxt->directory=(char *) xmlStrdup((xmlChar *) directory) | |
| id | recovery () |
| xmlParseDocument (ctxt) | |
| if (ctxt->wellFormed &&(!dovalid||ctxt->valid)) | |
| if (docptr==NULL) return NULL | |
| s_xml_doc_init_setting (FALSE, FALSE, FALSE) | |
| if ((docptr=xmlNewDoc(s_version))==NULL) return NULL | |
| if ((root=xmlNewNode(NULL, rootname?rootname:s_root))==NULL) return NULL | |
| xmlDocSetRootElement (docptr, root) | |
| id | initXmlDoc: (id, xmlDocPtr, id docptr, id, id xml_doc_ptr, id, id docptr,) |
| xml_doc_ptr | xmlFreeDoc () |
| free (input_file_name) | |
| free (output_file_name) | |
| XmlNode * | root () |
| return | xml_mem_node_ptr2obj (root) |
| void | setInputFileName: (id, const char *, id fname, id, input_file_name free,) |
| const char * | input_file_name () |
| void | setOutputFileName: (id, const char *, id fname, id, output_file_name free,) |
| int | result () |
| if (output_file_name &&strcmp(output_file_name,"-")!=0) | |
| int | saveFileAs:setOutputFileName: (id, const char *, id fname, id, id self,[setOutputFileName] id, id fname,) |
| xmlDocPtr | xml_doc_ptr () |
Variables | |
| return | nil |
| XmlDoc * | docobj = xml_mem_doc_ptr2obj(docptr) |
| xmlParserCtxtPtr | ctxt = xmlCreateFileParserCtxt(fname) |
| xmlDocPtr | docptr |
| char * | directory = NULL |
| xmlNodePtr | root = xmlDocGetRootElement(xml_doc_ptr) |
| input_file_name = output_file_name = NULL | |
| return [super init] | |
| output_file_name = fname ? strdup(fname) : NULL | |
1.3.6