Functions

document.c File Reference

#include "ixmldebug.h"
#include "ixmlparser.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for document.c:

Functions

void ixmlDocument_init (IXML_Document *doc)
 Initializes a Document node.
void ixmlDocument_free (IXML_Document *doc)
 Frees a Document object and all Nodes associated with it.
static void ixmlDocument_setOwnerDocument (IXML_Document *doc, IXML_Node *nodeptr)
int ixmlDocument_importNode (IXML_Document *doc, IXML_Node *importNode, BOOL deep, IXML_Node **rtNode)
 Imports a Node from another Document into this Document.
int ixmlDocument_createElementEx (IXML_Document *doc, const char *tagName, IXML_Element **rtElement)
 Creates a new Element node with the given tag name.
IXML_ElementixmlDocument_createElement (IXML_Document *doc, const char *tagName)
 Creates a new Element node with the given tag name.
int ixmlDocument_createDocumentEx (IXML_Document **rtDoc)
 Creates a new empty Document node.
IXML_DocumentixmlDocument_createDocument ()
 Creates a new empty Document node.
int ixmlDocument_createTextNodeEx (IXML_Document *doc, const char *data, IXML_Node **textNode)
 Creates a new Text node with the given data.
IXML_NodeixmlDocument_createTextNode (IXML_Document *doc, const char *data)
 Creates a new Text node with the given data.
int ixmlDocument_createAttributeEx (IXML_Document *doc, const char *name, IXML_Attr **rtAttr)
 Creates a new Attr node with the given name.
IXML_AttrixmlDocument_createAttribute (IXML_Document *doc, const char *name)
 Creates a new Attr node with the given name.
int ixmlDocument_createAttributeNSEx (IXML_Document *doc, const char *namespaceURI, const char *qualifiedName, IXML_Attr **rtAttr)
 Creates a new Attr node with the given qualified name and namespace URI.
IXML_AttrixmlDocument_createAttributeNS (IXML_Document *doc, const char *namespaceURI, const char *qualifiedName)
 Creates a new Attribute node with the given qualified name and namespace URI.
int ixmlDocument_createCDATASectionEx (IXML_Document *doc, const char *data, IXML_CDATASection **rtCD)
 Creates a new CDATASection node with given data.
IXML_CDATASectionixmlDocument_createCDATASection (IXML_Document *doc, const char *data)
 Creates a new CDATASection node with given data.
int ixmlDocument_createElementNSEx (IXML_Document *doc, const char *namespaceURI, const char *qualifiedName, IXML_Element **rtElement)
 Creates a new Element node in the given qualified name and namespace URI.
IXML_ElementixmlDocument_createElementNS (IXML_Document *doc, const char *namespaceURI, const char *qualifiedName)
 Creates a new Element node in the given qualified name and namespace URI.
IXML_NodeListixmlDocument_getElementsByTagName (IXML_Document *doc, const char *tagName)
 Returns a NodeList of all Elements that match the given tag name in the order in which they were encountered in a preorder traversal of the Document tree.
IXML_NodeListixmlDocument_getElementsByTagNameNS (IXML_Document *doc, const char *namespaceURI, const char *localName)
 Returns a NodeList of Elements that match the given local name and namespace URI in the order they are encountered in a preorder traversal of the Document tree.
IXML_ElementixmlDocument_getElementById (IXML_Document *doc, const char *tagName)
 Returns the Element whose ID matches that given id.

Detailed Description


Function Documentation

static void ixmlDocument_setOwnerDocument ( IXML_Document doc,
IXML_Node nodeptr 
) [static]

When this function is called first time, nodeptr is the root of the subtree, so it is not necessay to do two steps recursion.

Internal function called by ixmlDocument_importNode

Parameters:
[in] doc The document node.
[in] nodeptr 
Todo:
documentation.

References ixmlNode_getFirstChild(), and ixmlNode_getNextSibling().

Referenced by ixmlDocument_importNode().