XML decode functions.
Functions | |
| EXTERNXML int | rtXmlDecBase64Binary (OSRTMEMBUF *pMemBuf, const OSUTF8CHAR *inpdata, int length) |
| This function decodes the contents of a Base64-encoded binary data type into a memory buffer. | |
| EXTERNXML int | rtXmlDecBase64Str (OSCTXT *pctxt, OSOCTET *pvalue, OSUINT16 *pnocts, OSINT32 bufsize) |
| This function decodes a contents of a Base64-encode binary string into a static memory structure. | |
| EXTERNXML int | rtXmlDecBase64StrValue (OSCTXT *pctxt, OSOCTET *pvalue, OSUINT32 *pnocts, size_t bufSize, size_t srcDataLen) |
| This function decodes a contents of a Base64-encode binary string into the specified octet array. | |
| EXTERNXML int | rtXmlDecBigInt (OSCTXT *pctxt, const OSUTF8CHAR **ppvalue) |
| This function will decode a variable of the XSD integer type. | |
| EXTERNXML int | rtXmlDecBool (OSCTXT *pctxt, OSBOOL *pvalue) |
| This function decodes a variable of the boolean type. | |
| EXTERNXML int | rtXmlDecDate (OSCTXT *pctxt, OSXSDDateTime *pvalue) |
| This function decodes a variable of the XSD 'date' type. | |
| EXTERNXML int | rtXmlDecTime (OSCTXT *pctxt, OSXSDDateTime *pvalue) |
| This function decodes a variable of the XSD 'time' type. | |
| EXTERNXML int | rtXmlDecDateTime (OSCTXT *pctxt, OSXSDDateTime *pvalue) |
| This function decodes a variable of the XSD 'dateTime' type. | |
| EXTERNXML int | rtXmlDecDecimal (OSCTXT *pctxt, OSREAL *pvalue, int totalDigits, int fractionDigits) |
| This function decodes the contents of a decimal data type. | |
| EXTERNXML int | rtXmlDecDouble (OSCTXT *pctxt, OSREAL *pvalue, int totalDigits, int fractionDigits) |
| This function decodes the contents of a float or double data type. | |
| EXTERNXML int | rtXmlDecDynBase64Str (OSCTXT *pctxt, OSDynOctStr *pvalue) |
| This function decodes a contents of a Base64-encode binary string. | |
| EXTERNXML int | rtXmlDecDynHexStr (OSCTXT *pctxt, OSDynOctStr *pvalue) |
| This function decodes a contents of a hexBinary string. | |
| EXTERNXML int | rtXmlDecDynUTF8Str (OSCTXT *pctxt, const OSUTF8CHAR **outdata) |
| This function decodes the contents of a UTF-8 string data type. | |
| EXTERNXML int | rtXmlDecHexBinary (OSRTMEMBUF *pMemBuf, const OSUTF8CHAR *inpdata, int length) |
| This function decodes the contents of a hex-encoded binary data type into a memory buffer. | |
| EXTERNXML int | rtXmlDecHexStr (OSCTXT *pctxt, OSOCTET *pvalue, OSUINT16 *pnocts, OSINT32 bufsize) |
| This function decodes the contents of a hexBinary string into a static memory structure. | |
| EXTERNXML int | rtXmlDecHexStrValue (OSCTXT *pctxt, const OSUTF8CHAR *const inpdata, size_t nbytes, OSOCTET *pvalue, OSUINT32 *pnbits, OSINT32 bufsize) |
| EXTERNXML int | rtXmlDecGYear (OSCTXT *pctxt, OSXSDDateTime *pvalue) |
| This function decodes a variable of the XSD 'gYear' type. | |
| EXTERNXML int | rtXmlDecGYearMonth (OSCTXT *pctxt, OSXSDDateTime *pvalue) |
| This function decodes a variable of the XSD 'gYearMonth' type. | |
| EXTERNXML int | rtXmlDecGMonth (OSCTXT *pctxt, OSXSDDateTime *pvalue) |
| This function decodes a variable of the XSD 'gMonth' type. | |
| EXTERNXML int | rtXmlDecGMonthDay (OSCTXT *pctxt, OSXSDDateTime *pvalue) |
| This function decodes a variable of the XSD 'gMonthDay' type. | |
| EXTERNXML int | rtXmlDecGDay (OSCTXT *pctxt, OSXSDDateTime *pvalue) |
| This function decodes a variable of the XSD 'gDay' type. | |
| EXTERNXML int | rtXmlDecInt (OSCTXT *pctxt, OSINT32 *pvalue) |
| This function decodes the contents of a 32-bit integer data type. | |
| EXTERNXML int | rtXmlDecInt8 (OSCTXT *pctxt, OSINT8 *pvalue) |
| This function decodes the contents of an 8-bit integer data type (i.e. | |
| EXTERNXML int | rtXmlDecInt16 (OSCTXT *pctxt, OSINT16 *pvalue) |
| This function decodes the contents of a 16-bit integer data type. | |
| EXTERNXML int | rtXmlDecInt64 (OSCTXT *pctxt, OSINT64 *pvalue) |
| This function decodes the contents of a 64-bit integer data type. | |
| EXTERNXML int | rtXmlDecUInt (OSCTXT *pctxt, OSUINT32 *pvalue) |
| This function decodes the contents of an unsigned 32-bit integer data type. | |
| EXTERNXML int | rtXmlDecUInt8 (OSCTXT *pctxt, OSUINT8 *pvalue) |
| This function decodes the contents of an unsigned 8-bit integer data type (i.e. | |
| EXTERNXML int | rtXmlDecUInt16 (OSCTXT *pctxt, OSUINT16 *pvalue) |
| This function decodes the contents of an unsigned 16-bit integer data type. | |
| EXTERNXML int | rtXmlDecUInt64 (OSCTXT *pctxt, OSUINT64 *pvalue) |
| This function decodes the contents of an unsigned 64-bit integer data type. | |
| EXTERNXML const OSUTF8CHAR * | rtXmlDecQName (OSCTXT *pctxt, const OSUTF8CHAR *qname, const OSUTF8CHAR **prefix) |
| This function decodes an XML qualified name string (QName) type. | |
| EXTERNXML int | rtXmlDecXSIAttr (OSCTXT *pctxt, const OSUTF8CHAR *attrName, const OSUTF8CHAR *attrValue) |
| This function decodes XML schema instance (XSI) attribute. | |
| EXTERNXML int | rtXmlDecXSIAttrs (OSCTXT *pctxt, const OSUTF8CHAR *const *attrs, const char *typeName) |
| This function decodes XML schema instance (XSI) attributes. | |
| EXTERNXML int | rtXmlDecXmlStr (OSCTXT *pctxt, OSXMLSTRING *outdata) |
| This function decodes the contents of an XML string data type. | |
| EXTERNXML int | rtXmlParseElementName (OSCTXT *pctxt, OSUTF8CHAR **ppName) |
| This function parses the initial tag from an XML message. | |
| EXTERNXML int | rtXmlParseElemQName (OSCTXT *pctxt, OSXMLQName *pQName) |
| This function parses the initial tag from an XML message. | |
Function Documentation
|
||||||||||||||||
|
This function decodes the contents of a Base64-encoded binary data type into a memory buffer. Input is expected to be a string of UTF-8 characters returned by an XML parser. The decoded data will be put into the memory buffer starting from the current position and bit offset. After all data is decoded the octet string may be fetched out. This function is normally used in the 'characters' SAX handler.
|
|
||||||||||||||||||||
|
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.
|
|
||||||||||||||||||||||||
|
This function decodes a contents of a Base64-encode binary string into the specified octet array. The octet string must be Base64 encoded. This function call is used internally to decode both sized and non-sized base64binary string production.
|
|
||||||||||||
|
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.
|
|
||||||||||||
|
This function decodes a variable of the boolean type.
|
|
||||||||||||
|
This function decodes a variable of the XSD 'date' type. Input is expected to be a string of characters returned by an XML 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 parser.
|
|
||||||||||||||||||||
|
This function decodes the contents of a decimal data type. Input is expected to be a string of characters returned by an XML parser.
|
|
||||||||||||||||||||
|
This function decodes the contents of a float or double data type. Input is expected to be a string of characters returned by an XML 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.
|
|
||||||||||||
|
This function decodes a contents of a hexBinary string. This function will allocate dynamic memory to store the decoded result.
|
|
||||||||||||
|
This function decodes the contents of a UTF-8 string data type. Input is expected to be a string of UTF-8 or Unicode characters returned by an XML parser.
|
|
||||||||||||
|
This function decodes a variable of the XSD 'gDay' type. Input is expected to be a string of characters returned by an XML 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 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 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 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 parser. The string should have CCYY-MM[-+hh:mm|Z] format.
|
|
||||||||||||||||
|
This function decodes the contents of a hex-encoded binary data type into a memory buffer. Input is expected to be a string of UTF-8 characters returned by an XML parser. The decoded data will be put into the given memory buffer starting from the current position and bit offset. After all data is decoded the octet string may be fetched out. This function is normally used in the 'characters' SAX handler.
|
|
||||||||||||||||||||
|
This function decodes the contents of a hexBinary string into a static memory structure.
|
|
||||||||||||
|
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 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 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 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 parser.
|
|
||||||||||||||||
|
This function decodes an XML qualified name string (QName) type. This is a type that contains an optional namespace prefix followed by a colon and the local part of the name: [NS 5] QName ::= (Prefix ':')? LocalPart [NS 6] Prefix ::= NCName [NS 7] LocalPart ::= NCName
|
|
||||||||||||
|
This function decodes a variable of the XSD 'time' type. Input is expected to be a string of characters returned by an XML 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 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 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 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 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 XML schema instance (XSI) attribute. These attributes include the XSI namespace declaration, the XSD schema location attribute, and the XSD no namespace schema location attribute.
|
|
||||||||||||||||
|
This function decodes XML schema instance (XSI) attributes. These attributes include the XSI namespace declaration, the XSD schema location attribute, and the XSD no namespace schema location attribute.
|
|
||||||||||||
|
This function parses the initial tag from an XML message. If the tag is a QName, only the local part of the name is returned.
|
|
||||||||||||
|
This function parses the initial tag from an XML message.
|
