osrtxml.h File Reference
XML low-level C encode/decode functions. More...
#include "rtxsrc/rtxCommon.h"
#include "rtxmlsrc/rtSaxDefs.h"
#include "rtxsrc/rtxDList.h"
#include "rtxsrc/rtxMemBuf.h"
#include "rtxmlsrc/rtXmlErrCodes.h"
#include "rtxmlsrc/rtXmlNamespace.h"
Go to the source code of this file.
Data Structures | |
| struct | OSXMLFacets |
| struct | OSXMLStrFragment |
| struct | OSXMLNameFragments |
| struct | OSXMLItemDescr |
| struct | OSXMLElemIDRec |
| struct | OSXMLGroupDesc |
| struct | OSXMLCtxtInfo |
| struct | OSXMLQName |
| struct | OSIntegerFmt |
| struct | OSDecimalFmt |
| struct | OSDoubleFmt |
Defines | |
| #define | EXTERNXML |
| #define | OSUPCASE 0x00008000 |
| #define | OSTERMSTART 0x00004000 |
| #define | OSXMLFRAGSEQUAL(frag1, frag2) (frag1.length==frag2.length && !memcmp(frag1.value,frag2.value,frag1.length)) |
| #define | OSXMLQNAMEEQUALS(xnamefrag, qnametext) |
| #define | OSXMLTERMSTARTELEM(pctxt) |
| #define | OSXMLINDENT 3 |
| #define | rtXmlErrAddStrParm rtxErrAddStrParm |
| #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. | |
Typedefs | |
| typedef OSXMLItemDescr | OSXMLAttrDescr |
| typedef OSXMLItemDescr | OSXMLElemDescr |
Enumerations | |
| enum | OSXMLEncoding { OSXMLUTF8, OSXMLUTF16 } |
| enum | OSXMLState { OSXMLINIT, OSXMLHEADER, OSXMLSTART, OSXMLDATA, OSXMLEND } |
| enum | OSXMLWhiteSpaceMode { OSXMLWSM_PRESERVE = 0, OSXMLWSM_REPLACE, OSXMLWSM_COLLAPSE } |
| Whitespace treatment mode. | |
Functions | |
| EXTERNXML int | rtXmlInitContext (OSCTXT *pctxt) |
| This function initializes a context variable for XML encoding or decoding. | |
| EXTERNXML int | rtXmlInitCtxtAppInfo (OSCTXT *pctxt) |
| This function initializes the XML application info section of the given context. | |
| EXTERNXML int | rtXmlCreateFileInputSource (OSCTXT *pctxt, const char *filepath) |
| This function creates an XML document file input source. | |
| EXTERNXML OSBOOL | rtXmlCmpQName (const OSUTF8CHAR *qname1, const OSUTF8CHAR *name2, const OSUTF8CHAR *nsPrefix2) |
| EXTERNXML int | rtXmlGetBase64StrDecodedLen (const OSUTF8CHAR *inpdata, size_t srcDataSize, size_t *pNumOcts, size_t *pSrcDataLen) |
| 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. | |
| EXTERNXML int | rtXmlEncAny (OSCTXT *pctxt, OSXMLSTRING *pvalue, const OSUTF8CHAR *elemName, const OSUTF8CHAR *nsPrefix) |
| This function encodes a variable of the XSD any type. | |
| EXTERNXML int | rtXmlEncAnyStr (OSCTXT *pctxt, const OSUTF8CHAR *pvalue, const OSUTF8CHAR *elemName, const OSUTF8CHAR *nsPrefix) |
| EXTERNXML 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. | |
| EXTERNXML int | rtXmlEncBase64Binary (OSCTXT *pctxt, OSUINT32 nocts, const OSOCTET *value, const OSUTF8CHAR *elemName, const OSUTF8CHAR *nsPrefix) |
| This function encodes a variable of the XSD base64Binary type. | |
| EXTERNXML int | rtXmlEncBase64BinaryAttr (OSCTXT *pctxt, OSUINT32 nocts, const OSOCTET *value, const OSUTF8CHAR *attrName, OSUINT16 attrNameLen) |
| This function encodes a variable of the XSD base64Binary type as an attribute. | |
| EXTERNXML int | rtXmlEncBase64StrValue (OSCTXT *pctxt, OSUINT32 nocts, const OSOCTET *value) |
| This function encodes a variable of the XSD base64Binary type. | |
| EXTERNXML int | rtXmlEncBigInt (OSCTXT *pctxt, const OSUTF8CHAR *value, const OSUTF8CHAR *elemName, const OSUTF8CHAR *nsPrefix) |
| This function encodes a variable of the XSD integer type. | |
| EXTERNXML int | rtXmlEncBigIntAttr (OSCTXT *pctxt, const OSUTF8CHAR *value, const OSUTF8CHAR *attrName, OSUINT16 attrNameLen) |
| This function encodes an XSD integer attribute value. | |
| EXTERNXML int | rtXmlEncBigIntValue (OSCTXT *pctxt, const OSUTF8CHAR *value) |
| This function encodes an XSD integer attribute value. | |
| EXTERNXML int | rtXmlEncBitString (OSCTXT *pctxt, OSUINT32 nbits, const OSOCTET *value, const OSUTF8CHAR *elemName, const OSUTF8CHAR *nsPrefix) |
| This function encodes a variable of the ASN.1 BIT STRING type. | |
| EXTERNXML 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. | |
| EXTERNXML int | rtXmlEncBool (OSCTXT *pctxt, OSBOOL value, const OSUTF8CHAR *elemName, const OSUTF8CHAR *nsPrefix) |
| This function encodes a variable of the XSD boolean type. | |
| EXTERNXML int | rtXmlEncBoolValue (OSCTXT *pctxt, OSBOOL value) |
| This function encodes a variable of the XSD boolean type. | |
| EXTERNXML int | rtXmlEncBoolAttr (OSCTXT *pctxt, OSBOOL value, const OSUTF8CHAR *attrName, OSUINT16 attrNameLen) |
| This function encodes an XSD boolean attribute value. | |
| EXTERNXML int | rtXmlEncDate (OSCTXT *pctxt, const OSXSDDateTime *pvalue, const OSUTF8CHAR *elemName, const OSUTF8CHAR *nsPrefix) |
| This function encodes a variable of the XSD 'date' type as a string. | |
| EXTERNXML int | rtXmlEncDateValue (OSCTXT *pctxt, const OSXSDDateTime *pvalue) |
| This function encodes a variable of the XSD 'date' type as a string. | |
| EXTERNXML int | rtXmlEncTime (OSCTXT *pctxt, const OSXSDDateTime *pvalue, const OSUTF8CHAR *elemName, const OSUTF8CHAR *nsPrefix) |
| This function encodes a variable of the XSD 'time' type as an string. | |
| EXTERNXML int | rtXmlEncTimeValue (OSCTXT *pctxt, const OSXSDDateTime *pvalue) |
| This function encodes a variable of the XSD 'time' type as an string. | |
| EXTERNXML int | rtXmlEncDateTime (OSCTXT *pctxt, const OSXSDDateTime *pvalue, const OSUTF8CHAR *elemName, const OSUTF8CHAR *nsPrefix) |
| This function encodes a numeric date/time value into an XML string representation. | |
| EXTERNXML int | rtXmlEncDateTimeValue (OSCTXT *pctxt, const OSXSDDateTime *pvalue) |
| This function encodes a numeric date/time value into an XML string representation. | |
| EXTERNXML int | rtXmlEncDecimal (OSCTXT *pctxt, OSREAL value, const OSUTF8CHAR *elemName, const OSUTF8CHAR *nsPrefix, const OSDecimalFmt *pFmtSpec) |
| This function encodes a variable of the XSD decimal type. | |
| EXTERNXML int | rtXmlEncDecimalAttr (OSCTXT *pctxt, OSREAL value, const OSUTF8CHAR *attrName, OSUINT16 attrNameLen, const OSDecimalFmt *pFmtSpec) |
| This function encodes a variable of the XSD decimal type as an attribute. | |
| EXTERNXML int | rtXmlEncDecimalValue (OSCTXT *pctxt, OSREAL value, const OSDecimalFmt *pFmtSpec, char *pDestBuf, size_t destBufSize) |
| This function encodes a value of the XSD decimal type. | |
| EXTERNXML int | rtXmlEncDouble (OSCTXT *pctxt, OSREAL value, const OSUTF8CHAR *elemName, const OSUTF8CHAR *nsPrefix, const OSDoubleFmt *pFmtSpec) |
| This function encodes a variable of the XSD double type. | |
| EXTERNXML int | rtXmlEncDoubleAttr (OSCTXT *pctxt, OSREAL value, const OSUTF8CHAR *attrName, OSUINT16 attrNameLen, const OSDoubleFmt *pFmtSpec) |
| This function encodes a variable of the XSD double type as an attribute. | |
| EXTERNXML int | rtXmlEncDoubleValue (OSCTXT *pctxt, OSREAL value, const OSDoubleFmt *pFmtSpec, int defaultPrecision) |
| This function encodes a value of the XSD double or float type. | |
| EXTERNXML int | rtXmlEncEmptyElement (OSCTXT *pctxt, const OSUTF8CHAR *elemName, const OSUTF8CHAR *nsPrefix, OSBOOL terminate) |
| This function encodes an enpty element tag value (<elemName>). | |
| EXTERNXML int | rtXmlEncEmptyElement2 (OSCTXT *pctxt, const OSUTF8CHAR *elemName, size_t elemLen, const OSUTF8CHAR *nsPrefix, size_t nsPrefixLen, OSBOOL terminate) |
| EXTERNXML int | rtXmlEncEndDocument (OSCTXT *pctxt) |
| This function adds trailor information and a null terminator at the end of the XML document being encoded. | |
| EXTERNXML int | rtXmlEncEndElement (OSCTXT *pctxt, const OSUTF8CHAR *elemName, const OSUTF8CHAR *nsPrefix) |
| This function encodes an end element tag value (</elemName>). | |
| EXTERNXML int | rtXmlEncEndElement2 (OSCTXT *pctxt, const OSUTF8CHAR *elemName, size_t elemLen, const OSUTF8CHAR *nsPrefix, size_t nsPrefixLen) |
| EXTERNXML int | rtXmlEncEndSoapEnv (OSCTXT *pctxt) |
| This function encodes a SOAP envelope end element tag (<SOAP-ENV:Envelope/>). | |
| EXTERNXML int | rtXmlEncFloat (OSCTXT *pctxt, OSREAL value, const OSUTF8CHAR *elemName, const OSUTF8CHAR *nsPrefix, const OSDoubleFmt *pFmtSpec) |
| This function encodes a variable of the XSD float type. | |
| EXTERNXML int | rtXmlEncFloatAttr (OSCTXT *pctxt, OSREAL value, const OSUTF8CHAR *attrName, OSUINT16 attrNameLen, const OSDoubleFmt *pFmtSpec) |
| This function encodes a variable of the XSD float type as an attribute. | |
| EXTERNXML int | rtXmlEncGYear (OSCTXT *pctxt, const OSXSDDateTime *pvalue, const OSUTF8CHAR *elemName, const OSUTF8CHAR *nsPrefix) |
| This function encodes a numeric gYear element into an XML string representation. | |
| EXTERNXML int | rtXmlEncGYearMonth (OSCTXT *pctxt, const OSXSDDateTime *pvalue, const OSUTF8CHAR *elemName, const OSUTF8CHAR *nsPrefix) |
| This function encodes a numeric gYearMonth element into an XML string representation. | |
| EXTERNXML int | rtXmlEncGMonth (OSCTXT *pctxt, const OSXSDDateTime *pvalue, const OSUTF8CHAR *elemName, const OSUTF8CHAR *nsPrefix) |
| This function encodes a numeric gMonth element into an XML string representation. | |
| EXTERNXML int | rtXmlEncGMonthDay (OSCTXT *pctxt, const OSXSDDateTime *pvalue, const OSUTF8CHAR *elemName, const OSUTF8CHAR *nsPrefix) |
| This function encodes a numeric gMonthDay element into an XML string representation. | |
| EXTERNXML int | rtXmlEncGDay (OSCTXT *pctxt, const OSXSDDateTime *pvalue, const OSUTF8CHAR *elemName, const OSUTF8CHAR *nsPrefix) |
| This function encodes a numeric gDay element into an XML string representation. | |
| EXTERNXML int | rtXmlEncGYearValue (OSCTXT *pctxt, const OSXSDDateTime *pvalue) |
| This function encodes a numeric gYear value into an XML string representation. | |
| EXTERNXML int | rtXmlEncGYearMonthValue (OSCTXT *pctxt, const OSXSDDateTime *pvalue) |
| This function encodes a numeric gYearMonth value into an XML string representation. | |
| EXTERNXML int | rtXmlEncGMonthValue (OSCTXT *pctxt, const OSXSDDateTime *pvalue) |
| This function encodes a numeric gMonth value into an XML string representation. | |
| EXTERNXML int | rtXmlEncGMonthDayValue (OSCTXT *pctxt, const OSXSDDateTime *pvalue) |
| This function encodes a numeric gMonthDay value into an XML string representation. | |
| EXTERNXML int | rtXmlEncGDayValue (OSCTXT *pctxt, const OSXSDDateTime *pvalue) |
| This function encodes a numeric gDay value into an XML string representation. | |
| EXTERNXML int | rtXmlEncHexBinary (OSCTXT *pctxt, OSUINT32 nocts, const OSOCTET *value, const OSUTF8CHAR *elemName, const OSUTF8CHAR *nsPrefix) |
| This function encodes a variable of the XSD hexBinary type. | |
| EXTERNXML int | rtXmlEncHexBinaryAttr (OSCTXT *pctxt, OSUINT32 nocts, const OSOCTET *value, const OSUTF8CHAR *attrName, OSUINT16 attrNameLen) |
| This function encodes a variable of the XSD hexBinary type as an attribute. | |
| EXTERNXML int | rtXmlEncHexStrValue (OSCTXT *pctxt, OSUINT32 nocts, const OSOCTET *data) |
| This function encodes a variable of the XSD hexBinary type. | |
| EXTERNXML int | rtXmlEncIndent (OSCTXT *pctxt) |
| This function adds indentation whitespace to the output stream. | |
| EXTERNXML int | rtXmlEncInt (OSCTXT *pctxt, OSINT32 value, const OSUTF8CHAR *elemName, const OSUTF8CHAR *nsPrefix) |
| This function encodes a variable of the XSD integer type. | |
| EXTERNXML int | rtXmlEncIntValue (OSCTXT *pctxt, OSINT32 value) |
| This function encodes a variable of the XSD integer type. | |
| EXTERNXML int | rtXmlEncIntAttr (OSCTXT *pctxt, OSINT32 value, const OSUTF8CHAR *attrName, OSUINT16 attrNameLen) |
| This function encodes a variable of the XSD integer type as an attribute (name="value"). | |
| EXTERNXML int | rtXmlEncIntPattern (OSCTXT *pctxt, OSINT32 value, const OSUTF8CHAR *elemName, const OSUTF8CHAR *nsPrefix, const OSUTF8CHAR *pattern) |
| This function encodes a variable of the XSD integer type using a pattern to specify the format of the integer value. | |
| EXTERNXML int | rtXmlEncIntPatternValue (OSCTXT *pctxt, OSINT32 value, const OSUTF8CHAR *pattern) |
| EXTERNXML int | rtXmlEncInt64 (OSCTXT *pctxt, OSINT64 value, const OSUTF8CHAR *elemName, const OSUTF8CHAR *nsPrefix) |
| This function encodes a variable of the XSD integer type. | |
| EXTERNXML int | rtXmlEncInt64Value (OSCTXT *pctxt, OSINT64 value) |
| This function encodes a variable of the XSD integer type. | |
| EXTERNXML int | rtXmlEncInt64Attr (OSCTXT *pctxt, OSINT64 value, const OSUTF8CHAR *attrName, OSUINT16 attrNameLen) |
| This function encodes a variable of the XSD integer type as an attribute (name="value"). | |
| EXTERNXML int | rtXmlEncNamedBits (OSCTXT *pctxt, const OSBitMapItem *pBitMap, OSUINT32 nbits, const OSOCTET *pvalue, const OSUTF8CHAR *elemName, const OSUTF8CHAR *nsPrefix) |
| This function encodes a variable of the ASN.1 BIT STRING type. | |
| EXTERNXML int | rtXmlEncNamedBitsValue (OSCTXT *pctxt, const OSBitMapItem *pBitMap, OSUINT32 nbits, const OSOCTET *pvalue) |
| EXTERNXML int | rtXmlEncNSAttrs (OSCTXT *pctxt) |
| This function encodes namespace declaration attributes at the beginning of an XML document. | |
| EXTERNXML int | rtXmlEncReal10 (OSCTXT *pctxt, const OSUTF8CHAR *pvalue, const OSUTF8CHAR *elemName, const OSUTF8CHAR *nsPrefix) |
| This function encodes a variable of the ASN.1 REAL base 10 type. | |
| EXTERNXML 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. | |
| EXTERNXML int | rtXmlEncSoapArrayTypeAttr2 (OSCTXT *pctxt, const OSUTF8CHAR *name, size_t nameLen, const OSUTF8CHAR *value, size_t valueLen, size_t itemCount) |
| EXTERNXML int | rtXmlEncStartDocument (OSCTXT *pctxt) |
| This function encodes the XML header text at the beginning of an XML document. | |
| EXTERNXML int | rtXmlEncStartElement (OSCTXT *pctxt, const OSUTF8CHAR *elemName, const OSUTF8CHAR *nsPrefix, OSBOOL terminate) |
| This function encodes a start element tag value (<elemName>). | |
| EXTERNXML int | rtXmlEncStartElement2 (OSCTXT *pctxt, const OSUTF8CHAR *elemName, size_t elemLen, const OSUTF8CHAR *nsPrefix, size_t nsPrefixLen, OSBOOL terminate) |
| This function encodes a start element tag value (<elemName>). | |
| EXTERNXML int | rtXmlEncStartSoapEnv (OSCTXT *pctxt) |
| This function encodes a SOAP envelope start element tag. | |
| EXTERNXML int | rtXmlEncString (OSCTXT *pctxt, OSXMLSTRING *pxmlstr, const OSUTF8CHAR *elemName, const OSUTF8CHAR *nsPrefix) |
| This function encodes a variable of the XSD string type. | |
| EXTERNXML int | rtXmlEncStringValue (OSCTXT *pctxt, const OSUTF8CHAR *value) |
| This function encodes a variable of the XSD string type. | |
| EXTERNXML int | rtXmlEncStringValue2 (OSCTXT *pctxt, const OSUTF8CHAR *value, size_t valueLen) |
| This function encodes a variable of the XSD string type. | |
| EXTERNXML int | rtXmlEncUnicodeStr (OSCTXT *pctxt, const OSUNICHAR *value, OSUINT32 nchars, const OSUTF8CHAR *elemName, const OSUTF8CHAR *nsPrefix) |
| This function encodes a Unicode string value. | |
| EXTERNXML 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. | |
| EXTERNXML 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. | |
| EXTERNXML int | rtXmlEncUTF8Str (OSCTXT *pctxt, const OSUTF8CHAR *value, const OSUTF8CHAR *elemName, const OSUTF8CHAR *nsPrefix) |
| This function encodes a UTF-8 string value. | |
| EXTERNXML int | rtXmlEncUInt (OSCTXT *pctxt, OSUINT32 value, const OSUTF8CHAR *elemName, const OSUTF8CHAR *nsPrefix) |
| This function encodes a variable of the XSD unsigned integer type. | |
| EXTERNXML int | rtXmlEncUIntValue (OSCTXT *pctxt, OSUINT32 value) |
| This function encodes a variable of the XSD unsigned integer type. | |
| EXTERNXML int | rtXmlEncUIntAttr (OSCTXT *pctxt, OSUINT32 value, const OSUTF8CHAR *attrName, OSUINT16 attrNameLen) |
| This function encodes a variable of the XSD unsigned integer type as an attribute (name="value"). | |
| EXTERNXML int | rtXmlEncUInt64 (OSCTXT *pctxt, OSUINT64 value, const OSUTF8CHAR *elemName, const OSUTF8CHAR *nsPrefix) |
| This function encodes a variable of the XSD integer type. | |
| EXTERNXML int | rtXmlEncUInt64Value (OSCTXT *pctxt, OSUINT64 value) |
| This function encodes a variable of the XSD integer type. | |
| EXTERNXML int | rtXmlEncUInt64Attr (OSCTXT *pctxt, OSUINT64 value, const OSUTF8CHAR *attrName, OSUINT16 attrNameLen) |
| This function encodes a variable of the XSD integer type as an attribute (name="value"). | |
| EXTERNXML int | rtXmlEncXSIAttrs (OSCTXT *pctxt, OSBOOL needXSI) |
| This function encodes XML schema instance (XSI) attributes at the beginning of an XML document. | |
| EXTERNXML 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'. | |
| EXTERNXML OSBOOL | rtXmlStrCmpAsc (const OSUTF8CHAR *text1, const char *text2) |
| EXTERNXML OSBOOL | rtXmlStrnCmpAsc (const OSUTF8CHAR *text1, const char *text2, size_t len) |
| EXTERNXML 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. | |
| EXTERNXML int | rtXmlGetIndent (OSCTXT *pctxt) |
| This function returns current XML output indent value. | |
| EXTERNXML int | rtXmlGetIndentChar (OSCTXT *pctxt) |
| This function returns current XML output indent character value (default is space). | |
| EXTERNXML int | rtXmlSetDigitsFacets (OSCTXT *pctxt, int totalDigits, int fractionDigits) |
| EXTERNXML int | rtXmlSetEncDocHdr (OSCTXT *pctxt, OSBOOL value) |
| This function sets the option to add the XML document header (i.e. | |
| EXTERNXML int | rtXmlSetEncoding (OSCTXT *pctxt, OSXMLEncoding encoding) |
| This function sets the XML output encoding to the given value. | |
| EXTERNXML int | rtXmlSetFormatting (OSCTXT *pctxt, OSBOOL doFormatting) |
| This function sets XML output formatting to the given value. | |
| EXTERNXML int | rtXmlSetIndent (OSCTXT *pctxt, OSUINT8 indent) |
| This function sets XML output indent to the given value. | |
| EXTERNXML int | rtXmlSetIndentChar (OSCTXT *pctxt, char indentChar) |
| This function sets XML output indent character to the given value. | |
| EXTERNXML int | rtXmlSetSchemaLocation (OSCTXT *pctxt, const OSUTF8CHAR *schemaLocation) |
| This function sets the XML Schema Instance (xsi) schema location attribute to be added to an encoded document. | |
| EXTERNXML int | rtXmlSetNoNSSchemaLocation (OSCTXT *pctxt, const OSUTF8CHAR *schemaLocation) |
| This function sets the XML Schema Instance (xsi) no namespace schema location attribute to be added to an encoded document. | |
| EXTERNXML int | rtXmlSetXSITypeAttr (OSCTXT *pctxt, const OSUTF8CHAR *xsiType) |
| This function sets the XML Schema Instance (xsi) type attribute value. | |
| EXTERNXML int | rtXmlMatchHexStr (OSCTXT *pctxt, size_t minLength, size_t maxLength) |
| This function tests the context buffer for containing a correct hexadecimal string. | |
| EXTERNXML int | rtXmlMatchBase64Str (OSCTXT *pctxt, size_t minLength, size_t maxLength) |
| This function tests the context buffer for containing a correct base64 string. | |
| EXTERNXML int | rtXmlMatchDate (OSCTXT *pctxt) |
| This function tests the context buffer for containing a correct date string. | |
| EXTERNXML int | rtXmlMatchTime (OSCTXT *pctxt) |
| This function tests the context buffer for containing a correct time string. | |
| EXTERNXML int | rtXmlMatchDateTime (OSCTXT *pctxt) |
| This function tests the context buffer for containing a correct dateTime string. | |
| EXTERNXML int | rtXmlMatchGYear (OSCTXT *pctxt) |
| This function tests the context buffer for containing a correct gYear string. | |
| EXTERNXML int | rtXmlMatchGYearMonth (OSCTXT *pctxt) |
| This function tests the context buffer for containing a correct gYearMonth string. | |
| EXTERNXML int | rtXmlMatchGMonth (OSCTXT *pctxt) |
| This function tests the context buffer for containing a correct gMonth string. | |
| EXTERNXML int | rtXmlMatchGMonthDay (OSCTXT *pctxt) |
| This function tests the context buffer for containing a correct gMonthDay string. | |
| EXTERNXML int | rtXmlMatchGDay (OSCTXT *pctxt) |
| This function tests the context buffer for containing a correct gDay string. | |
| EXTERNXML OSBOOL | rtXmlCmpBase64Str (OSCTXT *pctxt, OSUINT32 nocts1, const OSOCTET *data1, const OSUTF8CHAR *data2) |
| EXTERNXML OSBOOL | rtXmlCmpHexStr (OSCTXT *pctxt, OSUINT32 nocts1, const OSOCTET *data1, const OSUTF8CHAR *data2) |
| EXTERNXML int | rtSaxGetAttributeID (OSCTXT *pctxt, const OSUTF8CHAR *attrName, size_t nAttr, const OSUTF8CHAR *attrNames[], OSUINT32 attrPresent[]) |
| EXTERNXML int | rtSaxGetElemID (OSINT16 *pState, OSINT16 prevElemIdx, const OSUTF8CHAR *localName, const OSSAXElemTableRec idtab[], const int *fstab, int fstabRows, int fstabCols) |
| This function looks up a sequence element name in the given element info array. | |
| EXTERNXML int | rtSaxGetElemID8 (OSINT16 *pState, OSINT16 prevElemIdx, const OSUTF8CHAR *localName, const OSSAXElemTableRec idtab[], const OSINT8 *fstab, int fstabRows, int fstabCols) |
This function is a space optimized version of rtSaxGetElemID. | |
| EXTERNXML int | rtSaxFindElemID (OSINT16 *pState, OSINT16 prevElemIdx, const OSUTF8CHAR *localName, const OSSAXElemTableRec idtab[], const int *fstab, int fstabRows, int fstabCols) |
| EXTERNXML int | rtSaxFindElemID8 (OSINT16 *pState, OSINT16 prevElemIdx, const OSUTF8CHAR *localName, const OSSAXElemTableRec idtab[], const OSINT8 *fstab, int fstabRows, int fstabCols) |
| EXTERNXML OSBOOL | rtSaxIsEmptyBuffer (OSCTXT *pctxt, int whitespace) |
| This function checks is the buffer in the context empty or not. | |
| EXTERNXML int | rtSaxLookupElemID (OSCTXT *pctxt, OSINT16 *pState, OSINT16 prevElemIdx, const OSUTF8CHAR *localName, const OSUTF8CHAR *qName, const OSSAXElemTableRec idtab[], const int *fstab, int fstabRows, int fstabCols) |
| EXTERNXML int | rtSaxLookupElemID8 (OSCTXT *pctxt, OSINT16 *pState, OSINT16 prevElemIdx, const OSUTF8CHAR *localName, const OSUTF8CHAR *qName, const OSSAXElemTableRec idtab[], const OSINT8 *fstab, int fstabRows, int fstabCols) |
| EXTERNXML int | rtSaxStrListParse (OSCTXT *pctxt, OSRTMEMBUF *pMemBuf, OSRTDList *pvalue) |
| This function parses the list of strings. | |
| EXTERNXML int | rtSaxStrListMatch (OSCTXT *pctxt) |
| This function mathes the list of strings. | |
| EXTERNXML OSBOOL | rtSaxTestFinal (OSINT16 state, OSINT16 currElemIdx, const int *fstab, int fstabRows, int fstabCols) |
| EXTERNXML OSBOOL | rtSaxTestFinal8 (OSINT16 state, OSINT16 currElemIdx, const OSINT8 *fstab, int fstabRows, int fstabCols) |
| EXTERNXML int | rtSaxSetSkipLevelToCurrent (OSCTXT *pctxt, int stat) |
| EXTERNXML OSUINT32 | rtSaxSetMaxErrors (OSCTXT *pctxt, OSUINT32 maxErrors) |
| EXTERNXML OSUINT32 | rtSaxGetMaxErrors (OSCTXT *pctxt) |
| EXTERNXML int | rtSaxTestAttributesPresent (OSCTXT *pctxt, const OSUINT32 *attrPresent, const OSUINT32 *reqAttrMask, const OSUTF8CHAR *const *attrNames, size_t numOfAttrs, const char *parentTypeName) |
| EXTERNXML OSBOOL | rtSaxIncErrors (OSCTXT *pctxt) |
| EXTERNXML int | rtSaxReportUnexpAttrs (OSCTXT *pctxt, const OSUTF8CHAR *const *attrs, const char *typeName) |
| EXTERNXML int | rtXmlWriteToFile (OSCTXT *pctxt, const char *filename) |
| This function writes the encoded XML message stored in the context message buffer out to a file. | |
| EXTERNXML void | rtXmlTreatWhitespaces (OSCTXT *pctxt, int whiteSpaceType) |
| EXTERNXML void | rtErrXmlInit (void) |
| 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) |
Detailed Description
XML low-level C encode/decode functions.
Definition in file osrtxml.h.
Define Documentation
|
|
Value: rtxUTF8StrnEqual \ (xnamefrag.mQName.value, OSUTF8(qnametext), xnamefrag.mQName.length) |
|
|
Value: OSRTSAFEPUTCHAR (pctxt, '>'); \ pctxt->flags &= ~OSTERMSTART; \ pctxt->state = OSXMLSTART; |
