perl-XML-LibXML / dom.h

/* dom.h
 * Author: Christian Glahn (2001)
 * This header file provides some definitions for wrapper functions.
 * These functions hide most of libxml2 code, and should make the
 * code in the XS file more readable . 
 * The Functions are sorted in four parts:
 * part 0 ..... general wrapper functions which do not belong 
 *              to any of the other parts and not specified in DOM. 
 * part A ..... wrapper functions for general nodeaccess
 * part B ..... document wrapper 
 * part C ..... element wrapper
 * I did not implement any Text, CDATASection or comment wrapper functions,
 * since it is pretty straightforeward to access these nodes. 

#ifndef __LIBXML_DOM_H__
#define __LIBXML_DOM_H__

#include <libxml/tree.h>
#include <libxml/xpath.h>

 * part 0:
 * unsortet. 

domCreateDocument( xmlChar* version, 
                   xmlChar *encoding );

domReadWellBalancedString( xmlDocPtr doc, xmlChar* string );

 * part A:
 * class Node

/* A.1 DOM specified section */

domAppendChild( xmlNodePtr self,
                xmlNodePtr newChild );
domReplaceChild( xmlNodePtr self,
                 xmlNodePtr oldChlid,
                 xmlNodePtr newChild );
/* xmlNodePtr */
/* domInsertBefore( xmlNodePtr self,  */
/* 		 xmlNodePtr newChild, */
/* 		 xmlNodePtr refChild ); */
domRemoveNode( xmlNodePtr self,
               xmlNodePtr Child );

/* A.3 extra functionality not specified in DOM L1/2*/
domSetNodeValue( xmlNodePtr self, xmlChar* value );
domSetParentNode( xmlNodePtr self, 
		  xmlNodePtr newParent );
domUnbindNode(  xmlNodePtr self );

const char*
domNodeTypeName( xmlNodePtr self );

 * part B:
 * class Document

domCreateCDATASection( xmlDocPtr self, xmlChar *content );
/* extra document functions */ 
domDocumentElement( xmlDocPtr document );
domSetDocumentElement( xmlDocPtr document, 
		       xmlNodePtr newRoot);

 * part C:
 * class Element

domGetElementsByTagName( xmlNodePtr self, xmlChar* name );

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.