/home/gigerk/eth/sa2/xpsh-adaptors-0.0.1/src/xml/xml.h

00001 
00002 #ifndef XML_XML_H
00003 #define XML_XML_H 1
00004 
00005 #include "config.h"
00006 
00007 #include <libxml/parser.h>
00008 #include <libxml/tree.h>
00009 
00010 #include <xpsh/xpsh_def.h>
00011 
00012 #ifndef MAX_DEPTH
00013 #define MAX_DEPTH 3
00014 #endif
00015 
00016 char **implemented_mime_types();
00017 int n_implemented_mime_types();
00018 
00019 char *get_ns_prefix() { return NULL; }
00020 char *get_ns_uri() { return NULL; }
00021 
00022 void expand_metadata( node_xpsh *root_metadata_node,
00023                       const char *filename, 
00024                       const char *mime_type );
00025 
00026 void expand_content( node_xpsh *root_content_node,
00027                      const char *filename, 
00028                      const char *mime_type );
00029 
00030 node_xpsh *newNode( node_xpsh *parent, node_type t, const char *name,
00031                    const char *value, node_xpsh *prev );
00032 
00033 void createNodes( xmlNode *act_xmlNode, node_xpsh *parent, int act_depth );
00034 void createAttributes( xmlAttr *act_xmlAttr, node_xpsh *parent );
00035 
00036 static void nullErrHandler( void *ctx, const char *msg,... );
00037 
00038 #endif /* XML_XML_H */

Generated on Mon Apr 17 18:39:36 2006 for xpsh-adaptors by  doxygen 1.4.6