libUPnP  1.8.4
ActionComplete.h
Go to the documentation of this file.
1 
2 #ifndef ACTIONCOMPLETE_H
3 #define ACTIONCOMPLETE_H
4 
5 
14 #define CLASS UpnpActionComplete
15 
16 #define EXPAND_CLASS_MEMBERS(CLASS) \
17  EXPAND_CLASS_MEMBER_INT(CLASS, ErrCode, int) \
18  EXPAND_CLASS_MEMBER_STRING(CLASS, CtrlUrl) \
19  EXPAND_CLASS_MEMBER_INT(CLASS, ActionRequest, IXML_Document *) \
20  EXPAND_CLASS_MEMBER_INT(CLASS, ActionResult, IXML_Document *) \
21 
22 #include "TemplateInclude.h"
23 
24 
25 #endif /* ACTIONCOMPLETE_H */
26 
ixmlmembuf.h
ixmlNode_getNodeName
EXPORT_SPEC const char * ixmlNode_getNodeName(IXML_Node *nodeptr)
Returns the name of the Node, depending on what type of Node it is, in a read-only string.
Definition: node.c:122
ixml_membuf_init
void ixml_membuf_init(ixml_membuf *m)
ixml_membuf initialization routine.
Definition: ixmlmembuf.c:108
Parser_getChar
static int Parser_getChar(const char *src, ptrdiff_t *cLen)
Returns next char value and its length.
Definition: ixmlparser.c:732
ixmlNamedNodeMap_addToNamedNodeMap
int ixmlNamedNodeMap_addToNamedNodeMap(IXML_NamedNodeMap **nnMap, IXML_Node *add)
Add a node to a NamedNodeMap.
Definition: namedNodeMap.c:156
ixmlDocument_createTextNodeEx
EXPORT_SPEC int ixmlDocument_createTextNodeEx(IXML_Document *doc, const char *data, IXML_Node **textNode)
Creates a new Text node with the given data.
ixml_membuf_set_size
static int ixml_membuf_set_size(INOUT ixml_membuf *m, IN size_t new_length)
Increases or decreases buffer capacity so that at least 'new_length' bytes can be stored.
Definition: ixmlmembuf.c:58
_IXML_NamespaceURI
Definition: ixmlparser.h:57
ixmlNodeList_addToNodeList
int ixmlNodeList_addToNodeList(IXML_NodeList **nList, IXML_Node *add)
Add a node to nodelist.
Definition: nodeList.c:82
ixmlNodeList_free
EXPORT_SPEC void ixmlNodeList_free(IXML_NodeList *nList)
Frees a NodeList object.
Definition: nodeList.c:143
Parser_eTagVerification
static int Parser_eTagVerification(Parser *xmlParser, IXML_Node *newNode)
Verifies endof element tag is the same as the openning element tag.
Definition: ixmlparser.c:2304
Parser_xmlNamespace
static int Parser_xmlNamespace(Parser *xmlParser, IXML_Node *newNode)
Add namespace definition.
Definition: ixmlparser.c:1546
Parser_processAttributeName
static int Parser_processAttributeName(IXML_Document *rootDoc, Parser *xmlParser, IXML_Node *newNode)
Processes the attribute name.
Definition: ixmlparser.c:2037
ixmlNode_getOwnerDocument
IXML_Document * ixmlNode_getOwnerDocument(IXML_Node *nodeptr)
Retrieves the document object associated with this Node.
Definition: node.c:356
ixmldebug.h
Auxiliar routines to aid debugging.
Parser_processAttribute
static int Parser_processAttribute(Parser *xmlParser, IXML_Node *node)
Processes attribute.
Definition: ixmlparser.c:1676
Parser_freeNodeContent
void Parser_freeNodeContent(IXML_Node *nodeptr)
Fees a node contents.
Definition: ixmlparser.c:2626
Parser_getNameSpace
static char * Parser_getNameSpace(Parser *xmlParser, const char *prefix)
Unimplemented function.
Definition: ixmlparser.c:1473
Parser_skipComment
static int Parser_skipComment(char **pstrSrc)
Skips all characters in the string until it finds the skip key. Then it skips the skip key and return...
Definition: ixmlparser.c:447
ixmlPrintNode
DOMString ixmlPrintNode(IXML_Node *node)
Renders a Node and all sub-elements into an XML text representation.
Definition: ixml.c:365
ixmlNode_getFirstChild
EXPORT_SPEC IXML_Node * ixmlNode_getFirstChild(IXML_Node *nodeptr)
Retrieves the first child Node of a Node.
Definition: node.c:307
ixmlFreeDOMString
EXPORT_SPEC void ixmlFreeDOMString(char *buf)
Frees a DOMString.
Parser_readFileOrBuffer
static int Parser_readFileOrBuffer(Parser *xmlParser, const char *xmlFileName, BOOL file)
Read a xml file or buffer contents into xml parser.
Definition: ixmlparser.c:2542
ixmlNamedNodeMap_addToNamedNodeMap
int ixmlNamedNodeMap_addToNamedNodeMap(IXML_NamedNodeMap **nnMap, IXML_Node *add)
Add a node to a NamedNodeMap.
Definition: namedNodeMap.c:156
ixmlDocument_init
EXPORT_SPEC void ixmlDocument_init(IXML_Document *nodeptr)
Initializes a Document node.
Definition: document.c:48
Parser_setLastElem
static int Parser_setLastElem(Parser *xmlParser, const char *s)
Set the last element to be the given string.
Definition: ixmlparser.c:545
_Parser::savePtr
char * savePtr
Definition: ixmlparser.h:89
ixmlNode_cloneAttr
static IXML_Attr * ixmlNode_cloneAttr(IXML_Attr *nodeptr)
Returns a clone of an attribute node.
Definition: node.c:824
MEMBUF_DEF_SIZE_INC
#define MEMBUF_DEF_SIZE_INC
Definition: membuffer.h:66
Parser_getNextNode
static int Parser_getNextNode(Parser *xmlParser, IXML_Node *node, BOOL *bETag)
Get the next node.
Definition: ixmlparser.c:1833
ixmlNode_getParentNode
IXML_Node * ixmlNode_getParentNode(IXML_Node *nodeptr)
Retrieves the parent Node for a Node.
Definition: node.c:297
Parser_clearTokenBuf
static void Parser_clearTokenBuf(Parser *xmlParser)
Clear token buffer.
Definition: ixmlparser.c:565
ixmlNode_setSiblingNodesParent
static void ixmlNode_setSiblingNodesParent(IXML_Node *nodeptr)
Sets siblings nodes parent to be the same as this node's.
Definition: node.c:905
ixmlNamedNodeMap_getNamedItem
EXPORT_SPEC IXML_Node * ixmlNamedNodeMap_getNamedItem(IXML_NamedNodeMap *nnMap, const char *name)
Retrieves a Node from the NamedNodeMap by name.
ixmlCDATASection_init
void ixmlCDATASection_init(IXML_CDATASection *nodeptr)
Initializes a CDATASection node.
Definition: node.c:55
ixmlNode_getNodeValue
EXPORT_SPEC const char * ixmlNode_getNodeValue(IXML_Node *nodeptr)
Returns the value of the Node as a string.
Definition: node.c:253
ixmlNode_getChildNodes
EXPORT_SPEC IXML_NodeList * ixmlNode_getChildNodes(IXML_Node *nodeptr)
Retrieves the list of children of a Node in a NodeList structure.
Definition: node.c:1105
ixml_membuf_destroy
void ixml_membuf_destroy(ixml_membuf *m)
ixml_membuf clearing routine.
Definition: ixmlmembuf.c:119
ixmlNode_cloneAttrDirect
static IXML_Attr * ixmlNode_cloneAttrDirect(IXML_Attr *nodeptr)
Return a clone of attribute node, with specified field set to TRUE.
Definition: node.c:885
Parser_setErrorChar
void Parser_setErrorChar(char c)
Sets the error character.
Definition: ixmlparser.c:2500
ixml_membuf_init
void ixml_membuf_init(ixml_membuf *m)
ixml_membuf initialization routine.
Definition: ixmlmembuf.c:108
ixml_membuf_assign
int ixml_membuf_assign(ixml_membuf *m, const void *buf, size_t buf_len)
Copies the contents o a buffer to the designated ixml_membuf.
Definition: ixmlmembuf.c:130
_IXML_Document
Data structure representing the DOM Document.
Definition: ixml.h:198
ixmlElement_init
EXPORT_SPEC void ixmlElement_init(IXML_Element *element)
Initializes a IXML_Element node.
Definition: element.c:47
_Parser::curPtr
char * curPtr
Definition: ixmlparser.h:87
ixmlNode_newDoc
static IXML_Document * ixmlNode_newDoc(void)
Returns a new document node.
Definition: node.c:798
ixmlNode_appendChild
EXPORT_SPEC int ixmlNode_appendChild(IXML_Node *nodeptr, IXML_Node *newChild)
Appends a child Node to the list of children of a Node.
Definition: node.c:606
NameChar
static char_info_t NameChar[]
The NameChar table contains CombiningChar, Extender, Digit, '-', '.', less '_', ':'.
Definition: ixmlparser.c:178
ixmlNode_removeChild
int ixmlNode_removeChild(IXML_Node *nodeptr, IXML_Node *oldChild, IXML_Node **returnNode)
Removes a child from the list of children of a Node.
Definition: node.c:579
ixmlNode_getElementsByTagName
void ixmlNode_getElementsByTagName(IXML_Node *n, const char *tagname, IXML_NodeList **list)
Returns a nodeList of all descendant Elements with a given tagName, in the order in which they are en...
Definition: node.c:1226
Parser_popElement
static void Parser_popElement(Parser *xmlParser)
Remove element from element stack.
Definition: ixmlparser.c:2277
Letter
static char_info_t Letter[]
The letter table contains all characters in XML 1.0 plus ":", "_" and ideographic.
Definition: ixmlparser.c:104
_Parser::dataBuffer
char * dataBuffer
Definition: ixmlparser.h:85
Parser_skipXMLDecl
static int Parser_skipXMLDecl(Parser *xmlParser)
Skips XML declarations.
Definition: ixmlparser.c:426
ixmlAttr_free
EXPORT_SPEC void ixmlAttr_free(IXML_Attr *attrNode)
Frees an Attr node.
ixmlNamedNodeMap_getItemNumber
static unsigned long ixmlNamedNodeMap_getItemNumber(IN IXML_NamedNodeMap *nnMap, IN const char *name)
Return the item number of a item in NamedNodeMap.
Definition: namedNodeMap.c:50
Parser_freeNsURI
static void Parser_freeNsURI(IXML_NamespaceURI *pNsURI)
Frees namespaceURI item.
Definition: ixmlparser.c:279
ixmlNode_setPrefix
static int ixmlNode_setPrefix(IXML_Node *nodeptr, const char *prefix)
Definition: node.c:174
ixmlDocument_createAttributeEx
EXPORT_SPEC int ixmlDocument_createAttributeEx(IXML_Document *doc, const char *name, IXML_Attr **attrNode)
Creates a new Attr node with the given name.
Parser_skipString
static int Parser_skipString(char **pstrSrc, const char *strSkipKey)
Skips all characters in the string until it finds the skip key. Then it skips the skip key and return...
Definition: ixmlparser.c:384
Parser_processCDSect
static int Parser_processCDSect(char **pSrc, IXML_Node *node)
Processes CDSection as defined by XML spec.
Definition: ixmlparser.c:1215
ixmlNamedNodeMap_getLength
unsigned long ixmlNamedNodeMap_getLength(IXML_NamedNodeMap *nnMap)
Returns the number of items contained in this NamedNodeMap.
Definition: namedNodeMap.c:128
Parser_processElementName
static int Parser_processElementName(IXML_Document *rootDoc, Parser *xmlParser, IXML_Node *newNode)
Processes element name.
Definition: ixmlparser.c:2178
Parser_isNameChar
static BOOL Parser_isNameChar(int c, BOOL bNameChar)
Check whether c (int) is in LetterTable or NameCharTable.
Definition: ixmlparser.c:695
ixml_membuf
The ixml_membuf type.
Definition: ixmlmembuf.h:60
ixmlNode_insertBefore
int ixmlNode_insertBefore(IXML_Node *nodeptr, IXML_Node *newChild, IXML_Node *refChild)
Inserts a new child Node before the existing child Node.
Definition: node.c:489
ixmlNode_init
void ixmlNode_init(IN IXML_Node *nodeptr)
Intializes a node.
ixmlNode_setNodeName
int ixmlNode_setNodeName(IXML_Node *node, const DOMString qualifiedName)
Definition: node.c:1310
ixmlNamedNodeMap_free
void ixmlNamedNodeMap_free(IXML_NamedNodeMap *nnMap)
Frees a NamedNodeMap.
Definition: namedNodeMap.c:144
ixmlNode_getLastChild
IXML_Node * ixmlNode_getLastChild(IXML_Node *nodeptr)
Retrieves the last child Node of a Node.
Definition: node.c:317
ixmlCloneDOMString
EXPORT_SPEC char * ixmlCloneDOMString(const char *src)
Clones an existing DOMString.
Parser_isValidXmlName
BOOL Parser_isValidXmlName(const DOMString name)
Check to see whether name is a valid xml name.
Definition: ixmlparser.c:2477
Parser_appendTokBufChar
static int Parser_appendTokBufChar(Parser *xmlParser, char c)
Appends c to token buffer.
Definition: ixmlparser.c:848
Parser_skipDocType
static int Parser_skipDocType(char **pstr)
Skips document type declaration.
Definition: ixmlparser.c:340
ixmlNode_replaceChild
int ixmlNode_replaceChild(IXML_Node *nodeptr, IXML_Node *newChild, IXML_Node *oldChild, IXML_Node **returnNode)
Replaces an existing child Node with a new child Node in the list of children of a Node.
Definition: node.c:540
ixml_membuf_destroy
void ixml_membuf_destroy(ixml_membuf *m)
ixml_membuf clearing routine.
Definition: ixmlmembuf.c:119
Parser_processETag
static int Parser_processETag(Parser *xmlParser, IXML_Node *node, BOOL *bETag)
Process ETag as defined by XML spec.
Definition: ixmlparser.c:1384
ixmlDocument_free
EXPORT_SPEC void ixmlDocument_free(IXML_Document *doc)
Frees a Document object and all Nodes associated with it.
Definition: document.c:54
Parser_addNamespace
static int Parser_addNamespace(Parser *xmlParser)
Add a namespace definition.
Definition: ixmlparser.c:1503
Parser_isCharInTable
static BOOL Parser_isCharInTable(int c, char_info_t *tbl, int sz)
Will determine whether character c is in the table of tbl (either Letter table or NameChar table).
Definition: ixmlparser.c:665
Parser_setElementNamespace
static int Parser_setElementNamespace(IXML_Element *newElement, const char *nsURI)
Set element's namespace.
Definition: ixmlparser.c:1983
NAMECHARTABLESIZE
#define NAMECHARTABLESIZE
The name char table array size.
Definition: ixmlparser.c:250
ixmlNode_getPrefix
const DOMString ixmlNode_getPrefix(IXML_Node *nodeptr)
Retrieves the namespace prefix, if present.
Definition: node.c:241
ixmlNamedNodeMap_init
void ixmlNamedNodeMap_init(IXML_NamedNodeMap *nnMap)
Initializes a NamedNodeMap object.
Definition: namedNodeMap.c:77
ixmlNode_getElementsByTagNameNS
void ixmlNode_getElementsByTagNameNS(IXML_Node *n, const char *namespaceURI, const char *localName, IXML_NodeList **list)
Returns a nodeList of all the descendant Elements with a given local name and namespace URI in the or...
Definition: node.c:1282
ixmlNode_getAttributes
IXML_NamedNodeMap * ixmlNode_getAttributes(IXML_Node *nodeptr)
Retrieves the attributes of a Node, if it is an Element node, in a NamedNodeMap structure.
Definition: node.c:1136
ixmlNodeList_addToNodeList
int ixmlNodeList_addToNodeList(IXML_NodeList **nList, IXML_Node *add)
Add a node to nodelist.
Definition: nodeList.c:82
ixmlDocument_createDocumentEx
EXPORT_SPEC int ixmlDocument_createDocumentEx(IXML_Document **doc)
Creates a new empty Document node.
Definition: document.c:180
ixmlNode_freeSingleNode
static void ixmlNode_freeSingleNode(IXML_Node *nodeptr)
Frees a node content.
Definition: node.c:72
ixmlNode_cloneNodeTree
static IXML_Node * ixmlNode_cloneNodeTree(IXML_Node *nodeptr, BOOL deep)
Function that clones a node tree of nodeptr.
Definition: node.c:1017
ixmlDomTreetoString
static void ixmlDomTreetoString(IXML_Node *nodeptr, ixml_membuf *buf)
Converts a DOM tree into a text string.
Definition: ixml.c:262
ixml.h
Parser_getNextToken
static ptrdiff_t Parser_getNextToken(Parser *xmlParser)
Return the length of next token in tokenBuff.
Definition: ixmlparser.c:1015
ixmlElement_setTagName
int ixmlElement_setTagName(IXML_Element *element, const char *tagName)
Set the given element's tagName.
Definition: element.c:64
ixmlNode_cloneCDATASect
static IXML_CDATASection * ixmlNode_cloneCDATASect(IXML_CDATASection *nodeptr)
Return a clone of CDATASection node.
Definition: node.c:692
Parser_processSTag
static int Parser_processSTag(Parser *xmlParser, IXML_Node *node)
Processes the STag as defined by XML spec.
Definition: ixmlparser.c:1112
ixmlparser.h
copy_with_escape
static void copy_with_escape(ixml_membuf *buf, const char *p)
Appends a string to a buffer, substituting some characters by escape sequences.
Definition: ixml.c:51
_Parser
Definition: ixmlparser.h:83
ixmlNodeList_item
EXPORT_SPEC IXML_Node * ixmlNodeList_item(IXML_NodeList *nList, unsigned long index)
Retrieves a Node from a NodeList specified by a numerical index.
Definition: nodeList.c:54
_IXML_Node
Data structure common to all types of nodes.
Definition: ixml.h:173
_IXML_CDATASection
Data structure representing a CDATA section node.
Definition: ixml.h:207
Parser_ElementPrefixDefined
static BOOL Parser_ElementPrefixDefined(Parser *xmlParser, IXML_Node *newNode, char **nsURI)
Decides whether element's prefix is already defined.
Definition: ixmlparser.c:1943
ixmlElement_free
EXPORT_SPEC void ixmlElement_free(IXML_Element *element)
Frees the given Element and any subtree of the Element.
Definition: element.c:706
ixmlPrintDomTree
static void ixmlPrintDomTree(IXML_Node *nodeptr, ixml_membuf *buf)
Print a DOM tree.
Definition: ixml.c:191
Parser_freeElementStackItem
static void Parser_freeElementStackItem(IXML_ElementStack *pItem)
Frees one ElementStack item.
Definition: ixmlparser.c:256
printNodes
void printNodes(IXML_Node *tmpRoot, int depth)
Print the node names and values of a XML tree.
Definition: ixmldebug.c:42
TRUE
#define TRUE
Definition: upnputil.h:63
Parser_copyToken
static int Parser_copyToken(Parser *xmlParser, const char *src, ptrdiff_t len)
Copy string in src into xml parser token buffer.
Definition: ixmlparser.c:948
ixmlNode_getNamespaceURI
const DOMString ixmlNode_getNamespaceURI(IXML_Node *nodeptr)
Retrieves the namespace URI for a Node as a DOMString.
Definition: node.c:229
ixml_membuf_assign_str
int ixml_membuf_assign_str(ixml_membuf *m, const char *c_str)
Copies a NULL terminated string to the ixml_buffer.
Definition: ixmlmembuf.c:161
char_info
Definition: ixmlparser.c:88
ixml_membuf_append_str
int ixml_membuf_append_str(ixml_membuf *m, const char *c_str)
Appends the contents of a NULL terminated string to the designated ixml_membuf.
ixml_membuf_insert
int ixml_membuf_insert(ixml_membuf *m, const void *buf, size_t buf_len, size_t index)
ixmlNamedNodeMap_item
EXPORT_SPEC IXML_Node * ixmlNamedNodeMap_item(IXML_NamedNodeMap *nnMap, unsigned long index)
Retrieves the indexth item in the map. If index is greater than or equal to the number of nodes in th...
ixmlParseBuffer
IXML_Document * ixmlParseBuffer(const char *buffer)
Parses an XML text buffer converting it into an IXML DOM representation.
Definition: ixml.c:442
ixmlNode_setNodeValue
int ixmlNode_setNodeValue(IXML_Node *nodeptr, const char *newNodeValue)
Assigns a new value to a Node.
Definition: node.c:263
ixmlNode_getLocalName
const DOMString ixmlNode_getLocalName(IXML_Node *nodeptr)
Retrieves the local name of a Node, if present.
Definition: node.c:132
ixmlNode_cloneNode
IXML_Node * ixmlNode_cloneNode(IXML_Node *nodeptr, BOOL deep)
Clones a Node.
Definition: node.c:1082
ixmlNode_compare
BOOL ixmlNode_compare(IXML_Node *srcNode, IXML_Node *destNode)
Compare two nodes to see whether they are the same node. Parent, sibling and children node are ignore...
Definition: node.c:470
Parser_isXmlChar
static BOOL Parser_isXmlChar(int c)
see XML 1.0 (2nd Edition) 2.2.
Definition: ixmlparser.c:717
ixmlCDATASection_free
void ixmlCDATASection_free(IXML_CDATASection *nodeptr)
Frees a CDATASection node.
Definition: node.c:61
Parser_UTF8ToInt
static int Parser_UTF8ToInt(const char *ss, ptrdiff_t *len)
In UTF-8, characters are encoded using sequences of 1 to 6 octets. This functions will return a UTF-8...
Definition: ixmlparser.c:579
ixmlNode_getNodeType
EXPORT_SPEC unsigned short ixmlNode_getNodeType(IXML_Node *nodeptr)
Retrieves the type of a Node. Note that not all possible return values are actually implemented.
Definition: node.c:287
Parser_skipProlog
static int Parser_skipProlog(Parser *xmlParser)
Skip prolog.
Definition: ixmlparser.c:505
ixmlNode_setNodeProperties
int ixmlNode_setNodeProperties(IXML_Node *destNode, IXML_Node *src)
Definition: node.c:1340
Parser_skipMisc
static int Parser_skipMisc(Parser *xmlParser)
Skip comment, PI and white space.
Definition: ixmlparser.c:473
Parser_free
static void Parser_free(Parser *xmlParser)
Frees all temporary memory allocated by xmlparser.
Definition: ixmlparser.c:296
ixmlNode_getPreviousSibling
IXML_Node * ixmlNode_getPreviousSibling(IXML_Node *nodeptr)
Retrieves the sibling Node immediately preceding this Node.
Definition: node.c:336
ixml_membuf_append
int ixml_membuf_append(ixml_membuf *m, const void *buf)
Appends one byte to the designated ixml_membuffer.
ixmlNode_allowChildren
static BOOL ixmlNode_allowChildren(IXML_Node *nodeptr, IXML_Node *newChild)
Check to see whether nodeptr allows children of type newChild.
Definition: node.c:422
ixmlNode_hasAttributes
BOOL ixmlNode_hasAttributes(IXML_Node *nodeptr)
Queries whether this Node has attributes.
Definition: node.c:1182
ixmlNodeList_init
void ixmlNodeList_init(IXML_NodeList *nList)
Initializes a nodelist.
Definition: nodeList.c:46
_IXML_NodeList
Data structure representing a list of nodes.
Definition: ixml.h:246
ixmlNode_getElementsByTagNameNSRecursive
static void ixmlNode_getElementsByTagNameNSRecursive(IXML_Node *n, const char *namespaceURI, const char *localName, IXML_NodeList **list)
Definition: node.c:1248
Parser_setNodePrefixAndLocalName
int Parser_setNodePrefixAndLocalName(IXML_Node *newIXML_NodeIXML_Attr)
Set the node prefix and localName as defined by the nodeName in the form of ns:name.
Definition: ixmlparser.c:2658
Parser_skipPI
static int Parser_skipPI(char **pSrc)
Definition: ixmlparser.c:1180
_IXML_ElementStack
Definition: ixmlparser.h:65
IxmlPrintf
void IxmlPrintf(const char *DbgFileName, int DbgLineNo, const char *FunctionName, const char *FmtStr,...)
Prints the debug statement either on the standard output or log file along with the information from ...
Definition: ixmldebug.c:19
DOMString
#define DOMString
The type of DOM strings.
Definition: ixml.h:59
ixmlNode_getElementsByTagNameRecursive
static void ixmlNode_getElementsByTagNameRecursive(IXML_Node *n, const char *tagname, IXML_NodeList **list)
Recursively traverse the whole tree, search for element with the given tagname.
Definition: node.c:1203
ixmlDocumenttoString
DOMString ixmlDocumenttoString(IXML_Document *doc)
Renders a Node and all sub-elements into an XML document representation.
Definition: ixml.c:381
Parser_processContent
static int Parser_processContent(Parser *xmlParser, IXML_Node *node)
Processes the CONTENT as defined in XML spec.
Definition: ixmlparser.c:1267
ixmlNode_cloneNodeTreeRecursive
static IXML_Node * ixmlNode_cloneNodeTreeRecursive(IXML_Node *nodeptr, BOOL deep)
Recursive function that clones a node tree of nodeptr.
Definition: node.c:924
ixmlNodeList_length
unsigned long ixmlNodeList_length(IXML_NodeList *nList)
Returns the number of Nodes in a NodeList.
Definition: nodeList.c:128
Parser_LoadDocument
int Parser_LoadDocument(IXML_Document **retDoc, const char *xmlFileName, BOOL file)
Parses a xml file and return the DOM tree.
Definition: ixmlparser.c:2595
ixmlNodetoString
DOMString ixmlNodetoString(IXML_Node *node)
Renders a Node and all sub-elements into an XML text representation. The caller is required to free t...
Definition: ixml.c:399
ixmlPrintDocument
DOMString ixmlPrintDocument(IXML_Document *doc)
Renders a Node and all sub-elements into an XML document representation.
Definition: ixml.c:347
ixmlNode_free
void ixmlNode_free(IXML_Node *nodeptr)
Frees a Node and all Nodes in its subtree.
Definition: node.c:107
ixml_membuf_assign_str
int ixml_membuf_assign_str(ixml_membuf *m, const char *c_str)
Copies a NULL terminated string to the ixml_buffer.
Definition: ixmlmembuf.c:161
ixmlElement_setAttributeNode
EXPORT_SPEC int ixmlElement_setAttributeNode(IXML_Element *element, IXML_Attr *newAttr, IXML_Attr **rtAttr)
Adds a new attribute node to an Element.
Definition: element.c:224
Parser_setNodePrefixAndLocalName
int Parser_setNodePrefixAndLocalName(IXML_Node *node)
Set the node prefix and localName as defined by the nodeName in the form of ns:name.
Definition: ixmlparser.c:2658
Parser_skipWhiteSpaces
static void Parser_skipWhiteSpaces(Parser *xmlParser)
Skip white spaces.
Definition: ixmlparser.c:412
Parser_intToUTF8
static int Parser_intToUTF8(int c, utf8char s)
Encodes a character to its UTF-8 character string, and return its length.
Definition: ixmlparser.c:866
TemplateInclude.h
Templates for include files of objects.
Parser_LoadDocument
int Parser_LoadDocument(IXML_Document **retDoc, const char *xmlFile, BOOL file)
Parses a xml file and return the DOM tree.
Definition: ixmlparser.c:2595
ixmlNode_isAncestor
static BOOL ixmlNode_isAncestor(IXML_Node *ancestorNode, IXML_Node *toFind)
Check if ancestorNode is ancestor of toFind.
Definition: node.c:370
Parser_parseDocument
static int Parser_parseDocument(IXML_Document **retDoc, Parser *xmlParser)
Parses the xml file and returns the DOM document tree.
Definition: ixmlparser.c:2342
ixmlNodeList_init
void ixmlNodeList_init(IXML_NodeList *nList)
Initializes a nodelist.
Definition: nodeList.c:46
Parser_appendTokBufStr
static int Parser_appendTokBufStr(Parser *xmlParser, const char *s)
Appends string s to token buffer.
Definition: ixmlparser.c:929
_IXML_ATTR
Data structure representing an Attribute node.
Definition: ixml.h:226
ixmlDocument_createElementEx
EXPORT_SPEC int ixmlDocument_createElementEx(IXML_Document *doc, const char *tagName, IXML_Element **rtElement)
Creates a new Element node with the given tag name.
isTopLevelElement
static int isTopLevelElement(Parser *xmlParser)
Reports whether there is a top level element in the parser.
Definition: ixmlparser.c:2140
isDuplicateAttribute
static int isDuplicateAttribute(Parser *xmlParser, IXML_Node *newAttrNode)
Reports whether the new attribute is the same as an existing one.
Definition: ixmlparser.c:2009
ixmlParseBufferEx
int ixmlParseBufferEx(const char *buffer, IXML_Document **retDoc)
Parses an XML text buffer converting it into an IXML DOM representation.
Definition: ixml.c:428
ixmlNode_isParent
static BOOL ixmlNode_isParent(IXML_Node *nodeptr, IXML_Node *toFind)
Check whether toFind is a children of nodeptr.
Definition: node.c:399
_IXML_Element
Data structure representing an Element node.
Definition: ixml.h:216
Parser_pushElement
static int Parser_pushElement(Parser *xmlParser, IXML_Node *newElement)
Push a new element onto element stack.
Definition: ixmlparser.c:2077
ixmlNode_cloneElement
static IXML_Element * ixmlNode_cloneElement(IXML_Element *nodeptr)
Returns a clone of element node.
Definition: node.c:729
Parser_init
static Parser * Parser_init()
Initializes a xml parser.
Definition: ixmlparser.c:2522
ixmlNode_setNamespaceURI
static int ixmlNode_setNamespaceURI(IXML_Node *nodeptr, const char *namespaceURI)
Sets the namespace URI of the node.
Definition: node.c:145
ixmlLoadDocumentEx
int ixmlLoadDocumentEx(const char *xmlFile, IXML_Document **doc)
Parses an XML text file converting it into an IXML DOM representation.
Definition: ixml.c:327
LETTERTABLESIZE
#define LETTERTABLESIZE
The size of the letter table array.
Definition: ixmlparser.c:168
Parser_hasDefaultNamespace
static BOOL Parser_hasDefaultNamespace(Parser *xmlParser, char **nsURI)
Decide whether the current element has default namespace.
Definition: ixmlparser.c:2152
ixmlPrintDomTreeRecursive
static void ixmlPrintDomTreeRecursive(IXML_Node *nodeptr, ixml_membuf *buf)
Recursive function to print all the node in a tree. Internal to parser only.
Definition: ixml.c:92
ixmlDocument_createCDATASectionEx
EXPORT_SPEC int ixmlDocument_createCDATASectionEx(IXML_Document *doc, const char *data, IXML_CDATASection **cdNode)
Creates a new CDATASection node with given data.
ixmlNode_setNodeProperties
int ixmlNode_setNodeProperties(IXML_Node *destNode, IXML_Node *src)
Definition: node.c:1340
ixmlLoadDocument
IXML_Document * ixmlLoadDocument(const char *xmlFile)
Parses an XML text file converting it into an IXML DOM representation.
Definition: ixml.c:337
safe_strdup
static char * safe_strdup(const char *s)
Version of strdup() that handles NULL input.
Definition: ixmlparser.c:1096
ixmlNode_getNextSibling
EXPORT_SPEC IXML_Node * ixmlNode_getNextSibling(IXML_Node *nodeptr)
Retrieves the sibling Node immediately following this Node.
Definition: node.c:346
Parser_isValidEndElement
static int Parser_isValidEndElement(Parser *xmlParser, IXML_Node *newNode)
Check if a new node->nodeName matches top of element stack.
Definition: ixmlparser.c:2255
IxmlPrintf
void IxmlPrintf(const char *DbgFileName, int DbgLineNo, const char *FunctionName, const char *FmtStr,...)
Prints the debug statement either on the standard output or log file along with the information from ...
Definition: ixmldebug.c:19
ixmlRelaxParser
void ixmlRelaxParser(char errorChar)
Makes the XML parser more tolerant to malformed text.
Definition: ixml.c:415
ixmlNode_cloneTextNode
static IXML_Node * ixmlNode_cloneTextNode(IXML_Node *nodeptr)
Returns a clone of nodeptr.
Definition: node.c:657
ixmlNode_hasChildNodes
BOOL ixmlNode_hasChildNodes(IXML_Node *nodeptr)
Queries whether or not a Node has children.
Definition: node.c:1172
ixmlNamedNodeMap_init
void ixmlNamedNodeMap_init(IXML_NamedNodeMap *nnMap)
Initializes a NamedNodeMap object.
Definition: namedNodeMap.c:77
Parser_setErrorChar
void Parser_setErrorChar(char c)
Sets the error character.
Definition: ixmlparser.c:2500
ixmlNode_setLocalName
static int ixmlNode_setLocalName(IXML_Node *nodeptr, const char *localName)
Set the localName of the node.
Definition: node.c:205
_IXML_NamedNodeMap
Data structure representing a list of named nodes.
Definition: ixml.h:256