XML pull-parser decode functions.
Enumerations | |
| enum | OSXMLWhiteSpaceMode { OSXMLWSM_PRESERVE = 0, OSXMLWSM_REPLACE, OSXMLWSM_COLLAPSE } |
| Whitespace treatment mode. | |
Functions | |
| EXTERNXML int | rtXmlpDecAny (OSCTXT *pctxt, const OSUTF8CHAR **pvalue) |
| This function decodes an arbitrary XML section of code as defined by the XSD any type (xsd:any). | |
| EXTERNXML int | rtXmlpDecAnyAttrStr (OSCTXT *pctxt, const OSUTF8CHAR **ppAttrStr, size_t index) |
| This function decodes an any attribute string. | |
| EXTERNXML int | rtXmlpDecAnyElem (OSCTXT *pctxt, const OSUTF8CHAR **pvalue) |
| This function decodes an arbitrary XML section of code as defined by the XSD any type (xsd:any). | |
| EXTERNXML int | rtXmlpDecBase64Str (OSCTXT *pctxt, OSOCTET *pvalue, OSUINT32 *pnocts, OSINT32 bufsize) |
| This function decodes a contents of a Base64-encode binary string into a static memory structure. | |
| EXTERNXML int | rtXmlpDecBigInt (OSCTXT *pctxt, const OSUTF8CHAR **pvalue) |
| This function will decode a variable of the XSD integer type. | |
| EXTERNXML int | rtXmlpDecBitString (OSCTXT *pctxt, OSOCTET *pvalue, OSUINT32 *pnbits, OSUINT32 bufsize) |
| This function decodes a bit string value. | |
| EXTERNXML int | rtXmlpDecBool (OSCTXT *pctxt, OSBOOL *pvalue) |
| This function decodes a variable of the boolean type. | |
| EXTERNXML int | rtXmlpDecDate (OSCTXT *pctxt, OSXSDDateTime *pvalue) |
| This function decodes a variable of the XSD 'date' type. | |
| EXTERNXML int | rtXmlpDecDateTime (OSCTXT *pctxt, OSXSDDateTime *pvalue) |
| This function decodes a variable of the XSD 'dateTime' type. | |
| EXTERNXML int | rtXmlpDecDecimal (OSCTXT *pctxt, OSREAL *pvalue, int totalDigits, int fractionDigits) |
| This function decodes the contents of a decimal data type. | |
| EXTERNXML int | rtXmlpDecDouble (OSCTXT *pctxt, OSREAL *pvalue, int totalDigits, int fractionDigits) |
| This function decodes the contents of a float or double data type. | |
| EXTERNXML int | rtXmlpDecDynBase64Str (OSCTXT *pctxt, OSDynOctStr *pvalue) |
| This function decodes a contents of a Base64-encode binary string. | |
| EXTERNXML int | rtXmlpDecDynBitString (OSCTXT *pctxt, OSDynOctStr *pvalue) |
| This function decodes a bit string value. | |
| EXTERNXML int | rtXmlpDecDynHexStr (OSCTXT *pctxt, OSDynOctStr *pvalue) |
| This function decodes a contents of a hexBinary string. | |
| EXTERNXML int | rtXmlpDecDynUnicodeStr (OSCTXT *pctxt, const OSUNICHAR **ppdata, OSUINT32 *pnchars) |
| This function decodes a Unicode string data type. | |
| EXTERNXML int | rtXmlpDecDynUTF8Str (OSCTXT *pctxt, const OSUTF8CHAR **outdata) |
| This function decodes the contents of a UTF-8 string data type. | |
| EXTERNXML int | rtXmlpDecGDay (OSCTXT *pctxt, OSXSDDateTime *pvalue) |
| This function decodes a variable of the XSD 'gDay' type. | |
| EXTERNXML int | rtXmlpDecGMonth (OSCTXT *pctxt, OSXSDDateTime *pvalue) |
| This function decodes a variable of the XSD 'gMonth' type. | |
| EXTERNXML int | rtXmlpDecGMonthDay (OSCTXT *pctxt, OSXSDDateTime *pvalue) |
| This function decodes a variable of the XSD 'gMonthDay' type. | |
| EXTERNXML int | rtXmlpDecGYear (OSCTXT *pctxt, OSXSDDateTime *pvalue) |
| This function decodes a variable of the XSD 'gYear' type. | |
| EXTERNXML int | rtXmlpDecGYearMonth (OSCTXT *pctxt, OSXSDDateTime *pvalue) |
| This function decodes a variable of the XSD 'gYearMonth' type. | |
| EXTERNXML int | rtXmlpDecHexStr (OSCTXT *pctxt, OSOCTET *pvalue, OSUINT32 *pnocts, OSINT32 bufsize) |
| This function decodes the contents of a hexBinary string into a static memory structure. | |
| EXTERNXML int | rtXmlpDecInt (OSCTXT *pctxt, OSINT32 *pvalue) |
| This function decodes the contents of a 32-bit integer data type. | |
| EXTERNXML int | rtXmlpDecInt8 (OSCTXT *pctxt, OSINT8 *pvalue) |
| This function decodes the contents of an 8-bit integer data type (i.e. | |
| EXTERNXML int | rtXmlpDecInt16 (OSCTXT *pctxt, OSINT16 *pvalue) |
| This function decodes the contents of a 16-bit integer data type. | |
| EXTERNXML int | rtXmlpDecInt64 (OSCTXT *pctxt, OSINT64 *pvalue) |
| This function decodes the contents of a 64-bit integer data type. | |
| EXTERNXML int | rtXmlpDecNamedBits (OSCTXT *pctxt, const OSBitMapItem *pBitMap, OSOCTET *pvalue, OSUINT32 *pnbits, OSUINT32 bufsize) |
| This function decodes the contents of a named bit field. | |
| EXTERNXML int | rtXmlpDecStrList (OSCTXT *pctxt, OSRTDList *plist) |
| This function decodes a list of space-separated tokens and returns each token as a separate item on the given list. | |
| EXTERNXML int | rtXmlpDecTime (OSCTXT *pctxt, OSXSDDateTime *pvalue) |
| This function decodes a variable of the XSD 'time' type. | |
| EXTERNXML int | rtXmlpDecUInt (OSCTXT *pctxt, OSUINT32 *pvalue) |
| This function decodes the contents of an unsigned 32-bit integer data type. | |
| EXTERNXML int | rtXmlpDecUInt8 (OSCTXT *pctxt, OSOCTET *pvalue) |
| This function decodes the contents of an unsigned 8-bit integer data type (i.e. | |
| EXTERNXML int | rtXmlpDecUInt16 (OSCTXT *pctxt, OSUINT16 *pvalue) |
| This function decodes the contents of an unsigned 16-bit integer data type. | |
| EXTERNXML int | rtXmlpDecUInt64 (OSCTXT *pctxt, OSUINT64 *pvalue) |
| This function decodes the contents of an unsigned 64-bit integer data type. | |
| EXTERNXML int | rtXmlpDecXmlStr (OSCTXT *pctxt, OSXMLSTRING *outdata) |
| This function decodes the contents of an XML string data type. | |
| EXTERNXML int | rtXmlpDecXSIAttr (OSCTXT *pctxt, const OSXMLNameFragments *attrName) |
| This function decodes XSI (XML Schema Instance) and XML namespace attributes that may be present in any arbitrary XML element within a document. | |
| EXTERNXML int | rtXmlpDecXSITypeAttr (OSCTXT *pctxt, const OSXMLNameFragments *attrName, const OSUTF8CHAR **ppAttrValue) |
| This function decodes the contents of an XSI (XML Schema Instance) type attribute (xsi:type). | |
| EXTERNXML int | rtXmlpGetAttributeID (OSCTXT *pctxt, const OSXMLStrFragment *attrName, OSINT16 nsidx, size_t nAttr, const OSXMLAttrDescr attrNames[], OSUINT32 attrPresent[]) |
| EXTERNXML int | rtXmlpGetNextElem (OSCTXT *pctxt, OSXMLElemDescr *pElem, OSINT32 level) |
| EXTERNXML int | rtXmlpGetNextElemID (OSCTXT *pctxt, const OSXMLElemIDRec *tab, size_t nrows, OSINT32 level, OSBOOL continueParse) |
| EXTERNXML OSBOOL | rtXmlpIsInGroup (int elemID, int grpId, const OSBOOL *grpTab, int nElems) |
| EXTERNXML int | rtXmlpMarkLastEventActive (OSCTXT *pctxt) |
| EXTERNXML int | rtXmlpMatchStartTag (OSCTXT *pctxt, const OSUTF8CHAR *elemLocalName, OSINT16 nsidx) |
| EXTERNXML int | rtXmlpMatchEndTag (OSCTXT *pctxt, OSINT32 level) |
| EXTERNXML OSBOOL | rtXmlpMatchElemId (OSCTXT *pctxt, int elemID, int matchingID) |
| EXTERNXML OSBOOL | rtXmlpHasAttributes (OSCTXT *pctxt) |
| EXTERNXML int | rtXmlpGetAttributeCount (OSCTXT *pctxt) |
| EXTERNXML void | rtXmlpGetContent (OSCTXT *pctxt, int level) |
| EXTERNXML int | rtXmlpSelectAttribute (OSCTXT *pctxt, OSXMLNameFragments *pAttr, OSINT16 *nsidx, size_t index) |
| EXTERNXML int | rtXmlpCreateReader (OSCTXT *pctxt) |
| EXTERNXML OSINT32 | rtXmlpGetCurrentLevel (OSCTXT *pctxt) |
| EXTERNXML void | rtXmlpSetWhiteSpaceMode (OSCTXT *pctxt, OSXMLWhiteSpaceMode whiteSpaceMode) |
| Sets the whitespace treatment mode. | |
| EXTERNXML void | rtXmlpSetMixedContentMode (OSCTXT *pctxt, OSBOOL mixedContentMode) |
| EXTERNXML OSBOOL | rtXmlpIsContentMode (OSCTXT *pctxt) |
| EXTERNXML void | rtXmlpSetListMode (OSCTXT *pctxt) |
| EXTERNXML OSBOOL | rtXmlpListHasItem (OSCTXT *pctxt) |
| EXTERNXML void | rtXmlpCountListItems (OSCTXT *pctxt, OSUINT32 *itemCnt) |
| EXTERNXML int | rtXmlpGetNextSeqElemID (OSCTXT *pctxt, const OSXMLElemIDRec *tab, const OSXMLGroupDesc *ppGroup, int curID, int lastMandatoryID) |
| EXTERNXML int | rtXmlpGetNextAllElemID (OSCTXT *pctxt, const OSXMLElemIDRec *tab, size_t nrows, const OSUINT8 *pOrder, OSUINT32 nOrder, OSUINT32 maxOrder, int anyID) |
| EXTERNXML void | rtXmlpSetNamespaceTable (OSCTXT *pctxt, const char **namespaceTable, size_t nmNamespaces) |
Function Documentation
|
||||||||||||
|
This function decodes an arbitrary XML section of code as defined by the XSD any type (xsd:any). The decoded XML fragment is returned as a string in the form as it appears in the document. Memory is allocated for the string using the rtxMemAlloc function.
|
|
||||||||||||||||
|
This function decodes an any attribute string. The full attribute string (name="value") is decoded and returned on the string output argument. Memory is allocated for the string using the rtxMemAlloc function.
|
|
||||||||||||
|
This function decodes an arbitrary XML section of code as defined by the XSD any type (xsd:any). The decoded XML fragment is returned as a string in the form as it appears in the document. Memory is allocated for the string using the rtxMemAlloc function. The difference between this function and rtXmlpDecAny is that this function preserves the full encoded XML fragment including the start and end elements tags and attributes. rtXmlpDecAny decodes the contents within the start and end tags.
|
|
||||||||||||||||||||
|
This function decodes a contents of a Base64-encode binary string into a static memory structure. The octet string must be Base64 encoded. This function call is used to decode a sized base64Binary string production. Input is expected to be a string of OSUTF8CHAR characters returned by an XML pull parser.
|
|
||||||||||||
|
This function will decode a variable of the XSD integer type. In this case, the integer is assumed to be of a larger size than can fit in a C or C++ long type (normally 32 or 64 bits). For example, parameters used to calculate security values are typically larger than these sizes. These variables are stored in character string constant variables. The radix should be 10. If it is necessary to convert to another radix, then use rtxBigIntSetStr or rtxBigIntToString functions. Input is expected to be a string of OSUTF8CHAR characters returned by an XML pull parser.
|
|
||||||||||||||||||||
|
This function decodes a bit string value. The string consists of a series of '1' and '0' characters. This is the static version in which the user provides a pre-allocated memory buffer to receive the decoded data. One byte in a memory buffer can hold 8 characters of encoded data. Bits are stored from MSB to LSB order.
|
|
||||||||||||
|
This function decodes a variable of the boolean type. Input is expected to be a string of OSUTF8CHAR characters returned by an XML pull parser.
|
|
||||||||||||
|
This function decodes a variable of the XSD 'date' type. Input is expected to be a string of characters returned by an XML pull parser. The string should have CCYY-MM-DD format.
|
|
||||||||||||
|
This function decodes a variable of the XSD 'dateTime' type. Input is expected to be a string of characters returned by an XML pull parser.
|
|
||||||||||||||||||||
|
This function decodes the contents of a decimal data type. Input is expected to be a string of OSUTF8CHAR characters returned by an XML pull parser.
|
|
||||||||||||||||||||
|
This function decodes the contents of a float or double data type. Input is expected to be a string of OSUTF8CHAR characters returned by an XML pull parser.
|
|
||||||||||||
|
This function decodes a contents of a Base64-encode binary string. The octet string must be Base64 encoded. This function will allocate dynamic memory to store the decoded result. Input is expected to be a string of OSUTF8CHAR characters returned by an XML pull parser.
|
|
||||||||||||
|
This function decodes a bit string value. The string consists of a series of '1' and '0' characters. This is the dynamic version in which memory is allocated for the returned binary string variable. Bits are stored from MSB to LSB order.
|
|
||||||||||||
|
This function decodes a contents of a hexBinary string. This function will allocate dynamic memory to store the decoded result. Input is expected to be a string of OSUTF8CHAR characters returned by an XML pull parser.
|
|
||||||||||||||||
|
This function decodes a Unicode string data type. The input is assumed to be in UTF-8 format. This function reads each character and converts it into its Unicode equivalent.
|
|
||||||||||||
|
This function decodes the contents of a UTF-8 string data type. Input is expected to be a string of OSUTF8CHAR characters returned by an XML pull parser.
|
|
||||||||||||
|
This function decodes a variable of the XSD 'gDay' type. Input is expected to be a string of characters returned by an XML pull parser. The string should have ---DD[-+hh:mm|Z] format.
|
|
||||||||||||
|
This function decodes a variable of the XSD 'gMonth' type. Input is expected to be a string of characters returned by an XML pull parser. The string should have --MM[-+hh:mm|Z] format.
|
|
||||||||||||
|
This function decodes a variable of the XSD 'gMonthDay' type. Input is expected to be a string of characters returned by an XML pull parser. The string should have --MM-DD[-+hh:mm|Z] format.
|
|
||||||||||||
|
This function decodes a variable of the XSD 'gYear' type. Input is expected to be a string of characters returned by an XML pull parser. The string should have CCYY[-+hh:mm|Z] format.
|
|
||||||||||||
|
This function decodes a variable of the XSD 'gYearMonth' type. Input is expected to be a string of characters returned by an XML pull parser. The string should have CCYY-MM[-+hh:mm|Z] format.
|
|
||||||||||||||||||||
|
This function decodes the contents of a hexBinary string into a static memory structure. Input is expected to be a string of OSUTF8CHAR characters returned by an XML pull parser.
|
|
||||||||||||
|
This function decodes the contents of a 32-bit integer data type. Input is expected to be a string of OSUTF8CHAR characters returned by an XML pull parser.
|
|
||||||||||||
|
This function decodes the contents of a 16-bit integer data type. Input is expected to be a string of OSUTF8CHAR characters returned by an XML pull parser.
|
|
||||||||||||
|
This function decodes the contents of a 64-bit integer data type. Input is expected to be a string of OSUTF8CHAR characters returned by an XML pull parser.
|
|
||||||||||||
|
This function decodes the contents of an 8-bit integer data type (i.e. a signed byte type in the range of -128 to 127). Input is expected to be a string of OSUTF8CHAR characters returned by an XML pull parser.
|
|
||||||||||||||||||||||||
|
This function decodes the contents of a named bit field. This is a space-separated list of token values in which each token corresponds to a bit field in a bit map.
|
|
||||||||||||
|
This function decodes a list of space-separated tokens and returns each token as a separate item on the given list. Memory is allocated for the list nodes and token values using the rtx memory management functions.
|
|
||||||||||||
|
This function decodes a variable of the XSD 'time' type. Input is expected to be a string of characters returned by an XML pull parser. The string should have one of following formats: (1) hh-mm-ss.ss used if tz_flag = false (2) hh-mm-ss.ssZ used if tz_flag = false and tzo = 0 (3) hh-mm-ss.ss+HH:MM if tz_flag = false and tzo > 0 (4) hh-mm-ss.ss-HH:MM-HH:MM if tz_flag = false and tzo < 0
|
|
||||||||||||
|
This function decodes the contents of an unsigned 32-bit integer data type. Input is expected to be a string of OSUTF8CHAR characters returned by an XML pull parser.
|
|
||||||||||||
|
This function decodes the contents of an unsigned 16-bit integer data type. Input is expected to be a string of OSUTF8CHAR characters returned by an XML pull parser.
|
|
||||||||||||
|
This function decodes the contents of an unsigned 64-bit integer data type. Input is expected to be a string of OSUTF8CHAR characters returned by an XML pull parser.
|
|
||||||||||||
|
This function decodes the contents of an unsigned 8-bit integer data type (i.e. a signed byte type in the range of 0 to 255). Input is expected to be a string of OSUTF8CHAR characters returned by an XML pull parser.
|
|
||||||||||||
|
This function decodes the contents of an XML string data type. This type contains a pointer to a UTF-8 characer string plus flags that can be set to alter the encoding of the string (for example, the cdata flag allows the string to be encoded in a CDATA section). Input is expected to be a string of UTF-8 characters returned by an XML parser.
|
|
||||||||||||
|
This function decodes XSI (XML Schema Instance) and XML namespace attributes that may be present in any arbitrary XML element within a document.
|
|
||||||||||||||||
|
This function decodes the contents of an XSI (XML Schema Instance) type attribute (xsi:type).
|
|
||||||||||||
|
Sets the whitespace treatment mode. This mode affects the content and attribute values reading. For example, if OSXMLWSM_COLLAPSE mode is set then all spaces in returned data will be already collapsed.
|
