UPnPsdk 0.1
Universal Plug and Play +, Software Development Kit
 
Loading...
Searching...
No Matches
ixml.cpp File Reference
#include <ixml/ixmldebug.hpp>
#include <ixml/ixmlparser.hpp>
#include <cstring>
+ Include dependency graph for ixml.cpp:

Go to the source code of this file.

Functions

static void copy_with_escape (ixml_membuf *buf, const char *p)
 Appends a string to a buffer, substituting some characters by escape sequences.
 
static void ixmlPrintDomTreeRecursive (IXML_Node *nodeptr, ixml_membuf *buf)
 Recursive function to print all the node in a tree. Internal to parser only.
 
static void ixmlPrintDomTree (IXML_Node *nodeptr, ixml_membuf *buf)
 Print a DOM tree.
 
static void ixmlDomTreetoString (IXML_Node *nodeptr, ixml_membuf *buf)
 Converts a DOM tree into a text string.
 
int ixmlLoadDocumentEx (const char *xmlFile, IXML_Document **doc)
 Parses an XML text file converting it into an IXML DOM representation.
 
IXML_DocumentixmlLoadDocument (const char *xmlFile)
 Parses an XML text file converting it into an IXML DOM representation.
 
DOMString ixmlPrintDocument (IXML_Document *doc)
 Renders a Node and all sub-elements into an XML document representation.
 
DOMString ixmlPrintNode (IXML_Node *node)
 Renders a Node and all sub-elements into an XML text representation.
 
DOMString ixmlDocumenttoString (IXML_Document *doc)
 Renders a Node and all sub-elements into an XML document representation.
 
DOMString ixmlNodetoString (IXML_Node *node)
 Renders a Node and all sub-elements into an XML text representation. The caller is required to free the DOMString returned from this function using ixmlFreeDOMString when it is no longer required.
 
void ixmlRelaxParser (char errorChar)
 Makes the XML parser more tolerant to malformed text.
 
int ixmlParseBufferEx (const char *buffer, IXML_Document **retDoc)
 Parses an XML text buffer converting it into an IXML DOM representation.
 
IXML_DocumentixmlParseBuffer (const char *buffer)
 Parses an XML text buffer converting it into an IXML DOM representation.
 
DOMString ixmlCloneDOMString (const DOMString src)
 Clones an existing DOMString.
 
void ixmlFreeDOMString (DOMString buf)
 Frees a DOMString.
 

Function Documentation

◆ copy_with_escape()

static void copy_with_escape ( ixml_membuf buf,
const char *  p 
)
static

Appends a string to a buffer, substituting some characters by escape sequences.

Parameters
[in,out]bufThe input/output buffer.
[in]pThe string to copy from.

Definition at line 46 of file ixml.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ixmlPrintDomTreeRecursive()

static void ixmlPrintDomTreeRecursive ( IXML_Node nodeptr,
ixml_membuf buf 
)
static

Recursive function to print all the node in a tree. Internal to parser only.

Parameters
[in]nodeptr
Todo:
documentation.
Parameters
[in]buf
Todo:
documentation.

Definition at line 85 of file ixml.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ixmlPrintDomTree()

static void ixmlPrintDomTree ( IXML_Node nodeptr,
ixml_membuf buf 
)
static

Print a DOM tree.

Element, and Attribute nodes are handled differently. We don't want to print the Element and Attribute nodes' sibling.

Parameters
[in]nodeptr
Todo:
documentation.
Parameters
[in]buf
Todo:
documentation.

Definition at line 177 of file ixml.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ixmlDomTreetoString()

static void ixmlDomTreetoString ( IXML_Node nodeptr,
ixml_membuf buf 
)
static

Converts a DOM tree into a text string.

Element, and Attribute nodes are handled differently. We don't want to print the Element and Attribute nodes' sibling.

Parameters
[in]nodeptr
Todo:
documentation.
Parameters
[in]buf
Todo:
documentation.

Definition at line 244 of file ixml.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: