DOM runtime encode/decode functions.
Functions | |
| EXTERNDOM int | rtDomAddAttr (OSCTXT *pctxt, OSRTDOMDocPtr domDoc, OSRTDOMNodePtr node, const OSUTF8CHAR *attrName, OSXMLNamespace *pNS, OSRTDList *pNSAttrs) |
| Adds attribute to the node. | |
| EXTERNDOM int | rtDomAddNode (OSCTXT *pctxt, OSRTDOMDocPtr domDoc, OSRTDOMNodePtr parentNode, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS, OSRTDList *pNSAttrs) |
| Adds child node to the parent's node. | |
| EXTERNDOM int | rtDomAddNSAttrs (OSCTXT *pctxt, OSRTDOMDocPtr domDoc, OSRTDOMNodePtr rootNode, OSRTDList *pNSAttrs) |
| Adds namespace attributes to the root node. | |
| EXTERNDOM int | rtDomEncXSIAttrs (OSCTXT *pctxt, OSRTDOMDocPtr domDoc, OSRTDOMNodePtr node, OSBOOL needXSI) |
| Adds XSI attributes to the node. | |
| EXTERNDOM int | rtDomDecodeDoc (OSRTDOMDocPtr domDoc, struct OSSAXHandlerBase *pSaxBase) |
| This function starts decoding of the DOM document. | |
| EXTERNDOM int | rtDomEncStringValue (OSCTXT *pctxt, const OSUTF8CHAR *pvalue) |
| This function encodes a variable of the XSD string type. | |
| EXTERNDOM int | rtDomEncString (OSCTXT *pctxt, OSXMLSTRING *pvalue) |
| This function encodes a variable of the XSD string type. | |
| EXTERNDOM int | rtDomEncAny (OSCTXT *pctxt, OSRTDOMDocPtr domDoc, OSRTDOMNodePtr parentNode, const OSXMLSTRING *pXmlData, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS, OSRTDList *pNSAttrs) |
| This function encodes a variable of the XSD any type. | |
| EXTERNDOM int | rtDomEncAnyAttr (OSCTXT *pctxt, OSRTDOMDocPtr domDoc, OSRTDOMNodePtr node, OSRTDList *pAnyAttrList) |
| This function encodes a list of OSAnyAttr attributes in which the name and value are given as a UTF-8 string. | |
| EXTERNDOM int | rtDomSetNode (OSCTXT *pctxt, OSRTDOMDocPtr domDoc, OSRTDOMNodePtr curNode) |
| Adds content or CDATA section to the node. | |
| EXTERNDOM int | rtDomAddSubTree (OSCTXT *pctxt, OSRTDOMDocPtr xmlDoc, OSRTDOMNodePtr node, const OSUTF8CHAR *pXmlData, size_t dataLen) |
| This function adds the subtree to the specified node. | |
Function Documentation
|
||||||||||||||||||||||||||||
|
Adds attribute to the node. The value is taken from the context's buffer (pctxt->buffer.data with the length pctxt->buffer.byteIndex). This function resets pctxt->buffer.byteIndex to 0.
|
|
||||||||||||||||||||||||||||
|
Adds child node to the parent's node. The content (text) is taken from the context's buffer (pctxt->buffer.data with the length pctxt->buffer.byteIndex). If pctxt->buffer.byteIndex is 0 then empty element is added. This function resets pctxt->buffer.byteIndex to 0.
|
|
||||||||||||||||||||
|
Adds namespace attributes to the root node.
|
|
||||||||||||||||||||||||
|
This function adds the subtree to the specified node. The pXmlData contains the fragment of XML data. This fragment is parsed to sub-tree and then inserted as children to the 'node'.
|
|
||||||||||||
|
This function starts decoding of the DOM document.
|
|
||||||||||||||||||||||||||||||||
|
This function encodes a variable of the XSD any type. This is considered to be a fully-wrapped element of any type (for example: <myType>myData</myType>)
|
|
||||||||||||||||||||
|
This function encodes a list of OSAnyAttr attributes in which the name and value are given as a UTF-8 string.
|
|
||||||||||||
|
This function encodes a variable of the XSD string type.
|
|
||||||||||||
|
This function encodes a variable of the XSD string type.
|
|
||||||||||||||||||||
|
Adds XSI attributes to the node.
|
|
||||||||||||||||
|
Adds content or CDATA section to the node. The content (text) is taken from the context's buffer (pctxt->buffer.data with the length pctxt->buffer.byteIndex). This function resets pctxt->buffer.byteIndex to 0.
|
