📄 ixml.h
字号:
ixmlDocument_init(IXML_Document *nodeptr /** The {\bf Document} node to initialize. */ ); /** Creates a new empty {\bf Document} node. The * {\bf ixmlDocument_createDocumentEx} API differs from the {\bf * ixmlDocument_createDocument} API in that it returns an error code * describing the reason for the 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_INSUFFICIENT_MEMORY}: Not enough free memory exists * to complete this operation. * \end{itemize} */int ixmlDocument_createDocumentEx(IXML_Document** doc /** Pointer to a {\bf Document} where the new object will be stored. */ ); /** Creates a new empty {\bf Document} node. * * @return [Document*] A pointer to the new {\bf Document} or {\tt NULL} on * failure. */IXML_Document* ixmlDocument_createDocument(); /** Creates a new {\bf Element} node with the given tag name. The new * {\bf Element} node has a {\tt nodeName} of {\bf tagName} and * the {\tt localName}, {\tt prefix}, and {\tt namespaceURI} set * to {\tt NULL}. To create an {\bf Element} with a namespace, * see {\bf ixmlDocument_createElementNS}. * * The {\bf ixmlDocument_createElementEx} API differs from the {\bf * ixmlDocument_createElement} API in that it returns an error code * describing the reason for 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}: Either {\bf doc} or * {\bf tagName} is {\tt NULL}. * \item {\tt IXML_INSUFFICIENT_MEMORY}: Not enough free memory exists * to complete this operation. * \end{itemize} */intixmlDocument_createElementEx(IXML_Document *doc, /** The owner {\bf Document} of the new node. */ DOMString tagName, /** The tag name of the new {\bf Element} node. */ IXML_Element **rtElement /** Pointer to an {\bf Element} where the new object will be stored. */ ); /** Creates a new {\bf Element} node with the given tag name. The new * {\bf Element} node has a {\tt nodeName} of {\bf tagName} and * the {\tt localName}, {\tt prefix}, and {\tt namespaceURI} set * to {\tt NULL}. To create an {\bf Element} with a namespace, * see {\bf ixmlDocument_createElementNS}. * * @return [Document*] A pointer to the new {\bf Element} or {\tt NULL} on * failure. */IXML_Element*ixmlDocument_createElement(IXML_Document *doc, /** The owner {\bf Document} of the new node. */ DOMString tagName /** The tag name of the new {\bf Element} node. */ ); /** Creates a new {\bf Text} node with the given data. * The {\bf ixmlDocument_createTextNodeEx} API differs from the {\bf * ixmlDocument_createTextNode} API in that it returns an error code * describing the reason for 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}: Either {\bf doc} or {\bf data} * is {\tt NULL}. * \item {\tt IXML_INSUFFICIENT_MEMORY}: Not enough free memory exists * to complete this operation. * \end{itemize} */intixmlDocument_createTextNodeEx(IXML_Document *doc, /** The owner {\bf Document} of the new node. */ DOMString data, /** The data to associate with the new {\bf Text} node. */ IXML_Node** textNode /** A pointer to a {\bf Node} where the new object will be stored. */ ); /** Creates a new {\bf Text} node with the given data. * * @return [Node*] A pointer to the new {\bf Node} or {\tt NULL} on failure. */IXML_Node*ixmlDocument_createTextNode(IXML_Document *doc, /** The owner {\bf Document} of the new node. */ DOMString data /** The data to associate with the new {\bf Text} node. */ ); /** Creates a new {\bf CDATASection} node with given data. * * The {\bf ixmlDocument_createCDATASectionEx} API differs from the {\bf * ixmlDocument_createCDATASection} API in that it returns an error code * describing the reason for 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}: Either {\bf doc} or {\bd data} * is {\tt NULL}. * \item {\tt IXML_INSUFFICIENT_MEMORY}: Not enough free memory exists * to complete this operation. * \end{itemize} */intixmlDocument_createCDATASectionEx(IXML_Document *doc, /** The owner {\bf Document} of the new node. */ DOMString data, /** The data to associate with the new {\bf CDATASection} node. */ IXML_CDATASection** cdNode /** A pointer to a {\bf Node} where the new object will be stored. */ ); /** Creates a new {\bf CDATASection} node with given data. * * @return [CDATASection*] A pointer to the new {\bf CDATASection} or * {\tt NULL} on failure. */IXML_CDATASection*ixmlDocument_createCDATASection(IXML_Document *doc, /** The owner {\bf Document} of the new node. */ DOMString data /** The data to associate with the new {\bf CDATASection} node. */ ); /** Creates a new {\bf Attr} node with the given name. * * @return [Attr*] A pointer to the new {\bf Attr} or {\tt NULL} on failure. */IXML_Attr*ixmlDocument_createAttribute(IXML_Document *doc, /** The owner {\bf Document} of the new node. */ char *name /** The name of the new attribute. */ ); /** Creates a new {\bf Attr} node with the given name. * * The {\bf ixmlDocument_createAttributeEx} API differs from the {\bf * ixmlDocument_createAttribute} API in that it returns an error code * describing the reason for 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}: Either {\bf doc} or {\bf name} * is {\tt NULL}. * \item {\tt IXML_INSUFFICIENT_MEMORY}: Not enough free memory exists * to complete this operation. * \end{itemize} */intixmlDocument_createAttributeEx(IXML_Document *doc, /** The owner {\bf Document} of the new node. */ char *name, /** The name of the new attribute. */ IXML_Attr** attrNode /** A pointer to a {\bf Attr} where the new object will be stored. */ ); /** Returns a {\bf NodeList} of all {\bf Elements} that match the given * tag name in the order in which they were encountered in a preorder * traversal of the {\bf Document} tree. * * @return [NodeList*] A pointer to a {\bf NodeList} containing the * matching items or {\tt NULL} on an error. */IXML_NodeList*ixmlDocument_getElementsByTagName(IXML_Document *doc, /** The {\bf Document} to search. */ DOMString tagName /** The tag name to find. */ );// introduced in DOM level 2 /** Creates a new {\bf Element} node in the given qualified name and * namespace URI. * * The {\bf ixmlDocument_createElementNSEx} API differs from the {\bf * ixmlDocument_createElementNS} API in that it returns an error code * describing the reason for 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}: Either {\bf doc}, * {\bf namespaceURI}, or {\bf qualifiedName} is {\tt NULL}. * \item {\tt IXML_INSUFFICIENT_MEMORY}: Not enough free memory exists * to complete this operation. * \end{itemize} */intixmlDocument_createElementNSEx(IXML_Document *doc, /** The owner {\bf Document} of the new node. */ DOMString namespaceURI, /** The namespace URI for the new {\bf Element}. */ DOMString qualifiedName, /** The qualified name of the new {\bf Element}. */ IXML_Element** rtElement /** A pointer to an {\bf Element} where the new object will be stored. */ ); /** Creates a new {\bf Element} node in the given qualified name and * namespace URI. * * @return [Element*] A pointer to the new {\bf Element} or {\tt NULL} on * failure. */IXML_Element*ixmlDocument_createElementNS(IXML_Document *doc, /** The owner {\bf Document} of the new node. */ DOMString namespaceURI, /** The namespace URI for the new {\bf Element}. */ DOMString qualifiedName /** The qualified name of the new {\bf Element}. */ ); /** Creates a new {\bf Attr} node with the given qualified name and * namespace URI. * * The {\bf ixmlDocument_createAttributeNSEx} API differs from the {\bf * ixmlDocument_createAttributeNS} API in that it returns an error code * describing the reason for 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}: Either {\bf doc}, * {\bf namespaceURI}, or {\bf qualifiedName} is {\tt NULL}. * \item {\tt IXML_INSUFFICIENT_MEMORY}: Not enough free memory exists * to complete this operation. * \end{itemize} */intixmlDocument_createAttributeNSEx(IXML_Document *doc, /** The owner {\bf Document} of the new {\bf Attr}. */ DOMString namespaceURI, /** The namespace URI for the attribute. */ DOMString qualifiedName, /** The qualified name of the attribute. */ IXML_Attr** attrNode /** A pointer to an {\bf Attr} where the new object will be stored. */ ); /** Creates a new {\bf Attr} node with the given qualified name and * namespace URI. * * @return [Attr*] A pointer to the new {\bf Attr} or {\tt NULL} on failure. */IXML_Attr*ixmlDocument_createAttributeNS(IXML_Document *doc, /** The owner {\bf Document} of the new {\bf Attr}. */ DOMString namespaceURI, /** The namespace URI for the attribute. */ DOMString qualifiedName /** The qualified name of the attribute. */ ); /** Returns a {\bf NodeList} of {\bf Elements} that match the given * local name and namespace URI in the order they are encountered * in a preorder traversal of the {\bf Document} tree. Either * {\bf namespaceURI} or {\bf localName} can be the special {\tt "*"} * character, which matches any namespace or any local name respectively. * * @return [NodeList*] A pointer to a {\bf NodeList} containing the * matching items or {\tt NULL} on an error. */IXML_NodeList* ixmlDocument_getElementsByTagNameNS(IXML_Document* doc, /** The {\bf Document} to search. */ DOMString namespaceURI, /** The namespace of the elements to find or {\tt "*"} to match any namespace. */ DOMString localName /** The local name of the elements to find or {\tt "*"} to match any local name. */ ); /** Returns the {\bf Element} whose {\tt ID} matches that given id. * * @return [Element*] A pointer to the matching {\bf Element} or * {\tt NULL} on an error. */IXML_Element* ixmlDocument_getElementById(IXML_Document* doc, /** The owner {\bf Document} of the {\bf Element}. */ DOMString tagName /** The name of the {\bf Element}.*/ ); /** Frees a {\bf Document} object and all {\bf Node}s associated with it.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -