⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ixml.h

📁 Upnp开发包文件
💻 H
📖 第 1 页 / 共 5 页
字号:
                                   DOMString namespaceURI,  				     /** The namespace URI of the {\bf 				         Element}s to find. */                                   DOMString localName      				     /** The local name of the {\bf Element}s 				         to find. */                                  );  /** Queries whether the {\bf Element} has an attribute with the given name   *  or a default value.   *   *  @return [BOOL] {\tt TRUE} if the {\bf Element} has an attribute with    *                 this name or has a default value for that attribute,    *                 otherwise {\tt FALSE}.   */BOOL        ixmlElement_hasAttribute(IXML_Element* element, 		           /** The {\bf Element} on which to check for an 			       attribute. */                         DOMString name    			   /** The name of the attribute for which to check. */                        );  /** Queries whether the {\bf Element} has an attribute with the given   *  local name and namespace URI or has a default value for that attribute.   *   *  @return [BOOL] {\tt TRUE} if the {\bf Element} has an attribute with    *                 the given namespace and local name or has a default    *                 value for that attribute, otherwise {\tt FALSE}.   */BOOL        ixmlElement_hasAttributeNS(IXML_Element* element,       		             /** The {\bf Element} on which to check for the 			         attribute. */                           DOMString namespaceURI, 			     /** The namespace URI of the attribute. */                           DOMString localName     			     /** The local name of the attribute. */                          );  /** Frees the given {\bf Element} and any subtree of the {\bf Element}.   *   *  @return [void] This function does not return a value.   */void        ixmlElement_free(IXML_Element* element  		   /** The {\bf Element} to free. */                );//@}/*================================================================**   NamedNodeMap interfaces***=================================================================*//**@name Interface {\it NamedNodeMap} * A {\bf NamedNodeMap} object represents a list of objects that can be * accessed by name.  A {\bf NamedNodeMap} maintains the objects in  * no particular order.  The {\bf Node} interface uses a {\bf NamedNodeMap} * to maintain the attributes of a node. *///@{  /** Returns the number of items contained in this {\bf NamedNodeMap}.   *   *  @return [unsigned long] The number of nodes in this map.   */unsigned long ixmlNamedNodeMap_getLength(IXML_NamedNodeMap *nnMap  		             /** The {\bf NamedNodeMap} from which to retrieve 			         the size. */                          );  /** Retrieves a {\bf Node} from the {\bf NamedNodeMap} by name.   *   *  @return [Node*] A {\bf Node} or {\tt NULL} if there is an error.   */IXML_Node*   ixmlNamedNodeMap_getNamedItem(IXML_NamedNodeMap *nnMap, 		                /** The {\bf NamedNodeMap} to search. */                              DOMString name       			        /** The name of the {\bf Node} to find. */                             );  /** Adds a new {\bf Node} to the {\bf NamedNodeMap} using the {\bf Node}    *  name attribute.   *   *  @return [Node*] The old {\bf Node} if the new {\bf Node} replaces it or    *                  {\tt NULL} if the {\bf Node} was not in the    *                  {\bf NamedNodeMap} before.   */IXML_Node*   ixmlNamedNodeMap_setNamedItem(IXML_NamedNodeMap *nnMap, 		                /** The {\bf NamedNodeMap} in which to add the 				    new {\bf Node}. */                              IXML_Node *arg            			        /** The new {\bf Node} to add to the {\bf 				    NamedNodeMap}. */                             );  /** Removes a {\bf Node} from a {\bf NamedNodeMap} specified by name.   *   *  @return [Node*] A pointer to the {\bf Node}, if found, or {\tt NULL} if    *                  it wasn't.   */IXML_Node*   ixmlNamedNodeMap_removeNamedItem(IXML_NamedNodeMap *nnMap,  		                   /** The {\bf NamedNodeMap} from which to 				       remove the item. */                                 DOMString name        				   /** The name of the item to remove. */                                );  /** Retrieves a {\bf Node} from a {\bf NamedNodeMap} specified by a   *  numerical index.   *   *  @return [Node*] A pointer to the {\bf Node}, if found, or {\tt NULL} if    *                  it wasn't.   */IXML_Node*   ixmlNamedNodeMap_item(IXML_NamedNodeMap *nnMap, 		        /** The {\bf NamedNodeMap} from which to remove the 			    {\bf Node}. */                      unsigned long index  		        /** The index into the map to remove. */                     );// introduced in DOM level 2  /** Retrieves a {\bf Node} from a {\bf NamedNodeMap} specified by   *  namespace URI and local name.   *   *  @return [Node*] A pointer to the {\bf Node}, if found, or {\tt NULL} if    *                  it wasn't   */IXML_Node*   ixmlNamedNodeMap_getNamedItemNS(IXML_NamedNodeMap *nnMap,    		                  /** The {\bf NamedNodeMap} from which to 				      remove the {\bf Node}. */                                DOMString *namespaceURI,				  /** The namespace URI of the {\bf Node} to                                       remove. */                                DOMString localName     				  /** The local name of the {\bf Node} to 				      remove. */                               );  /** Adds a new {\bf Node} to the {\bf NamedNodeMap} using the {\bf Node}    *  local name and namespace URI attributes.   *   *  @return [Node*] The old {\bf Node} if the new {\bf Node} replaces it or    *                  {\tt NULL} if the {\bf Node} was not in the    *                  {\bf NamedNodeMap} before.   */IXML_Node*   ixmlNamedNodeMap_setNamedItemNS(IXML_NamedNodeMap *nnMap, 		                  /** The {\bf NamedNodeMap} in which to add 				      the {\bf Node}. */                                IXML_Node *arg 				  /** The {\bf Node} to add to the map. */                               );  /** Removes a {\bf Node} from a {\bf NamedNodeMap} specified by    *  namespace URI and local name.   *   *  @return [Node*] A pointer to the {\bf Node}, if found, or {\tt NULL} if    *          it wasn't.   */IXML_Node*   ixmlNamedNodeMap_removeNamedItemNS(IXML_NamedNodeMap *nnMap,    		                     /** The {\bf NamedNodeMap} from which to 				         remove the {\bf Node}. */                                   DOMString namespaceURI, 				     /** The namespace URI of the {\bf Node} 				         to remove. */                                   DOMString localName     				     /** The local name of the {\bf Node} to 				         remove. */                                  );  /** Frees a {\bf NamedNodeMap}.  The {\bf Node}s inside the map are not   *  freed, just the {\bf NamedNodeMap} object.   *   *  @return [void] This function does not return a value.   */void    ixmlNamedNodeMap_free(IXML_NamedNodeMap *nnMap  		        /** The {\bf NamedNodeMap to free}. */                     );//@}/*================================================================**   NodeList interfaces***=================================================================*//**@name Interface {\it NodeList} * The {\bf NodeList} interface abstracts an ordered collection of * nodes.  Note that changes to the underlying nodes will change * the nodes contained in a {\bf NodeList}.  The DOM2-Core refers to * this as being {\it live}. *///@{  /** Retrieves a {\bf Node} from a {\bf NodeList} specified by a    *  numerical index.   *   *  @return [Node*] A pointer to a {\bf Node} or {\tt NULL} if there was an    *                  error.   */IXML_Node*           ixmlNodeList_item(IXML_NodeList *nList,     		    /** The {\bf NodeList} from which to retrieve the {\bf 		        Node}. */                  unsigned long index  		    /** The index into the {\bf NodeList} to retrieve. */                 );  /** Returns the number of {\bf Nodes} in a {\bf NodeList}.   *   *  @return [unsigned long] The number of {\bf Nodes} in the {\bf NodeList}.   */unsigned long   ixmlNodeList_length(IXML_NodeList *nList  		      /** The {\bf NodeList} for which to retrieve the 		          number of {\bf Nodes}. */                   );  /** Frees a {\bf NodeList} object.  Since the underlying {\bf Nodes} are   *  references, they are not freed using this operating.  This only   *  frees the {\bf NodeList} object.   *   *  @return [void] This function does not return a value.   */void            ixmlNodeList_free(IXML_NodeList *nList  		    /** The {\bf NodeList} to free.  */                 );//@} Interface NodeList//@} DOM Interfaces/**@name IXML API * The IXML API contains utility functions that are not part of the standard * DOM interfaces.  They include functions to create a DOM structure from a * file or buffer, create an XML file from a DOM structure, and manipulate  * DOMString objects. *///@{/*================================================================* *   ixml interfaces***=================================================================*/#define     ixmlPrintDocument(doc)  ixmlPrintNode((IXML_Node *)doc)#define ixmlDocumenttoString(doc)	ixmlNodetoString((IXML_Node *)doc)  /** Renders a {\bf Node} and all sub-elements into an XML text   *  representation.  The caller is required to free the {\bf DOMString}   *  returned from this function using {\bf ixmlFreeDOMString} when it   *  is no longer required.   *   *  Note that this function can be used for any {\bf Node}-derived   *  interface.  A similar {\bf ixmlPrintDocument} function is defined   *  to avoid casting when printing whole documents. This function   *  introduces lots of white space to print the {\bf DOMString} in readable   *  format.   *    *  @return [DOMString] A {\bf DOMString} with the XML text representation    *                      of the DOM tree or {\tt NULL} on an error.   */DOMString   ixmlPrintNode(IXML_Node *doc                  /** The root of the {\bf Node} tree to render to XML text. */             );  /** Renders a {\bf Node} and all sub-elements into an XML text   *  representation.  The caller is required to free the {\bf DOMString}   *  returned from this function using {\bf ixmlFreeDOMString} when it   *  is no longer required.   *   *  Note that this function can be used for any {\bf Node}-derived   *  interface.  A similar {\bf ixmlPrintDocument} function is defined   *  to avoid casting when printing whole documents.   *    *  @return [DOMString] A {\bf DOMString} with the XML text representation    *                      of the DOM tree or {\tt NULL} on an error.   */DOMString   ixmlNodetoString(IXML_Node *doc  		   /** The root of the {\bf Node} tree to render to XML text. */                );  /** Parses an XML text buffer converting it into an IXML DOM representation.   *   *  @return [Document*] A {\bf Document} if the buffer correctly parses or    *                      {\tt NULL} on an error.    */IXML_Document*ixmlParseBuffer(char *buffer 		  /** The buffer that contains the XML text to convert to a 		      {\bf Document}. */               );  /** Parses an XML text buffer converting it into an IXML DOM representation.   *   *  The {\bf ixmlParseBufferEx} API differs from the {\bf ixmlParseBuffer}   *  API in that it returns an error code representing the actual failure   *  rather than just {\tt NULL}.   *   *  @return [int] An integer representing one of the following:   *    \begin{itemize}   *      \item {\tt IXML_SUCCESS}: The operation completed successfully.   *      \item {\tt IXML_INVALID_PARAMETER}: The {\bf buffer} is not a valid    *            pointer.   *      \item {\tt IXML_INSUFFICIENT_MEMORY}: Not enough free memory exists    *            to complete this operation.   *    \end{itemize}   */intixmlParseBufferEx(char *buffer, 		    /** The buffer that contains the XML text to convert to a 		        {\bf Document}. */                  IXML_Document** doc 		    /** A point

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -