XML encode functions.
Defines | |
| #define | rtXmlFinalizeMemBuf(pMemBuf) |
| #define | rtXmlGetEncBufPtr(pctxt) (pctxt)->buffer.data |
| This macro returns the start address of the encoded XML message. | |
| #define | rtXmlGetEncBufLen(pctxt) (pctxt)->buffer.byteIndex |
| This macro returns the length of the encoded XML message. | |
Functions | |
| int | rtXmlEncAny (OSCTXT *pctxt, OSXMLSTRING *pvalue, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS) |
| This function encodes a variable of the XSD any type. | |
| int | rtXmlEncAnyTypeValue (OSCTXT *pctxt, const OSUTF8CHAR *pvalue) |
| This function encodes a variable of the XSD anyType type. | |
| int | rtXmlEncAnyAttr (OSCTXT *pctxt, OSRTDList *pAnyAttrList) |
| This function encodes a list of OSAnyAttr attributes in which the name and value are given as a UTF-8 string. | |
| int | rtXmlEncBase64Binary (OSCTXT *pctxt, OSUINT32 nocts, const OSOCTET *value, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS) |
| This function encodes a variable of the XSD base64Binary type. | |
| int | rtXmlEncBase64BinaryAttr (OSCTXT *pctxt, OSUINT32 nocts, const OSOCTET *value, const OSUTF8CHAR *attrName, size_t attrNameLen) |
| This function encodes a variable of the XSD base64Binary type as an attribute. | |
| int | rtXmlEncBase64StrValue (OSCTXT *pctxt, OSUINT32 nocts, const OSOCTET *value) |
| This function encodes a variable of the XSD base64Binary type. | |
| int | rtXmlEncBigInt (OSCTXT *pctxt, const OSUTF8CHAR *value, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS) |
| This function encodes a variable of the XSD integer type. | |
| int | rtXmlEncBigIntAttr (OSCTXT *pctxt, const OSUTF8CHAR *value, const OSUTF8CHAR *attrName, size_t attrNameLen) |
| This function encodes an XSD integer attribute value. | |
| int | rtXmlEncBigIntValue (OSCTXT *pctxt, const OSUTF8CHAR *value) |
| This function encodes an XSD integer attribute value. | |
| int | rtXmlEncBitString (OSCTXT *pctxt, OSUINT32 nbits, const OSOCTET *value, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS) |
| This function encodes a variable of the ASN.1 BIT STRING type. | |
| int | rtXmlEncBinStrValue (OSCTXT *pctxt, OSUINT32 nbits, const OSOCTET *data) |
| This function encodes a binary string value as a sequence of '1's and '0's. | |
| int | rtXmlEncBool (OSCTXT *pctxt, OSBOOL value, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS) |
| This function encodes a variable of the XSD boolean type. | |
| int | rtXmlEncBoolValue (OSCTXT *pctxt, OSBOOL value) |
| This function encodes a variable of the XSD boolean type. | |
| int | rtXmlEncBoolAttr (OSCTXT *pctxt, OSBOOL value, const OSUTF8CHAR *attrName, size_t attrNameLen) |
| This function encodes an XSD boolean attribute value. | |
| int | rtXmlEncDate (OSCTXT *pctxt, const OSXSDDateTime *pvalue, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS) |
| This function encodes a variable of the XSD 'date' type as a string. | |
| int | rtXmlEncDateValue (OSCTXT *pctxt, const OSXSDDateTime *pvalue) |
| This function encodes a variable of the XSD 'date' type as a string. | |
| int | rtXmlEncTime (OSCTXT *pctxt, const OSXSDDateTime *pvalue, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS) |
| This function encodes a variable of the XSD 'time' type as an string. | |
| int | rtXmlEncTimeValue (OSCTXT *pctxt, const OSXSDDateTime *pvalue) |
| This function encodes a variable of the XSD 'time' type as an string. | |
| int | rtXmlEncDateTime (OSCTXT *pctxt, const OSXSDDateTime *pvalue, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS) |
| This function encodes a numeric date/time value into an XML string representation. | |
| int | rtXmlEncDateTimeValue (OSCTXT *pctxt, const OSXSDDateTime *pvalue) |
| This function encodes a numeric date/time value into an XML string representation. | |
| int | rtXmlEncDecimal (OSCTXT *pctxt, OSREAL value, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS, const OSDecimalFmt *pFmtSpec) |
| This function encodes a variable of the XSD decimal type. | |
| int | rtXmlEncDecimalAttr (OSCTXT *pctxt, OSREAL value, const OSUTF8CHAR *attrName, size_t attrNameLen, const OSDecimalFmt *pFmtSpec) |
| This function encodes a variable of the XSD decimal type as an attribute. | |
| int | rtXmlEncDecimalValue (OSCTXT *pctxt, OSREAL value, const OSDecimalFmt *pFmtSpec, char *pDestBuf, size_t destBufSize) |
| This function encodes a value of the XSD decimal type. | |
| int | rtXmlEncDouble (OSCTXT *pctxt, OSREAL value, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS, const OSDoubleFmt *pFmtSpec) |
| This function encodes a variable of the XSD double type. | |
| int | rtXmlEncDoubleAttr (OSCTXT *pctxt, OSREAL value, const OSUTF8CHAR *attrName, size_t attrNameLen, const OSDoubleFmt *pFmtSpec) |
| This function encodes a variable of the XSD double type as an attribute. | |
| int | rtXmlEncDoubleValue (OSCTXT *pctxt, OSREAL value, const OSDoubleFmt *pFmtSpec, int defaultPrecision) |
| This function encodes a value of the XSD double or float type. | |
| int | rtXmlEncEmptyElement (OSCTXT *pctxt, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS, OSRTDList *pNSAttrs, OSBOOL terminate) |
| This function encodes an enpty element tag value (<elemName/>). | |
| int | rtXmlEncEndDocument (OSCTXT *pctxt) |
| This function adds trailor information and a null terminator at the end of the XML document being encoded. | |
| int | rtXmlEncEndElement (OSCTXT *pctxt, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS) |
| This function encodes an end element tag value (</elemName>). | |
| int | rtXmlEncEndSoapEnv (OSCTXT *pctxt) |
| This function encodes a SOAP envelope end element tag (<SOAP-ENV:Envelope/>). | |
| int | rtXmlEncEndSoapElems (OSCTXT *pctxt, OSXMLSOAPMsgType msgtype) |
| This function encodes SOAP end element tags. | |
| int | rtXmlEncFloat (OSCTXT *pctxt, OSREAL value, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS, const OSDoubleFmt *pFmtSpec) |
| This function encodes a variable of the XSD float type. | |
| int | rtXmlEncFloatAttr (OSCTXT *pctxt, OSREAL value, const OSUTF8CHAR *attrName, size_t attrNameLen, const OSDoubleFmt *pFmtSpec) |
| This function encodes a variable of the XSD float type as an attribute. | |
| int | rtXmlEncGYear (OSCTXT *pctxt, const OSXSDDateTime *pvalue, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS) |
| This function encodes a numeric gYear element into an XML string representation. | |
| int | rtXmlEncGYearMonth (OSCTXT *pctxt, const OSXSDDateTime *pvalue, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS) |
| This function encodes a numeric gYearMonth element into an XML string representation. | |
| int | rtXmlEncGMonth (OSCTXT *pctxt, const OSXSDDateTime *pvalue, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS) |
| This function encodes a numeric gMonth element into an XML string representation. | |
| int | rtXmlEncGMonthDay (OSCTXT *pctxt, const OSXSDDateTime *pvalue, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS) |
| This function encodes a numeric gMonthDay element into an XML string representation. | |
| int | rtXmlEncGDay (OSCTXT *pctxt, const OSXSDDateTime *pvalue, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS) |
| This function encodes a numeric gDay element into an XML string representation. | |
| int | rtXmlEncGYearValue (OSCTXT *pctxt, const OSXSDDateTime *pvalue) |
| This function encodes a numeric gYear value into an XML string representation. | |
| int | rtXmlEncGYearMonthValue (OSCTXT *pctxt, const OSXSDDateTime *pvalue) |
| This function encodes a numeric gYearMonth value into an XML string representation. | |
| int | rtXmlEncGMonthValue (OSCTXT *pctxt, const OSXSDDateTime *pvalue) |
| This function encodes a numeric gMonth value into an XML string representation. | |
| int | rtXmlEncGMonthDayValue (OSCTXT *pctxt, const OSXSDDateTime *pvalue) |
| This function encodes a numeric gMonthDay value into an XML string representation. | |
| int | rtXmlEncGDayValue (OSCTXT *pctxt, const OSXSDDateTime *pvalue) |
| This function encodes a numeric gDay value into an XML string representation. | |
| int | rtXmlEncHexBinary (OSCTXT *pctxt, OSUINT32 nocts, const OSOCTET *value, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS) |
| This function encodes a variable of the XSD hexBinary type. | |
| int | rtXmlEncHexBinaryAttr (OSCTXT *pctxt, OSUINT32 nocts, const OSOCTET *value, const OSUTF8CHAR *attrName, size_t attrNameLen) |
| This function encodes a variable of the XSD hexBinary type as an attribute. | |
| int | rtXmlEncHexStrValue (OSCTXT *pctxt, OSUINT32 nocts, const OSOCTET *data) |
| This function encodes a variable of the XSD hexBinary type. | |
| int | rtXmlEncIndent (OSCTXT *pctxt) |
| This function adds indentation whitespace to the output stream. | |
| int | rtXmlEncInt (OSCTXT *pctxt, OSINT32 value, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS) |
| This function encodes a variable of the XSD integer type. | |
| int | rtXmlEncIntValue (OSCTXT *pctxt, OSINT32 value) |
| This function encodes a variable of the XSD integer type. | |
| int | rtXmlEncIntAttr (OSCTXT *pctxt, OSINT32 value, const OSUTF8CHAR *attrName, size_t attrNameLen) |
| This function encodes a variable of the XSD integer type as an attribute (name="value"). | |
| int | rtXmlEncIntPattern (OSCTXT *pctxt, OSINT32 value, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS, const OSUTF8CHAR *pattern) |
| This function encodes a variable of the XSD integer type using a pattern to specify the format of the integer value. | |
| int | rtXmlEncInt64 (OSCTXT *pctxt, OSINT64 value, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS) |
| This function encodes a variable of the XSD integer type. | |
| int | rtXmlEncInt64Value (OSCTXT *pctxt, OSINT64 value) |
| This function encodes a variable of the XSD integer type. | |
| int | rtXmlEncInt64Attr (OSCTXT *pctxt, OSINT64 value, const OSUTF8CHAR *attrName, size_t attrNameLen) |
| This function encodes a variable of the XSD integer type as an attribute (name="value"). | |
| int | rtXmlEncNamedBits (OSCTXT *pctxt, const OSBitMapItem *pBitMap, OSUINT32 nbits, const OSOCTET *pvalue, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS) |
| This function encodes a variable of the ASN.1 BIT STRING type. | |
| int | rtXmlEncNSAttrs (OSCTXT *pctxt, OSRTDList *pNSAttrs) |
| This function encodes namespace declaration attributes at the beginning of an XML document. | |
| int | rtxPrintNSAttrs (const char *name, const OSRTDList data) |
| This function prints a list of namespace attributes. | |
| int | rtXmlEncReal10 (OSCTXT *pctxt, const OSUTF8CHAR *pvalue, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS) |
| This function encodes a variable of the ASN.1 REAL base 10 type. | |
| int | rtXmlEncSoapArrayTypeAttr (OSCTXT *pctxt, const OSUTF8CHAR *name, const OSUTF8CHAR *value, size_t itemCount) |
| This function encodes the special SOAP encoding attrType attribute which specifies the number and type of elements in a SOAP array. | |
| int | rtXmlEncStartDocument (OSCTXT *pctxt) |
| This function encodes the XML header text at the beginning of an XML document. | |
| int | rtXmlEncBOM (OSCTXT *pctxt) |
| This function encodes the Unicode byte order mark header at the start of the document. | |
| int | rtXmlEncStartElement (OSCTXT *pctxt, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS, OSRTDList *pNSAttrs, OSBOOL terminate) |
| This function encodes a start element tag value (<elemName>). | |
| int | rtXmlEncStartSoapEnv (OSCTXT *pctxt) |
| This function encodes a SOAP envelope start element tag. | |
| int | rtXmlEncStartSoapElems (OSCTXT *pctxt, OSXMLSOAPMsgType msgtype) |
| This function encodes a SOAP envelope start element tag and an optional SOAP body or fault tag. | |
| int | rtXmlEncString (OSCTXT *pctxt, OSXMLSTRING *pxmlstr, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS) |
| This function encodes a variable of the XSD string type. | |
| int | rtXmlEncStringValue (OSCTXT *pctxt, const OSUTF8CHAR *value) |
| This function encodes a variable of the XSD string type. | |
| int | rtXmlEncStringValue2 (OSCTXT *pctxt, const OSUTF8CHAR *value, size_t valueLen) |
| This function encodes a variable of the XSD string type. | |
| int | rtXmlEncTermStartElement (OSCTXT *pctxt) |
| This function terminates a currently open XML start element by adding either a '>' or '/>' (if empty) terminator. | |
| int | rtXmlEncUnicodeStr (OSCTXT *pctxt, const OSUNICHAR *value, OSUINT32 nchars, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS) |
| This function encodes a Unicode string value. | |
| int | rtXmlEncUTF8Attr (OSCTXT *pctxt, const OSUTF8CHAR *name, const OSUTF8CHAR *value) |
| This function encodes an attribute in which the name and value are given as a null-terminated UTF-8 strings. | |
| int | rtXmlEncUTF8Attr2 (OSCTXT *pctxt, const OSUTF8CHAR *name, size_t nameLen, const OSUTF8CHAR *value, size_t valueLen) |
| This function encodes an attribute in which the name and value are given as a UTF-8 strings with lengths. | |
| int | rtXmlEncUTF8Str (OSCTXT *pctxt, const OSUTF8CHAR *value, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS) |
| This function encodes a UTF-8 string value. | |
| int | rtXmlEncUInt (OSCTXT *pctxt, OSUINT32 value, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS) |
| This function encodes a variable of the XSD unsigned integer type. | |
| int | rtXmlEncUIntValue (OSCTXT *pctxt, OSUINT32 value) |
| This function encodes a variable of the XSD unsigned integer type. | |
| int | rtXmlEncUIntAttr (OSCTXT *pctxt, OSUINT32 value, const OSUTF8CHAR *attrName, size_t attrNameLen) |
| This function encodes a variable of the XSD unsigned integer type as an attribute (name="value"). | |
| int | rtXmlEncUInt64 (OSCTXT *pctxt, OSUINT64 value, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS) |
| This function encodes a variable of the XSD integer type. | |
| int | rtXmlEncUInt64Value (OSCTXT *pctxt, OSUINT64 value) |
| This function encodes a variable of the XSD integer type. | |
| int | rtXmlEncUInt64Attr (OSCTXT *pctxt, OSUINT64 value, const OSUTF8CHAR *attrName, size_t attrNameLen) |
| This function encodes a variable of the XSD integer type as an attribute (name="value"). | |
| int | rtXmlEncXSIAttrs (OSCTXT *pctxt, OSBOOL needXSI) |
| This function encodes XML schema instance (XSI) attributes at the beginning of an XML document. | |
| int | rtXmlEncXSITypeAttr (OSCTXT *pctxt, const OSUTF8CHAR *value) |
| This function encodes an XML schema instance (XSI) type attribute value (xsi:type="value"). | |
| int | rtXmlFreeInputSource (OSCTXT *pctxt) |
| This function closes an input source that was previously created with one of the create input source functions such as 'rtXmlCreateFileInputSource'. | |
| int | rtXmlSetEncBufPtr (OSCTXT *pctxt, OSOCTET *bufaddr, size_t bufsiz) |
| This function is used to set the internal buffer within the run-time library encoding context. | |
| int | rtXmlGetIndent (OSCTXT *pctxt) |
| This function returns current XML output indent value. | |
| OSBOOL | rtXmlGetWriteBOM (OSCTXT *pctxt) |
| This function returns whether the Unicode byte order mark will be encoded. | |
| int | rtXmlGetIndentChar (OSCTXT *pctxt) |
| This function returns current XML output indent character value (default is space). | |
Define Documentation
|
|
This macro returns the length of the encoded XML message.
|
|
|
This macro returns the start address of the encoded XML message. If a static buffer was used, this is simply the start address of the buffer. If dynamic encoding was done, this will return the start address of the dynamic buffer allocated by the encoder.
|
Function Documentation
|
||||||||||||||||||||
|
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 anyType type. This is considered to be a fully-wrapped element of any type, possibly containing attributes. (for example: * <myType>myData</myType>)
|
|
||||||||||||||||||||||||
|
This function encodes a variable of the XSD base64Binary type.
|
|
||||||||||||||||||||||||
|
This function encodes a variable of the XSD base64Binary type as an attribute.
|
|
||||||||||||||||
|
This function encodes a variable of the XSD base64Binary type. It just puts the encoded value in the destination buffer or stream without any tags.
|
|
||||||||||||||||||||
|
This function encodes 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. Items of this type are stored in character string constant variables. They can be represented as decimal strings (with no prefixes), as hexadecimal strings starting with a "0x" prefix, as octal strings starting with a "0o" prefix or as binary strings starting with a "0b" prefix. Other radixes are currently not supported.
|
|
||||||||||||||||||||
|
This function encodes an XSD integer attribute value. 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).
|
|
||||||||||||
|
This function encodes an XSD integer attribute value. 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). This function just puts the encoded value in the destination buffer or stream without any tags.
|
|
||||||||||||||||
|
This function encodes a binary string value as a sequence of '1's and '0's.
|
|
||||||||||||||||||||||||
|
This function encodes a variable of the ASN.1 BIT STRING type. The encoded data is a sequence of '1's and '0's. This is only used if named bits are not specified in the string (
|
|
|
This function encodes the Unicode byte order mark header at the start of the document. It is called by rtXmlEncStartDocument and does not need to be called manually.
|
|
||||||||||||||||||||
|
This function encodes a variable of the XSD boolean type.
|
|
||||||||||||||||||||
|
This function encodes an XSD boolean attribute value.
|
|
||||||||||||
|
This function encodes a variable of the XSD boolean type. It just puts the encoded value in the destination buffer or stream without any tags.
|
|
||||||||||||||||||||
|
This function encodes a variable of the XSD 'date' type as a string. This version of the function is used to encode an OSXSDDateTime value into CCYY-MM-DD format.
|
|
||||||||||||||||||||
|
This function encodes a numeric date/time value into an XML string representation.
|
|
||||||||||||
|
This function encodes a numeric date/time value into an XML string representation. It just puts the encoded value in the destination buffer or stream without any tags.
|
|
||||||||||||
|
This function encodes a variable of the XSD 'date' type as a string. This version of the function is used to encode an OSXSDDateTime value into CCYY-MM-DD format. This function just puts the encoded value in the destination buffer or stream without any tags.
|
|
||||||||||||||||||||||||
|
This function encodes a variable of the XSD decimal type.
|
|
||||||||||||||||||||||||
|
This function encodes a variable of the XSD decimal type as an attribute.
|
|
||||||||||||||||||||||||
|
This function encodes a value of the XSD decimal type. It just puts the encoded value in the destination buffer or stream without any tags.
|
|
||||||||||||||||||||||||
|
This function encodes a variable of the XSD double type.
|
|
||||||||||||||||||||||||
|
This function encodes a variable of the XSD double type as an attribute.
|
|
||||||||||||||||||||
|
This function encodes a value of the XSD double or float type. It just puts the encoded value in the destination buffer or stream without any tags.
|
|
||||||||||||||||||||||||
|
This function encodes an enpty element tag value (<elemName/>).
|
|
|
This function adds trailor information and a null terminator at the end of the XML document being encoded.
|
|
||||||||||||||||
|
This function encodes an end element tag value (</elemName>).
|
|
||||||||||||
|
This function encodes SOAP end element tags. If will add a SOAP body or fault end tag based on the SOAP message type argument. It will then add an envelope end element tag.
|
|
|
This function encodes a SOAP envelope end element tag (<SOAP-ENV:Envelope/>).
|
|
||||||||||||||||||||||||
|
This function encodes a variable of the XSD float type.
|
|
||||||||||||||||||||||||
