libUPnP  1.6.20
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. More...
 
void ixmlDocument_free (IXML_Document *doc)
 Frees a Document object and all Nodes associated with it. More...
 
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. More...
 
int ixmlDocument_createElementEx (IXML_Document *doc, const DOMString tagName, IXML_Element **rtElement)
 
IXML_ElementixmlDocument_createElement (IXML_Document *doc, const DOMString tagName)
 
int ixmlDocument_createDocumentEx (IXML_Document **rtDoc)
 Creates a new empty Document node. More...
 
IXML_DocumentixmlDocument_createDocument ()
 Creates a new empty Document node. More...
 
int ixmlDocument_createTextNodeEx (IXML_Document *doc, const DOMString data, IXML_Node **textNode)
 
IXML_NodeixmlDocument_createTextNode (IXML_Document *doc, const DOMString data)
 
int ixmlDocument_createAttributeEx (IXML_Document *doc, const char *name, IXML_Attr **rtAttr)
 Creates a new Attr node with the given name. More...
 
IXML_AttrixmlDocument_createAttribute (IXML_Document *doc, const char *name)
 Creates a new Attr node with the given name. More...
 
int ixmlDocument_createAttributeNSEx (IXML_Document *doc, const DOMString namespaceURI, const DOMString qualifiedName, IXML_Attr **rtAttr)
 
IXML_AttrixmlDocument_createAttributeNS (IXML_Document *doc, const DOMString namespaceURI, const DOMString qualifiedName)
 
int ixmlDocument_createCDATASectionEx (IXML_Document *doc, const DOMString data, IXML_CDATASection **rtCD)
 
IXML_CDATASectionixmlDocument_createCDATASection (IXML_Document *doc, const DOMString data)
 
int ixmlDocument_createElementNSEx (IXML_Document *doc, const DOMString namespaceURI, const DOMString qualifiedName, IXML_Element **rtElement)
 
IXML_ElementixmlDocument_createElementNS (IXML_Document *doc, const DOMString namespaceURI, const DOMString qualifiedName)
 
IXML_NodeListixmlDocument_getElementsByTagName (IXML_Document *doc, const DOMString tagName)
 
IXML_NodeListixmlDocument_getElementsByTagNameNS (IXML_Document *doc, const DOMString namespaceURI, const DOMString localName)
 
IXML_ElementixmlDocument_getElementById (IXML_Document *doc, const DOMString tagName)
 

Function Documentation

§ ixmlDocument_setOwnerDocument()

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]docThe document node.
[in]nodeptr
Todo:
documentation.

References ixmlNode_getFirstChild(), and ixmlNode_getNextSibling().