49 #include "rtxsrc/rtxCommon.h" 50 #include "rtxmlsrc/rtSaxDefs.h" 51 #include "rtxsrc/rtxDList.h" 52 #include "rtxsrc/rtxMemBuf.h" 53 #include "rtxmlsrc/rtXmlExternDefs.h" 54 #include "rtxmlsrc/rtXmlErrCodes.h" 55 #include "rtxmlsrc/rtXmlNamespace.h" 59 #define OSUPCASE 0x00008000 60 #define OSTERMSTART 0x00004000 61 #define OSEMPTYELEM 0x00002000 62 #define OSQUALATTR 0x00001000 63 #define OSXMLFRAG 0x00000800 64 #define OSXMLNSSET 0x00000400 65 #define OSXMLC14N 0x00000200 68 #define OSXSIATTR 0x00000100 69 #define OSXMLNOCMPNS 0x00000080 70 #define OSXSINIL 0x00000040 71 #define OSHASDEFAULT 0x00000010 75 #define OSASN1XER 0x00000008 88 OSSOAPNONE, OSSOAPHEADER, OSSOAPBODY, OSSOAPFAULT
107 const OSUTF8CHAR* value;
164 OSXMLNSI_UNQUALIFIED = 0,
165 OSXMLNSI_UNKNOWN = -1,
166 OSXMLNSI_UNCHECKED = -2,
170 OSXMLNSI_SOAP_ENVELOPE = -6,
176 #define OSXMLFRAGSEQUAL(frag1,frag2) \ 177 (frag1.length==frag2.length && !memcmp(frag1.value,frag2.value,frag1.length)) 179 #define OSXMLQNAMEEQUALS(xnamefrag,qnametext) rtxUTF8StrnEqual \ 180 (xnamefrag.mQName.value, OSUTF8(qnametext), xnamefrag.mQName.length) 182 #define OSXMLSETUTF8DECPTR(pctxt,str) \ 183 rtxInitContextBuffer (pctxt, OSRTSAFECONSTCAST (OSOCTET*, str), \ 186 #define IS_XMLNSATTR(name) \ 187 ((OSUTF8LEN(name) >= 5) && name[0] == 'x' && name[1] == 'm' && \ 188 name[2] == 'l' && name[3] == 'n' && name[4] == 's') 190 #define IS_XSIATTR(name) \ 191 ((OSUTF8LEN(name) >= 4) && name[0] == 'x' && name[1] == 's' && \ 192 name[2] == 'i' && name[3] == ':') 196 static const char OSXMLHDRUTF8 [] =
"UTF-8";
197 static const char OSXMLHDRUTF16 [] =
"UTF-16";
198 static const char OSXMLHDRUTF16BE [] =
"UTF-16BE";
199 static const char OSXMLHDRUTF16LE [] =
"UTF-16LE";
200 static const char OSXMLHDRLATIN1 [] =
"ISO-8859-1";
207 OSFreeCtxtAppInfoPtr pFreeFunc;
208 OSResetCtxtAppInfoPtr pResetFunc;
209 OSUTF8CHAR* schemaLocation;
210 OSUTF8CHAR* noNSSchemaLoc;
211 OSUTF8CHAR* xsiTypeAttr;
212 OSXMLEncoding encoding;
213 OSRTDList namespaceList;
214 OSRTDList encodedNSList;
215 OSRTDList sortedAttrList;
216 OSXMLNSPfxLinkStack nsPfxLinkStack;
217 OSXMLNSURITable nsURITable;
221 OSUINT32 maxSaxErrors;
224 OSBOOL mbCdataProcessed;
228 const OSUTF8CHAR* encodingStr;
229 OSXMLBOM byteOrderMark;
230 struct OSXMLReader* pXmlPPReader;
232 OSRTBuffer savedBuffer;
233 OSRTFLAGS savedFlags;
235 OSSIZE attrsBuffSize;
266 const OSUTF8CHAR* nsPrefix;
267 const OSUTF8CHAR* ncName;
270 struct OSSAXHandlerBase;
273 OSINT8 integerMaxDigits;
287 #define OSXMLINDENT 3 290 #define rtXmlErrAddStrParm rtxErrAddUniStrParm 292 #define rtXmlErrAddStrParm rtxErrAddStrParm 299 OSXMLWSM_PRESERVE = 0,
310 #ifndef rtXmlInitContext 335 (OSCTXT* pctxt,
const OSOCTET* key, OSSIZE keylen);
357 EXTERNXML OSBOOL rtXmlCmpQName
358 (
const OSUTF8CHAR* qname1,
const OSUTF8CHAR* name2,
const OSUTF8CHAR* nsPrefix2);
360 EXTERNXML
int rtXmlGetBase64StrDecodedLen
361 (
const OSUTF8CHAR* inpdata, OSSIZE srcDataSize,
362 OSSIZE* pNumOcts, OSSIZE* pSrcDataLen);
394 const OSUTF8CHAR* inpdata,
421 OSOCTET* pvalue, OSUINT32* pnocts,
448 OSOCTET* pvalue, OSSIZE* pnocts,
478 OSOCTET* pvalue, OSUINT32* pnocts,
479 OSSIZE bufSize, OSSIZE srcDataLen);
506 OSOCTET* pvalue, OSSIZE* pnocts,
507 OSSIZE bufSize, OSSIZE srcDataLen);
531 (OSCTXT* pctxt,
const OSUTF8CHAR** ppvalue);
543 EXTERNXML
int rtXmlDecBool (OSCTXT* pctxt, OSBOOL* pvalue);
557 EXTERNXML
int rtXmlDecDate (OSCTXT* pctxt, OSXSDDateTime* pvalue);
577 EXTERNXML
int rtXmlDecTime (OSCTXT* pctxt, OSXSDDateTime* pvalue);
724 (OSCTXT* pctxt, OSUTF8CHAR* outdata, OSSIZE max_len);
761 const OSUTF8CHAR* inpdata,
787 OSOCTET* pvalue, OSUINT32* pnocts,
813 OSOCTET* pvalue, OSSIZE* pnocts,
816 EXTERNXML
int rtXmlDecHexStrValue (OSCTXT* pctxt,
817 const OSUTF8CHAR*
const inpdata, OSSIZE nbytes, OSOCTET* pvalue,
818 OSUINT32* pnbits, OSINT32 bufsize);
820 EXTERNXML
int rtXmlDecHexStrValue64 (OSCTXT* pctxt,
821 const OSUTF8CHAR*
const inpdata, OSSIZE nbytes, OSOCTET* pvalue,
822 OSSIZE* pnbits, OSSIZE bufsize);
837 EXTERNXML
int rtXmlDecGYear (OSCTXT* pctxt, OSXSDDateTime* pvalue);
865 EXTERNXML
int rtXmlDecGMonth (OSCTXT* pctxt, OSXSDDateTime* pvalue);
893 EXTERNXML
int rtXmlDecGDay (OSCTXT* pctxt, OSXSDDateTime* pvalue);
907 EXTERNXML
int rtXmlDecInt (OSCTXT* pctxt, OSINT32* pvalue);
922 EXTERNXML
int rtXmlDecInt8 (OSCTXT* pctxt, OSINT8* pvalue);
936 EXTERNXML
int rtXmlDecInt16 (OSCTXT* pctxt, OSINT16* pvalue);
950 EXTERNXML
int rtXmlDecInt64 (OSCTXT* pctxt, OSINT64* pvalue);
964 EXTERNXML
int rtXmlDecUInt (OSCTXT* pctxt, OSUINT32* pvalue);
979 EXTERNXML
int rtXmlDecUInt8 (OSCTXT* pctxt, OSUINT8* pvalue);
1028 (OSCTXT* pctxt,
const OSUTF8CHAR* attrName,
const OSUTF8CHAR* attrValue,
1029 OSRTDList* pNSAttrs,
const OSUTF8CHAR* nsTable[], OSUINT32 nsTableRowCount);
1056 (OSCTXT* pctxt,
const OSUTF8CHAR* qname,
const OSUTF8CHAR** prefix);
1071 (OSCTXT* pctxt,
const OSUTF8CHAR* attrName,
const OSUTF8CHAR* attrValue);
1087 EXTERNXML
int rtXmlDecXSIAttrs (OSCTXT* pctxt,
const OSUTF8CHAR*
const* attrs,
1088 const char* typeName);
1106 EXTERNXML
int rtXmlDecXmlStr (OSCTXT* pctxt, OSXMLSTRING* outdata);
1161 EXTERNXML
int rtXmlEncAny (OSCTXT* pctxt, OSXMLSTRING* pvalue,
1162 const OSUTF8CHAR* elemName,
1163 OSXMLNamespace* pNS);
1165 EXTERNXML
int rtXmlEncAnyStr
1166 (OSCTXT* pctxt,
const OSUTF8CHAR* pvalue,
1167 const OSUTF8CHAR* elemName, OSXMLNamespace* pNS);
1192 EXTERNXML
int rtXmlEncAnyAttr (OSCTXT* pctxt, OSRTDList* pAnyAttrList);
1209 const OSOCTET* value,
1210 const OSUTF8CHAR* elemName,
1211 OSXMLNamespace* pNS);
1227 (OSCTXT* pctxt, OSUINT32 nocts,
const OSOCTET* value,
1228 const OSUTF8CHAR* attrName, OSSIZE attrNameLen);
1242 const OSOCTET* value);
1268 EXTERNXML
int rtXmlEncBigInt (OSCTXT* pctxt,
const OSUTF8CHAR* value,
1269 const OSUTF8CHAR* elemName,
1270 OSXMLNamespace* pNS);
1287 const OSUTF8CHAR* attrName, OSSIZE attrNameLen);
1322 const OSOCTET* value,
1323 const OSUTF8CHAR* elemName,
1324 OSXMLNamespace* pNS);
1345 const OSOCTET* value,
1347 const OSOCTET* extValue,
1348 const OSUTF8CHAR* elemName,
1349 OSXMLNamespace* pNS);
1364 const OSOCTET* data);
1380 EXTERNXML
int rtXmlEncBool (OSCTXT* pctxt, OSBOOL value,
1381 const OSUTF8CHAR* elemName,
1382 OSXMLNamespace* pNS);
1408 const OSUTF8CHAR* attrName,
1409 OSSIZE attrNameLen);
1434 EXTERNXML
int rtXmlEncComment (OSCTXT* pctxt,
const OSUTF8CHAR* comment);
1453 EXTERNXML
int rtXmlEncDate (OSCTXT* pctxt,
const OSXSDDateTime* pvalue,
1454 const OSUTF8CHAR* elemName,
1455 OSXMLNamespace* pNS);
1471 (OSCTXT* pctxt,
const OSXSDDateTime* pvalue);
1496 EXTERNXML
int rtXmlEncTime (OSCTXT* pctxt,
const OSXSDDateTime* pvalue,
1497 const OSUTF8CHAR* elemName,
1498 OSXMLNamespace* pNS);
1513 (OSCTXT* pctxt,
const OSXSDDateTime* pvalue);
1530 EXTERNXML
int rtXmlEncDateTime (OSCTXT* pctxt,
const OSXSDDateTime* pvalue,
1531 const OSUTF8CHAR* elemName,
1532 OSXMLNamespace* pNS);
1546 (OSCTXT* pctxt,
const OSXSDDateTime* pvalue);
1563 const OSUTF8CHAR* elemName,
1564 OSXMLNamespace* pNS,
1565 const OSDecimalFmt* pFmtSpec);
1580 const OSUTF8CHAR* attrName,
1582 const OSDecimalFmt* pFmtSpec);
1602 const OSDecimalFmt* pFmtSpec,
1603 char* pDestBuf, OSSIZE destBufSize);
1620 const OSUTF8CHAR* elemName,
1621 OSXMLNamespace* pNS,
1622 const OSDoubleFmt* pFmtSpec);
1637 const OSUTF8CHAR* attrName,
1639 const OSDoubleFmt* pFmtSpec);
1656 const OSDoubleFmt* pFmtSpec,
1657 int defaultPrecision);
1675 const OSDoubleFmt* pFmtSpec,
1676 int defaultPrecision);
1691 const OSUTF8CHAR* elemName,
1692 OSXMLNamespace* pNS,
1693 OSRTDList* pNSAttrs,
1718 const OSUTF8CHAR* elemName,
1719 OSXMLNamespace* pNS);
1760 const OSUTF8CHAR* elemName,
1761 OSXMLNamespace* pNS,
1762 const OSDoubleFmt* pFmtSpec);
1777 const OSUTF8CHAR* attrName,
1779 const OSDoubleFmt* pFmtSpec);
1795 EXTERNXML
int rtXmlEncGYear (OSCTXT* pctxt,
const OSXSDDateTime* pvalue,
1796 const OSUTF8CHAR* elemName,
1797 OSXMLNamespace* pNS);
1814 const OSUTF8CHAR* elemName,
1815 OSXMLNamespace* pNS);
1831 EXTERNXML
int rtXmlEncGMonth (OSCTXT* pctxt,
const OSXSDDateTime* pvalue,
1832 const OSUTF8CHAR* elemName,
1833 OSXMLNamespace* pNS);
1850 const OSUTF8CHAR* elemName,
1851 OSXMLNamespace* pNS);
1867 EXTERNXML
int rtXmlEncGDay (OSCTXT* pctxt,
const OSXSDDateTime* pvalue,
1868 const OSUTF8CHAR* elemName,
1869 OSXMLNamespace* pNS);
1883 (OSCTXT* pctxt,
const OSXSDDateTime* pvalue);
1897 (OSCTXT* pctxt,
const OSXSDDateTime* pvalue);
1911 (OSCTXT* pctxt,
const OSXSDDateTime* pvalue);
1925 (OSCTXT* pctxt,
const OSXSDDateTime* pvalue);
1939 (OSCTXT* pctxt,
const OSXSDDateTime* pvalue);
1956 const OSOCTET* value,
1957 const OSUTF8CHAR* elemName,
1958 OSXMLNamespace* pNS);
1973 (OSCTXT* pctxt, OSUINT32 nocts,
const OSOCTET* value,
1974 const OSUTF8CHAR* attrName, OSSIZE attrNameLen);
1989 const OSOCTET* data);
2016 EXTERNXML
int rtXmlEncInt (OSCTXT* pctxt, OSINT32 value,
2017 const OSUTF8CHAR* elemName,
2018 OSXMLNamespace* pNS);
2045 const OSUTF8CHAR* attrName,
2046 OSSIZE attrNameLen);
2064 const OSUTF8CHAR* elemName,
2065 OSXMLNamespace* pNS,
2066 const OSUTF8CHAR* pattern);
2068 EXTERNXML
int rtXmlEncIntPatternValue (OSCTXT* pctxt, OSINT32 value,
2069 const OSUTF8CHAR* pattern);
2071 EXTERNXML
int rtXmlEncUIntPattern (OSCTXT* pctxt, OSUINT32 value,
2072 const OSUTF8CHAR* elemName,
2073 OSXMLNamespace* pNS,
2074 const OSUTF8CHAR* pattern);
2076 EXTERNXML
int rtXmlEncUIntPatternValue (OSCTXT* pctxt, OSUINT32 value,
2077 const OSUTF8CHAR* pattern);
2094 const OSUTF8CHAR* elemName,
2095 OSXMLNamespace* pNS);
2097 EXTERNXML
int rtXmlEncInt64Pattern (OSCTXT* pctxt, OSINT64 value,
2098 const OSUTF8CHAR* elemName,
2099 OSXMLNamespace* pNS,
2100 const OSUTF8CHAR* pattern);
2114 EXTERNXML
int rtXmlEncInt64PatternValue (OSCTXT* pctxt, OSINT64 value,
2115 const OSUTF8CHAR* pattern);
2131 const OSUTF8CHAR* attrName,
2132 OSSIZE attrNameLen);
2153 (OSCTXT* pctxt,
const OSBitMapItem* pBitMap, OSSIZE nbits,
2154 const OSOCTET* pvalue,
const OSUTF8CHAR* elemName, OSXMLNamespace* pNS);
2156 EXTERNXML
int rtXmlEncNamedBitsValue
2157 (OSCTXT* pctxt,
const OSBitMapItem* pBitMap, OSSIZE nbits,
2158 const OSOCTET* pvalue);
2187 #define rtxPrintNSAttrs(name,data) rtXmlPrintNSAttrs(name,&data) 2206 (OSCTXT *pctxt,
const OSUTF8CHAR *pvalue,
const OSUTF8CHAR* elemName,
2207 OSXMLNamespace* pNS);
2223 (OSCTXT* pctxt,
const OSUTF8CHAR* name,
const OSUTF8CHAR* value,
2226 EXTERNXML
int rtXmlEncSoapArrayTypeAttr2
2227 (OSCTXT* pctxt,
const OSUTF8CHAR* name, OSSIZE nameLen,
2228 const OSUTF8CHAR* value, OSSIZE valueLen, OSSIZE itemCount);
2270 const OSUTF8CHAR* elemName,
2271 OSXMLNamespace* pNS,
2272 OSRTDList* pNSAttrs,
2300 (OSCTXT* pctxt, OSXMLSOAPMsgType msgtype);
2315 OSXMLSTRING* pxmlstr,
2316 const OSUTF8CHAR* elemName,
2317 OSXMLNamespace* pNS);
2341 (OSCTXT* pctxt,
const OSUTF8CHAR* value, OSSIZE valueLen);
2371 const OSUNICHAR* value,
2373 const OSUTF8CHAR* elemName,
2374 OSXMLNamespace* pNS);
2388 const OSUTF8CHAR* name,
2389 const OSUTF8CHAR* value);
2405 const OSUTF8CHAR* name, OSSIZE nameLen,
2406 const OSUTF8CHAR* value, OSSIZE valueLen);
2422 const OSUTF8CHAR* value,
2423 const OSUTF8CHAR* elemName,
2424 OSXMLNamespace* pNS);
2439 EXTERNXML
int rtXmlEncUInt (OSCTXT* pctxt, OSUINT32 value,
2440 const OSUTF8CHAR* elemName,
2441 OSXMLNamespace* pNS);
2469 const OSUTF8CHAR* attrName,
2470 OSSIZE attrNameLen);
2488 const OSUTF8CHAR* elemName,
2489 OSXMLNamespace* pNS);
2491 EXTERNXML
int rtXmlEncUInt64Pattern (OSCTXT* pctxt, OSUINT64 value,
2492 const OSUTF8CHAR* elemName,
2493 OSXMLNamespace* pNS,
2494 const OSUTF8CHAR* pattern);
2509 EXTERNXML
int rtXmlEncUInt64PatternValue (OSCTXT* pctxt, OSUINT64 value,
2510 const OSUTF8CHAR* pattern);
2526 const OSUTF8CHAR* attrName,
2527 OSSIZE attrNameLen);
2575 const OSUTF8CHAR* typeNsUri,
2576 const OSUTF8CHAR* typeName);
2600 EXTERNXML OSBOOL rtXmlStrCmpAsc (
const OSUTF8CHAR* text1,
const char* text2);
2602 EXTERNXML OSBOOL rtXmlStrnCmpAsc (
const OSUTF8CHAR* text1,
2603 const char* text2, OSSIZE len);
2605 #define rtXmlFinalizeMemBuf(pMemBuf) do { \ 2606 (pMemBuf)->pctxt->buffer.data = (pMemBuf)->buffer + (pMemBuf)->startidx; \ 2607 (pMemBuf)->pctxt->buffer.size = \ 2608 ((pMemBuf)->usedcnt - (pMemBuf)->startidx); \ 2609 (pMemBuf)->pctxt->buffer.dynamic = FALSE; \ 2610 (pMemBuf)->pctxt->buffer.byteIndex = 0; \ 2611 rtxMemBufReset (pMemBuf); \ 2640 (OSCTXT* pctxt, OSOCTET* bufaddr, OSSIZE bufsiz);
2650 #define rtXmlGetEncBufPtr(pctxt) (pctxt)->buffer.data 2657 #define rtXmlGetEncBufLen(pctxt) (pctxt)->buffer.byteIndex 2737 EXTERNXML
int rtXmlSetDigitsFacets
2738 (OSCTXT* pctxt,
int totalDigits,
int fractionDigits);
2762 (OSCTXT* pctxt,
const OSUTF8CHAR* encodingStr);
2836 (OSCTXT* pctxt,
const OSUTF8CHAR* schemaLocation);
2850 (OSCTXT* pctxt,
const OSUTF8CHAR* schemaLocation);
2884 #include "rtxmlsrc/rtXmlNamespace.h" 2900 (OSCTXT* pctxt, OSSIZE minLength, OSSIZE maxLength);
2916 (OSCTXT* pctxt, OSSIZE minLength, OSSIZE maxLength);
3035 (OSCTXT* pctxt,
const OSUTF8CHAR* localName,
const OSUTF8CHAR* prefix);
3047 const OSOCTET* data1,
3048 const OSUTF8CHAR* data2);
3060 const OSOCTET* data1,
3061 const OSUTF8CHAR* data2);
3063 EXTERNXML OSBOOL rtXmlCmpHexChar (OSUTF8CHAR ch, OSOCTET hexval);
3065 EXTERNXML
int rtSaxGetAttributeID (
const OSUTF8CHAR* attrName,
3067 const OSUTF8CHAR* attrNames[],
3068 OSUINT32 attrPresent[]);
3083 (
const OSUTF8CHAR* attrName,
const OSUTF8CHAR*
const* attrs);
3101 (OSINT16* pState, OSINT16 prevElemIdx,
const OSUTF8CHAR* localName,
3105 const OSSAXElemTableRec idtab[],
const OSINT16* fstab,
3106 OSINT16 fstabRows, OSINT16 fstabCols);
3124 (OSINT16* pState, OSINT16 prevElemIdx,
const OSUTF8CHAR* localName,
3128 const OSSAXElemTableRec idtab[],
const OSINT8* fstab,
3129 OSINT16 fstabRows, OSINT16 fstabCols);
3131 EXTERNXML OSINT16 rtSaxFindElemID
3132 (OSINT16* pState, OSINT16 prevElemIdx,
const OSUTF8CHAR* localName,
3136 const OSSAXElemTableRec idtab[],
const OSINT16* fstab,
3137 OSINT16 fstabRows, OSINT16 fstabCols);
3139 EXTERNXML OSINT16 rtSaxFindElemID8
3140 (OSINT16* pState, OSINT16 prevElemIdx,
const OSUTF8CHAR* localName,
3144 const OSSAXElemTableRec idtab[],
const OSINT8* fstab,
3145 OSINT16 fstabRows, OSINT16 fstabCols);
3166 EXTERNXML OSINT16 rtSaxLookupElemID
3167 (OSCTXT* pctxt, OSINT16* pState, OSINT16 prevElemIdx,
3168 const OSUTF8CHAR* localName,
const OSUTF8CHAR* qName,
3172 const OSSAXElemTableRec idtab[],
const OSINT16* fstab,
3173 OSINT16 fstabRows, OSINT16 fstabCols);
3175 EXTERNXML OSINT16 rtSaxLookupElemID8
3176 (OSCTXT* pctxt, OSINT16* pState, OSINT16 prevElemIdx,
3177 const OSUTF8CHAR* localName,
const OSUTF8CHAR* qName,
3181 const OSSAXElemTableRec idtab[],
const OSINT8* fstab,
3182 OSINT16 fstabRows, OSINT16 fstabCols);
3196 (OSCTXT* pctxt, OSRTMEMBUF *pMemBuf, OSRTDList* pvalue);
3217 (OSCTXT* pctxt,
const OSUTF8CHAR*
const* attrs, OSUINT16** order);
3228 EXTERNXML OSBOOL rtSaxTestFinal (OSINT16 state,
3229 OSINT16 currElemIdx,
3231 int fstabRows,
int fstabCols);
3233 EXTERNXML OSBOOL rtSaxTestFinal8 (OSINT16 state,
3234 OSINT16 currElemIdx,
3235 const OSINT8* fstab,
3236 int fstabRows,
int fstabCols);
3238 EXTERNXML
int rtSaxSetSkipLevelToCurrent (OSCTXT* pctxt,
int stat);
3240 EXTERNXML OSUINT32 rtSaxSetMaxErrors (OSCTXT* pctxt, OSUINT32 maxErrors);
3242 EXTERNXML OSUINT32 rtSaxGetMaxErrors (OSCTXT* pctxt);
3244 EXTERNXML
int rtSaxTestAttributesPresent (OSCTXT* pctxt,
3245 const OSUINT32* attrPresent,
const OSUINT32* reqAttrMask,
3246 const OSUTF8CHAR*
const* attrNames, OSSIZE numOfAttrs,
3247 const char* parentTypeName);
3249 EXTERNXML OSBOOL rtSaxIncErrors (OSCTXT* pctxt);
3251 EXTERNXML
int rtSaxReportUnexpAttrs (OSCTXT* pctxt,
3252 const OSUTF8CHAR*
const* attrs,
3253 const char* typeName);
3269 EXTERNXML
int rtXmlWriteUTF16ToFile (OSCTXT* pctxt,
const char* filename);
3271 EXTERNXML
void rtXmlTreatWhitespaces (OSCTXT* pctxt,
int whiteSpaceType);
3273 EXTERNXML
int rtXmlCheckBuffer (OSCTXT* pctxt, OSSIZE byte_count);
3279 EXTERNXML
void rtErrXmlInit (OSVOIDARG);
3280 EXTERNXML
int rtXmlPutChar (OSCTXT* pctxt,
const OSUTF8CHAR value);
3281 EXTERNXML
int rtXmlWriteChars
3282 (OSCTXT* pctxt,
const OSUTF8CHAR* value, OSSIZE len);
3303 EXTERNXML
int rtXmlpDecAny (OSCTXT* pctxt,
const OSUTF8CHAR** pvalue);
3318 EXTERNXML
int rtXmlpDecAny2 (OSCTXT* pctxt, OSUTF8CHAR** pvalue);
3337 (OSCTXT* pctxt,
const OSUTF8CHAR** ppAttrStr, OSSIZE attrIndex);
3386 (OSCTXT* pctxt, OSOCTET* pvalue, OSUINT32* pnocts, OSSIZE bufsize);
3412 (OSCTXT* pctxt, OSOCTET* pvalue, OSSIZE* pnocts, OSSIZE bufsize);
3438 EXTERNXML
int rtXmlpDecBigInt (OSCTXT* pctxt,
const OSUTF8CHAR** pvalue);
3457 (OSCTXT* pctxt, OSOCTET* pvalue, OSUINT32* pnbits, OSUINT32 bufsize);
3480 (OSCTXT* pctxt, OSOCTET* pvalue, OSSIZE* pnbits, OSSIZE bufsize);
3501 OSUINT32* pnbits, OSOCTET** ppextdata, OSUINT32 bufsize);
3526 OSSIZE* pnbits, OSOCTET** ppextdata, OSSIZE bufsize);
3540 EXTERNXML
int rtXmlpDecBool (OSCTXT* pctxt, OSBOOL* pvalue);
3554 EXTERNXML
int rtXmlpDecDate (OSCTXT* pctxt, OSXSDDateTime* pvalue);
3589 int totalDigits,
int fractionDigits);
3605 #define OSXMLREALENC_OBJSYS 0x1F 3606 #define OSXMLREALENC_BXER 0x10 3607 #define OSXMLREALENC_EXERMODS 0x1B 3608 #define OSXMLREALENC_EXERDECIMAL 0x03 3741 (OSCTXT* pctxt,
const OSUNICHAR** ppdata, OSSIZE* pnchars);
3773 (OSCTXT* pctxt, OSUTF8CHAR* out, OSSIZE max_len);
3787 EXTERNXML
int rtXmlpDecGDay (OSCTXT* pctxt, OSXSDDateTime* pvalue);
3829 EXTERNXML
int rtXmlpDecGYear (OSCTXT* pctxt, OSXSDDateTime* pvalue);
3870 (OSCTXT* pctxt, OSOCTET* pvalue, OSUINT32* pnocts, OSSIZE bufsize);
3896 (OSCTXT* pctxt, OSOCTET* pvalue, OSSIZE* pnocts, OSSIZE bufsize);
3910 EXTERNXML
int rtXmlpDecInt (OSCTXT* pctxt, OSINT32* pvalue);
3925 EXTERNXML
int rtXmlpDecInt8 (OSCTXT* pctxt, OSINT8* pvalue);
3972 (OSCTXT* pctxt,
const OSBitMapItem* pBitMap,
3973 OSOCTET* pvalue, OSUINT32* pnbits, OSUINT32 bufsize);
3992 (OSCTXT* pctxt,
const OSBitMapItem* pBitMap,
3993 OSOCTET* pvalue, OSSIZE* pnbits, OSSIZE bufsize);
4031 EXTERNXML
int rtXmlpDecTime (OSCTXT* pctxt, OSXSDDateTime* pvalue);
4045 EXTERNXML
int rtXmlpDecUInt (OSCTXT* pctxt, OSUINT32* pvalue);
4090 #if defined OSSIZE_IS_32BITS 4091 #define rtXmlpDecSize(pctxt, pvalue) rtXmlpDecUInt(pctxt, pvalue) 4092 #elif defined OSSIZE_IS_64BITS 4093 #define rtXmlpDecSize(pctxt, pvalue) rtXmlpDecUInt64(pctxt, pvalue) 4179 const OSUTF8CHAR** ppAttrValue);
4206 OSSIZE nAttr,
const OSXMLAttrDescr attrNames[], OSUINT32 attrPresent[]);
4244 (OSCTXT* pctxt,
const OSXMLElemIDRec* tab, OSSIZE nrows, OSINT32 level,
4245 OSBOOL continueParse);
4274 (OSCTXT* pctxt,
const OSUTF8CHAR* elemLocalName, OSINT16 nsidx);
4360 (OSCTXT* pctxt, OSBOOL mixedContentMode);
4414 int groups,
int curID,
int lastMandatoryID, OSBOOL groupMode,
4415 OSBOOL checkRepeat);
4453 int curID,
int lastMandatoryID, OSBOOL groupMode);
4482 const OSBOOL* extRequired,
int postExtRootID,
4483 int curID,
int lastMandatoryID, OSBOOL groupMode);
4503 const OSUINT8* pOrder, OSSIZE nOrder, OSSIZE maxOrder,
int anyID);
4523 const OSUINT16* pOrder, OSSIZE nOrder, OSSIZE maxOrder,
int anyID);
4543 const OSUINT32* pOrder, OSSIZE nOrder, OSSIZE maxOrder,
int anyID);
4554 (OSCTXT* pctxt,
const OSUTF8CHAR* namespaceTable[], OSSIZE nmNamespaces);
4622 (OSCTXT* pctxt,
const OSUTF8CHAR** ppAttrValue, OSINT16* nsidx,
4623 OSSIZE* pLocalOffs);
4701 (OSCTXT* pctxt,
const OSXMLItemDescr typetab[], OSSIZE typetabsiz);
4717 (OSCTXT* pctxt,
const OSUTF8CHAR* pXsiType, OSINT16 xsiTypeIdx,
4764 EXTERNXML
int rtXmlpReadBytes (OSCTXT* pctxt, OSOCTET* pbuf, OSSIZE nbytes);
EXTERNXML int rtXmlpDecInt16(OSCTXT *pctxt, OSINT16 *pvalue)
This function decodes the contents of a 16-bit integer data type.
EXTERNXML int rtXmlEncIndent(OSCTXT *pctxt)
This function adds indentation whitespace to the output stream.
EXTERNXML int rtXmlMatchTime(OSCTXT *pctxt)
This function tests the context buffer for containing a correct time string.
EXTERNXML int rtXmlpDecInt(OSCTXT *pctxt, OSINT32 *pvalue)
This function decodes the contents of a 32-bit integer data type.
EXTERNXML int rtXmlpGetXSITypeIndex(OSCTXT *pctxt, const OSXMLItemDescr typetab[], OSSIZE typetabsiz)
This function decodes the contents of an XSI (XML Schema Instance) type attribute (xsi:type) and find...
EXTERNXML int rtXmlEncEndSoapElems(OSCTXT *pctxt, OSXMLSOAPMsgType msgtype)
This function encodes SOAP end element tags.
EXTERNXML int rtXmlSetNoNSSchemaLocation(OSCTXT *pctxt, const OSUTF8CHAR *schemaLocation)
This function sets the XML Schema Instance (xsi) no namespace schema location attribute to be added t...
EXTERNXML int rtXmlDecNSAttr(OSCTXT *pctxt, const OSUTF8CHAR *attrName, const OSUTF8CHAR *attrValue, OSRTDList *pNSAttrs, const OSUTF8CHAR *nsTable[], OSUINT32 nsTableRowCount)
This function decodes an XML namespac attribute (xmlns).
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 int rtXmlpDecDateTime(OSCTXT *pctxt, OSXSDDateTime *pvalue)
This function decodes a variable of the XSD 'dateTime' type.
EXTERNXML int rtXmlEncBigInt(OSCTXT *pctxt, const OSUTF8CHAR *value, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS)
This function encodes a variable of the XSD integer type.
EXTERNXML int rtXmlpDecGYear(OSCTXT *pctxt, OSXSDDateTime *pvalue)
This function decodes a variable of the XSD 'gYear' type.
EXTERNXML int rtXmlDecBigInt(OSCTXT *pctxt, const OSUTF8CHAR **ppvalue)
This function will decode a variable of the XSD integer type.
EXTERNXML int rtXmlCreateFileInputSource(OSCTXT *pctxt, const char *filepath)
This function creates an XML document file input source.
EXTERNXML int rtXmlDecUTF8Str(OSCTXT *pctxt, OSUTF8CHAR *outdata, OSSIZE max_len)
This function decodes the contents of a UTF-8 string data type.
EXTERNXML int rtXmlpMarkLastEventActive(OSCTXT *pctxt)
This function marks current tag as unprocessed.
EXTERNXML int rtXmlpDecInt64(OSCTXT *pctxt, OSINT64 *pvalue)
This function decodes the contents of a 64-bit integer data type.
EXTERNXML 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.
EXTERNXML int rtXmlpGetNextAllElemID(OSCTXT *pctxt, const OSXMLElemIDRec *tab, OSSIZE nrows, const OSUINT8 *pOrder, OSSIZE nOrder, OSSIZE maxOrder, int anyID)
This function parses the next start tag and finds index of element name in descriptor table...
EXTERNXML int rtXmlDecGYear(OSCTXT *pctxt, OSXSDDateTime *pvalue)
This function decodes a variable of the XSD 'gYear' type.
EXTERNXML int rtXmlDecDateTime(OSCTXT *pctxt, OSXSDDateTime *pvalue)
This function decodes a variable of the XSD 'dateTime' type.
EXTERNXML int rtXmlpGetXmlnsAttrs(OSCTXT *pctxt, OSRTDList *pNSAttrs)
This function decodes namespace attributes from start tag and adds them to the given list...
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 rtXmlEncIntValue(OSCTXT *pctxt, OSINT32 value)
This function encodes a variable of the XSD integer type.
EXTERNXML void rtXmlpSetNamespaceTable(OSCTXT *pctxt, const OSUTF8CHAR *namespaceTable[], OSSIZE nmNamespaces)
Sets user namespace table.
EXTERNXML int rtXmlEncDoubleAttr(OSCTXT *pctxt, OSREAL value, const OSUTF8CHAR *attrName, OSSIZE attrNameLen, const OSDoubleFmt *pFmtSpec)
This function encodes a variable of the XSD double type as an attribute.
EXTERNXML int rtXmlEncInt64Attr(OSCTXT *pctxt, OSINT64 value, const OSUTF8CHAR *attrName, OSSIZE attrNameLen)
This function encodes a variable of the XSD integer type as an attribute (name="value").
EXTERNXML int rtXmlEncAnyTypeValue(OSCTXT *pctxt, const OSUTF8CHAR *pvalue)
This function encodes a variable of the XSD anyType type.
EXTERNXML OSINT16 rtSaxGetElemID(OSINT16 *pState, OSINT16 prevElemIdx, const OSUTF8CHAR *localName, OSINT32 nsidx, const OSSAXElemTableRec idtab[], const OSINT16 *fstab, OSINT16 fstabRows, OSINT16 fstabCols)
This function looks up a sequence element name in the given element info array.
EXTERNXML OSBOOL rtXmlpNeedDecodeAttributes(OSCTXT *pctxt)
This function checks if attributes were previously decoded.
EXTERNXML int rtXmlEncDecimalAttr(OSCTXT *pctxt, OSREAL value, const OSUTF8CHAR *attrName, OSSIZE attrNameLen, const OSDecimalFmt *pFmtSpec)
This function encodes a variable of the XSD decimal type as an attribute.
EXTERNXML int rtXmlEncXSINilAttr(OSCTXT *pctxt)
This function encodes an XML nil attribute (xsi:nil="true").
EXTERNXML int rtXmlEncBitString(OSCTXT *pctxt, OSSIZE nbits, const OSOCTET *value, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS)
This function encodes a variable of the ASN.1 BIT STRING type.
EXTERNXML int rtXmlpGetNextAllElemID32(OSCTXT *pctxt, const OSXMLElemIDRec *tab, OSSIZE nrows, const OSUINT32 *pOrder, OSSIZE nOrder, OSSIZE maxOrder, int anyID)
This function parses the next start tag and finds index of element name in descriptor table...
EXTERNXML int rtXmlDecGMonthDay(OSCTXT *pctxt, OSXSDDateTime *pvalue)
This function decodes a variable of the XSD 'gMonthDay' type.
EXTERNXML int rtXmlEncBigIntValue(OSCTXT *pctxt, const OSUTF8CHAR *value)
This function encodes an XSD integer attribute value.
EXTERNXML int rtXmlDecGDay(OSCTXT *pctxt, OSXSDDateTime *pvalue)
This function decodes a variable of the XSD 'gDay' type.
EXTERNXML int rtXmlEncXSIAttrs(OSCTXT *pctxt, OSBOOL needXSI)
This function encodes XML schema instance (XSI) attributes at the beginning of an XML document...
EXTERNXML 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...
EXTERNXML int rtXmlDecUInt(OSCTXT *pctxt, OSUINT32 *pvalue)
This function decodes the contents of an unsigned 32-bit integer data type.
EXTERNXML int rtXmlpDecXSIAttrs(OSCTXT *pctxt)
This function decodes XSI (XML Schema Instance) that may be present in any arbitrary XML element with...
EXTERNXML int rtXmlpDecGDay(OSCTXT *pctxt, OSXSDDateTime *pvalue)
This function decodes a variable of the XSD 'gDay' type.
EXTERNXML int rtXmlpDecBitString(OSCTXT *pctxt, OSOCTET *pvalue, OSUINT32 *pnbits, OSUINT32 bufsize)
This function decodes a bit string value.
EXTERNXML int rtXmlpDecGYearMonth(OSCTXT *pctxt, OSXSDDateTime *pvalue)
This function decodes a variable of the XSD 'gYearMonth' type.
EXTERNXML void rtXmlpResetMarkedPos(OSCTXT *pctxt)
Reset saved decode position.
EXTERNXML int rtXmlEncEndElement(OSCTXT *pctxt, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS)
This function encodes an end element tag value (</elemName>).
EXTERNXML void rtXmlpSetListMode(OSCTXT *pctxt)
Sets list mode.
EXTERNXML int rtXmlEncGYear(OSCTXT *pctxt, const OSXSDDateTime *pvalue, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS)
This function encodes a numeric gYear element into an XML string representation.
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 rtXmlDecInt8(OSCTXT *pctxt, OSINT8 *pvalue)
This function decodes the contents of an 8-bit integer data type (i.e.
EXTERNXML int rtXmlEncStartSoapElems(OSCTXT *pctxt, OSXMLSOAPMsgType msgtype)
This function encodes a SOAP envelope start element tag and an optional SOAP body or fault tag...
EXTERNXML void rtXmlpRewindToMarkedPos(OSCTXT *pctxt)
Rewind to saved decode position.
EXTERNXML OSINT16 rtSaxGetElemID8(OSINT16 *pState, OSINT16 prevElemIdx, const OSUTF8CHAR *localName, OSINT32 nsidx, const OSSAXElemTableRec idtab[], const OSINT8 *fstab, OSINT16 fstabRows, OSINT16 fstabCols)
This function is a space optimized version of rtSaxGetElemID.
EXTERNXML int rtXmlSetEncXSINilAttr(OSCTXT *pctxt, OSBOOL value)
This function sets a flag in the context that indicates the XSI attribute declaration (xmlns:xsi) sho...
EXTERNXML int rtXmlpLookupXSITypeIndex(OSCTXT *pctxt, const OSUTF8CHAR *pXsiType, OSINT16 xsiTypeIdx, const OSXMLItemDescr typetab[], OSSIZE typetabsiz)
This function find index of XSI (XML Schema Instance) type in descriptor table.
EXTERNXML int rtXmlInitContext(OSCTXT *pctxt)
This function initializes a context variable for XML encoding or decoding.
EXTERNXML int rtXmlEncEndDocument(OSCTXT *pctxt)
This function adds trailor information and a null terminator at the end of the XML document being enc...
EXTERNXML int rtXmlpDecXmlStr(OSCTXT *pctxt, OSXMLSTRING *outdata)
This function decodes the contents of an XML string data type.
EXTERNXML int rtXmlEncDouble(OSCTXT *pctxt, OSREAL value, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS, const OSDoubleFmt *pFmtSpec)
This function encodes a variable of the XSD double type.
EXTERNXML struct OSXMLReader * rtXmlpGetReader(OSCTXT *pctxt)
This function fetches the XML reader structure from the context for use in low-level pull parser call...
EXTERNXML int rtXmlEncXSITypeAttr2(OSCTXT *pctxt, const OSUTF8CHAR *typeNsUri, const OSUTF8CHAR *typeName)
This function encodes an XML schema instance (XSI) type attribute value (xsi:type="pfx:value").
EXTERNXML int rtXmlpDecDynBitString(OSCTXT *pctxt, OSDynOctStr *pvalue)
This function decodes a bit string value.
EXTERNXML int rtXmlpDecDate(OSCTXT *pctxt, OSXSDDateTime *pvalue)
This function decodes a variable of the XSD 'date' type.
EXTERNXML int rtXmlEncBigIntAttr(OSCTXT *pctxt, const OSUTF8CHAR *value, const OSUTF8CHAR *attrName, OSSIZE attrNameLen)
This function encodes an XSD integer attribute value.
EXTERNXML int rtXmlEncGDayValue(OSCTXT *pctxt, const OSXSDDateTime *pvalue)
This function encodes a numeric gDay value 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 rtXmlDecDynUTF8Str(OSCTXT *pctxt, const OSUTF8CHAR **outdata)
This function decodes the contents of a UTF-8 string data type.
EXTERNXML int rtXmlSetEncXSINamespace(OSCTXT *pctxt, OSBOOL value)
This function sets a flag in the context that indicates the XSI namespace declaration (xmlns:xsi) sho...
EXTERNXML int rtXmlGetIndentChar(OSCTXT *pctxt)
This function returns current XML output indent character value (default is space).
EXTERNXML int rtXmlpGetNextAllElemID16(OSCTXT *pctxt, const OSXMLElemIDRec *tab, OSSIZE nrows, const OSUINT16 *pOrder, OSSIZE nOrder, OSSIZE maxOrder, int anyID)
This function parses the next start tag and finds index of element name in descriptor table...
EXTERNXML int rtXmlDecDouble(OSCTXT *pctxt, OSREAL *pvalue)
This function decodes the contents of a float or double data type.
EXTERNXML int rtXmlpGetAttributeCount(OSCTXT *pctxt)
This function returns number of attributes in last processed start tag.
EXTERNXML int rtXmlpDecDynHexStr64(OSCTXT *pctxt, OSDynOctStr64 *pvalue)
This function is identical to the rtXmlpDecDynHexStr except that it supports lengths up to 64 bits in...
EXTERNXML int rtXmlEncUInt64(OSCTXT *pctxt, OSUINT64 value, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS)
This function encodes a variable of the XSD integer type.
EXTERNXML int rtXmlpDecAnyAttrStr(OSCTXT *pctxt, const OSUTF8CHAR **ppAttrStr, OSSIZE attrIndex)
This function decodes an any attribute string.
EXTERNXML int rtXmlEncStartSoapEnv(OSCTXT *pctxt, OSRTDList *pNSAttrs)
This function encodes a SOAP envelope start element tag.
EXTERNXML int rtXmlpDecXmlStrList(OSCTXT *pctxt, OSRTDList *plist)
This function decodes a list of space-separated tokens and returns each token as a separate item on t...
EXTERNXML int rtXmlpDecUInt8(OSCTXT *pctxt, OSOCTET *pvalue)
This function decodes the contents of an unsigned 8-bit integer data type (i.e.
EXTERNXML int rtXmlEncInt64Value(OSCTXT *pctxt, OSINT64 value)
This function encodes a variable of the XSD integer type.
EXTERNXML int rtXmlpDecDouble(OSCTXT *pctxt, OSREAL *pvalue)
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 rtXmlDecXmlStr(OSCTXT *pctxt, OSXMLSTRING *outdata)
This function decodes the contents of an XML string data type.
EXTERNXML int rtXmlEncUTF8Str(OSCTXT *pctxt, const OSUTF8CHAR *value, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS)
This function encodes a UTF-8 string value.
EXTERNXML int rtXmlEncNamedBits(OSCTXT *pctxt, const OSBitMapItem *pBitMap, OSSIZE nbits, const OSOCTET *pvalue, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS)
This function encodes a variable of the ASN.1 BIT STRING type.
EXTERNXML int rtXmlEncDateTimeValue(OSCTXT *pctxt, const OSXSDDateTime *pvalue)
This function encodes a numeric date/time value into an XML string representation.
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 s...
EXTERNXML int rtXmlpDecBool(OSCTXT *pctxt, OSBOOL *pvalue)
This function decodes a variable of the boolean type.
EXTERNXML int rtXmlpDecUTF8Str(OSCTXT *pctxt, OSUTF8CHAR *out, OSSIZE max_len)
This function decodes the contents of a UTF-8 string data type.
EXTERNXML int rtXmlpDecBase64Str(OSCTXT *pctxt, OSOCTET *pvalue, OSUINT32 *pnocts, OSSIZE bufsize)
This function decodes a contents of a Base64-encode binary string into a static memory structure...
EXTERNXML int rtXmlEncUIntAttr(OSCTXT *pctxt, OSUINT32 value, const OSUTF8CHAR *attrName, OSSIZE attrNameLen)
This function encodes a variable of the XSD unsigned integer type as an attribute (name="value")...
EXTERNXML int rtXmlEncGMonthValue(OSCTXT *pctxt, const OSXSDDateTime *pvalue)
This function encodes a numeric gMonth value into an XML string representation.
EXTERNXML int rtXmlEncBoolAttr(OSCTXT *pctxt, OSBOOL value, const OSUTF8CHAR *attrName, OSSIZE attrNameLen)
This function encodes an XSD boolean attribute value.
EXTERNXML int rtXmlpSelectAttribute(OSCTXT *pctxt, OSXMLNameFragments *pAttr, OSINT16 *nsidx, OSSIZE attrIndex)
This function selects attribute to decode.
EXTERNXML int rtXmlDecHexStr64(OSCTXT *pctxt, OSOCTET *pvalue, OSSIZE *pnocts, OSSIZE bufsize)
This function is identical to rtXmlDecHexStr except that it supports a 64-bit integer length on 64-bi...
EXTERNXML int rtXmlpDecDynBase64Str64(OSCTXT *pctxt, OSDynOctStr64 *pvalue)
This function is identical to rtXmlpDecDynBase64Str except that it supports 64-bit integer lengths on...
EXTERNXML int rtXmlSetEncodingStr(OSCTXT *pctxt, const OSUTF8CHAR *encodingStr)
This function sets the XML output encoding to the given value.
EXTERNXML int rtXmlpGetNextElemID(OSCTXT *pctxt, const OSXMLElemIDRec *tab, OSSIZE nrows, OSINT32 level, OSBOOL continueParse)
This function parses the next start tag and finds the index of the element name in the descriptor tab...
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 rtXmlEncEndSoapEnv(OSCTXT *pctxt)
This function encodes a SOAP envelope end element tag (<SOAP-ENV:Envelope/>).
EXTERNXML int rtXmlpDecXSIAttr(OSCTXT *pctxt, const OSXMLNameFragments *attrName)
This function decodes XSI (XML Schema Instance) attributes that may be present in any arbitrary XML e...
EXTERNXML int rtXmlMatchGMonth(OSCTXT *pctxt)
This function tests the context buffer for containing a correct gMonth string.
EXTERNXML int rtXmlEncDoubleNormalValue(OSCTXT *pctxt, OSREAL value, const OSDoubleFmt *pFmtSpec, int defaultPrecision)
This function encodes a normal (not +/-INF or NaN) value of the XSD double or float type...
EXTERNXML int rtXmlpDecBitStringExt(OSCTXT *pctxt, OSOCTET *pvalue, OSUINT32 *pnbits, OSOCTET **ppextdata, OSUINT32 bufsize)
This function decodes a bit string value.
EXTERNXML int rtXmlpDecBase64Str64(OSCTXT *pctxt, OSOCTET *pvalue, OSSIZE *pnocts, OSSIZE bufsize)
This function is identical to rtXmlpDecBase64Str except that it supports 64-bit integer lengths on 64...
EXTERNXML int rtXmlDecBase64Binary(OSRTMEMBUF *pMemBuf, const OSUTF8CHAR *inpdata, OSSIZE length)
This function decodes the contents of a Base64-encoded binary data type into a memory buffer...
EXTERNXML int rtXmlGetIndent(OSCTXT *pctxt)
This function returns current XML output indent value.
EXTERNXML int rtXmlDecUInt64(OSCTXT *pctxt, OSUINT64 *pvalue)
This function decodes the contents of an unsigned 64-bit integer data type.
EXTERNXML void rtXmlMemFreeAnyAttrs(OSCTXT *pctxt, OSRTDList *pAnyAttrList)
This function frees a list of anyAttribute that is a member of OSXSDAnyType structure.
EXTERNXML int rtXmlEncTermStartElement(OSCTXT *pctxt)
This function terminates a currently open XML start element by adding either a '>' or '/>' (if empty)...
EXTERNXML int rtXmlpDecBitString64(OSCTXT *pctxt, OSOCTET *pvalue, OSSIZE *pnbits, OSSIZE bufsize)
This function is identical to rtXmlpDecBitString except that it supports lengths up to 64-bits in siz...
EXTERNXML OSBOOL rtXmlpIsUTF8Encoding(OSCTXT *pctxt)
This function checks if the encoding specified in XML header is UTF-8.
EXTERNXML void rtXmlSetSoapVersion(OSCTXT *pctxt, OSUINT8 version)
This function sets the SOAP version number.
EXTERNXML int rtXmlEncEmptyElement(OSCTXT *pctxt, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS, OSRTDList *pNSAttrs, OSBOOL terminate)
This function encodes an enpty element tag value (<elemName/>).
EXTERNXML int rtXmlpDecGMonthDay(OSCTXT *pctxt, OSXSDDateTime *pvalue)
This function decodes a variable of the XSD 'gMonthDay' type.
EXTERNXML int rtXmlpGetAttributeID(const OSXMLStrFragment *attrName, OSINT16 nsidx, OSSIZE nAttr, const OSXMLAttrDescr attrNames[], OSUINT32 attrPresent[])
This function finds an attribute in the descriptor table.
EXTERNXML int rtXmlSetEncBufPtr(OSCTXT *pctxt, OSOCTET *bufaddr, OSSIZE bufsiz)
This function is used to set the internal buffer within the run-time library encoding context...
EXTERNXML OSBOOL rtXmlpIsDecodeAsGroup(OSCTXT *pctxt)
This function checks if "decode as group" mode was forced.
EXTERNXML int rtXmlpMatchStartTag(OSCTXT *pctxt, const OSUTF8CHAR *elemLocalName, OSINT16 nsidx)
This function parses the next start tag that matches with given name.
EXTERNXML int rtXmlEncUInt64Value(OSCTXT *pctxt, OSUINT64 value)
This function encodes a variable of the XSD integer type.
EXTERNXML int rtXmlInitCtxtAppInfo(OSCTXT *pctxt)
This function initializes the XML application info section of the given context.
EXTERNXML int rtXmlEncStringValue2(OSCTXT *pctxt, const OSUTF8CHAR *value, OSSIZE valueLen)
This function encodes a variable of the XSD string type.
EXTERNXML OSBOOL rtXmlCmpHexStr(OSUINT32 nocts1, const OSOCTET *data1, const OSUTF8CHAR *data2)
This function compares an array of octets to a hex string.
EXTERNXML int rtXmlDecDynHexStr64(OSCTXT *pctxt, OSDynOctStr64 *pvalue)
This function is identical to rtXmlDecDynHexStr except that it supports a 64-bit integer length on 64...
EXTERNXML int rtXmlDecGYearMonth(OSCTXT *pctxt, OSXSDDateTime *pvalue)
This function decodes a variable of the XSD 'gYearMonth' type.
EXTERNXML OSBOOL rtXmlpHasAttributes(OSCTXT *pctxt)
This function checks accessibility of attributes.
EXTERNXML int rtXmlEncHexStrValue(OSCTXT *pctxt, OSSIZE nocts, const OSOCTET *data)
This function encodes a variable of the XSD hexBinary type.
EXTERNXML int rtXmlEncGMonthDayValue(OSCTXT *pctxt, const OSXSDDateTime *pvalue)
This function encodes a numeric gMonthDay value into an XML string representation.
EXTERNXML int rtXmlMatchDate(OSCTXT *pctxt)
This function tests the context buffer for containing a correct date string.
EXTERNXML int rtXmlSetEncDocHdr(OSCTXT *pctxt, OSBOOL value)
This function sets the option to add the XML document header (i.e.
EXTERNXML const OSUTF8CHAR * rtSaxGetAttrValue(const OSUTF8CHAR *attrName, const OSUTF8CHAR *const *attrs)
This function looks up an attribute in the attribute array returned by SAX to the startElement functi...
EXTERNXML int rtXmlSetIndent(OSCTXT *pctxt, OSUINT8 indent)
This function sets XML output indent to the given value.
EXTERNXML int rtXmlParseElemQName(OSCTXT *pctxt, OSXMLQName *pQName)
This function parses the initial tag from an XML message.
EXTERNXML int rtXmlDecDate(OSCTXT *pctxt, OSXSDDateTime *pvalue)
This function decodes a variable of the XSD 'date' type.
EXTERNXML int rtXmlpReadBytes(OSCTXT *pctxt, OSOCTET *pbuf, OSSIZE nbytes)
This function reads the specified number of bytes directly from the underlying XML parser stream...
EXTERNXML int rtXmlPrintNSAttrs(const char *name, const OSRTDList *data)
This function prints a list of namespace attributes.
EXTERNXML int rtXmlEncIntAttr(OSCTXT *pctxt, OSINT32 value, const OSUTF8CHAR *attrName, OSSIZE attrNameLen)
This function encodes a variable of the XSD integer type as an attribute (name="value").
EXTERNXML int rtXmlEncBool(OSCTXT *pctxt, OSBOOL value, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS)
This function encodes a variable of the XSD boolean type.
EXTERNXML int rtXmlDecDynBase64Str(OSCTXT *pctxt, OSDynOctStr *pvalue)
This function decodes a contents of a Base64-encode binary string.
EXTERNXML int rtXmlpDecDynUTF8Str(OSCTXT *pctxt, const OSUTF8CHAR **outdata)
This function decodes the contents of a UTF-8 string data type.
EXTERNXML int rtXmlDecInt64(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 rtXmlMatchGMonthDay(OSCTXT *pctxt)
This function tests the context buffer for containing a correct gMonthDay string. ...
EXTERNXML int rtXmlDecGMonth(OSCTXT *pctxt, OSXSDDateTime *pvalue)
This function decodes a variable of the XSD 'gMonth' type.
EXTERNXML 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.
EXTERNXML int rtXmlMatchHexStr(OSCTXT *pctxt, OSSIZE minLength, OSSIZE maxLength)
This function tests the context buffer for containing a correct hexadecimal string.
EXTERNXML int rtXmlEncUInt(OSCTXT *pctxt, OSUINT32 value, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS)
This function encodes a variable of the XSD unsigned integer type.
EXTERNXML void rtXmlpHideAttributes(OSCTXT *pctxt)
Disable access to attributes.
EXTERNXML int rtXmlSetEncC14N(OSCTXT *pctxt, OSBOOL value)
This function sets the option to encode in C14N mode.
EXTERNXML int rtXmlInitContextUsingKey(OSCTXT *pctxt, const OSOCTET *key, OSSIZE keylen)
This function initializes a context using a run-time key.
EXTERNXML int rtXmlpDecDecimal(OSCTXT *pctxt, OSREAL *pvalue, int totalDigits, int fractionDigits)
This function decodes the contents of a decimal data type.
EXTERNXML int rtXmlDecBase64StrValue(OSCTXT *pctxt, OSOCTET *pvalue, OSUINT32 *pnocts, OSSIZE bufSize, OSSIZE srcDataLen)
This function decodes a contents of a Base64-encode binary string into the specified octet array...
EXTERNXML int rtXmlEncBOM(OSCTXT *pctxt)
This function encodes the Unicode byte order mark header at the start of the document.
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...
EXTERNXML int rtXmlParseElementName(OSCTXT *pctxt, OSUTF8CHAR **ppName)
This function parses the initial tag from an XML message.
EXTERNXML int rtXmlDecDecimal(OSCTXT *pctxt, OSREAL *pvalue)
This function decodes the contents of a decimal data type.
EXTERNXML int rtXmlpCreateReader(OSCTXT *pctxt)
Creates pull parser reader structure within the context.
EXTERNXML 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.
EXTERNXML int rtXmlEncGMonth(OSCTXT *pctxt, const OSXSDDateTime *pvalue, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS)
This function encodes a numeric gMonth element into an XML string representation. ...
EXTERNXML int rtXmlpGetNextSeqElemID(OSCTXT *pctxt, const OSXMLElemIDRec *tab, const OSXMLGroupDesc *pGroup, int curID, int lastMandatoryID, OSBOOL groupMode)
This function parses the next start tag and finds index of element name in descriptor table...
EXTERNXML int rtXmlEncStringValue(OSCTXT *pctxt, const OSUTF8CHAR *value)
This function encodes a variable of the XSD string type.
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 ...
EXTERNXML 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.
EXTERNXML int rtXmlEncBase64Binary(OSCTXT *pctxt, OSSIZE nocts, const OSOCTET *value, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS)
This function encodes a variable of the XSD base64Binary type.
EXTERNXML int rtXmlpMatchEndTag(OSCTXT *pctxt, OSINT32 level)
This function parse next end tag that matches with given name.
EXTERNXML int rtXmlpDecUInt16(OSCTXT *pctxt, OSUINT16 *pvalue)
This function decodes the contents of an unsigned 16-bit integer data type.
EXTERNXML int rtXmlEncCanonicalSort(OSCTXT *pctxt, OSCTXT *pBufCtxt, OSRTSList *pList)
Sort (as for CXER, Canonical-XER) and encode previously encoded SET OF components.
EXTERNXML void rtXmlpSetWhiteSpaceMode(OSCTXT *pctxt, OSXMLWhiteSpaceMode whiteSpaceMode)
Sets the whitespace treatment mode.
EXTERNXML int rtXmlMatchDateTime(OSCTXT *pctxt)
This function tests the context buffer for containing a correct dateTime string.
EXTERNXML OSBOOL rtSaxIsEmptyBuffer(OSCTXT *pctxt)
This function checks if the buffer in the context is empty or not.
EXTERNXML int rtXmlEncString(OSCTXT *pctxt, OSXMLSTRING *pxmlstr, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS)
This function encodes a variable of the XSD string type.
EXTERNXML OSBOOL rtXmlpSetMixedContentMode(OSCTXT *pctxt, OSBOOL mixedContentMode)
Sets mixed content mode.
EXTERNXML int rtXmlEncGYearMonth(OSCTXT *pctxt, const OSXSDDateTime *pvalue, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS)
This function encodes a numeric gYearMonth element into an XML string representation.
EXTERNXML int rtXmlEncBinStrValue(OSCTXT *pctxt, OSSIZE nbits, const OSOCTET *data)
This function encodes a binary string value as a sequence of '1's and '0's.
EXTERNXML int rtXmlpDecUInt64(OSCTXT *pctxt, OSUINT64 *pvalue)
This function decodes the contents of an unsigned 64-bit integer data type.
EXTERNXML int rtXmlMatchBase64Str(OSCTXT *pctxt, OSSIZE minLength, OSSIZE maxLength)
This function tests the context buffer for containing a correct base64 string.
EXTERNXML int rtXmlpDecHexStr(OSCTXT *pctxt, OSOCTET *pvalue, OSUINT32 *pnocts, OSSIZE bufsize)
This function decodes the contents of a hexBinary string into a static memory structure.
EXTERNXML int rtXmlDecHexStr(OSCTXT *pctxt, OSOCTET *pvalue, OSUINT32 *pnocts, OSINT32 bufsize)
This function decodes the contents of a hexBinary string into a static memory structure.
EXTERNXML int rtXmlDecEmptyElement(OSCTXT *pctxt)
This function is used to enforce a requirement that an element be empty.
EXTERNXML int rtXmlDecBool(OSCTXT *pctxt, OSBOOL *pvalue)
This function decodes a variable of the boolean type.
EXTERNXML OSBOOL rtXmlGetWriteBOM(OSCTXT *pctxt)
This function returns whether the Unicode byte order mark will be encoded.
EXTERNXML const OSUTF8CHAR * rtXmlDecQName(OSCTXT *pctxt, const OSUTF8CHAR *qname, const OSUTF8CHAR **prefix)
This function decodes an XML qualified name string (QName) type.
EXTERNXML int rtXmlpDecDynUnicodeStr(OSCTXT *pctxt, const OSUNICHAR **ppdata, OSSIZE *pnchars)
This function decodes a Unicode string data type.
EXTERNXML int rtXmlDecHexBinary(OSRTMEMBUF *pMemBuf, const OSUTF8CHAR *inpdata, OSSIZE length)
This function decodes the contents of a hex-encoded binary data type into a memory buffer...
EXTERNXML int rtXmlDecBase64Str64(OSCTXT *pctxt, OSOCTET *pvalue, OSSIZE *pnocts, OSSIZE bufsize)
This function is identical to rtXmlDecBase64Str except that is supports a 64-bit integer length on 64...
EXTERNXML int rtXmlEncHexBinary(OSCTXT *pctxt, OSSIZE nocts, const OSOCTET *value, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS)
This function encodes a variable of the XSD hexBinary type.
EXTERNXML int rtXmlEncComment(OSCTXT *pctxt, const OSUTF8CHAR *comment)
This function encodes an XML comment.
EXTERNXML int rtXmlEncTimeValue(OSCTXT *pctxt, const OSXSDDateTime *pvalue)
This function encodes a variable of the XSD 'time' type as an string.
EXTERNXML int rtXmlEncBase64StrValue(OSCTXT *pctxt, OSSIZE nocts, const OSOCTET *value)
This function encodes a variable of the XSD base64Binary type.
EXTERNXML int rtXmlEncUInt64Attr(OSCTXT *pctxt, OSUINT64 value, const OSUTF8CHAR *attrName, OSSIZE attrNameLen)
This function encodes a variable of the XSD integer type as an attribute (name="value").
EXTERNXML OSBOOL rtXmlpIsEmptyElement(OSCTXT *pctxt)
Check element content: empty or not.
EXTERNXML OSUTF8CHAR * rtXmlNewQName(OSCTXT *pctxt, const OSUTF8CHAR *localName, const OSUTF8CHAR *prefix)
This function creates a new QName given the localName and prefix parts.
EXTERNXML int rtXmlEncXSITypeAttr(OSCTXT *pctxt, const OSUTF8CHAR *value)
This function encodes an XML schema instance (XSI) type attribute value (xsi:type="value").
EXTERNXML OSBOOL rtSaxHasXMLNSAttrs(const OSUTF8CHAR *const *attrs)
This function checks if the given attribute list contains one or more XML namespace attributes (xmlns...
EXTERNXML int rtXmlpDecInt8(OSCTXT *pctxt, OSINT8 *pvalue)
This function decodes the contents of an 8-bit integer data type (i.e.
EXTERNXML int rtXmlEncSoapArrayTypeAttr(OSCTXT *pctxt, const OSUTF8CHAR *name, const OSUTF8CHAR *value, OSSIZE itemCount)
This function encodes the special SOAP encoding attrType attribute which specifies the number and typ...
EXTERNXML int rtXmlMatchGYear(OSCTXT *pctxt)
This function tests the context buffer for containing a correct gYear string.
EXTERNXML int rtXmlPrepareContext(OSCTXT *pctxt)
This function prepares the context for another encode by setting the state back to OSXMLINIT and movi...
EXTERNXML int rtXmlEncFloat(OSCTXT *pctxt, OSREAL value, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS, const OSDoubleFmt *pFmtSpec)
This function encodes a variable of the XSD float type.
EXTERNXML int rtXmlEncAny(OSCTXT *pctxt, OSXMLSTRING *pvalue, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS)
This function encodes a variable of the XSD any type.
EXTERNXML int rtXmlSetIndentChar(OSCTXT *pctxt, char indentChar)
This function sets XML output indent character to the given value.
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 t...
EXTERNXML int rtXmlEncGDay(OSCTXT *pctxt, const OSXSDDateTime *pvalue, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS)
This function encodes a numeric gDay element into an XML string representation.
EXTERNXML int rtXmlEncUTF8Attr2(OSCTXT *pctxt, const OSUTF8CHAR *name, OSSIZE nameLen, const OSUTF8CHAR *value, OSSIZE valueLen)
This function encodes an attribute in which the name and value are given as a UTF-8 strings with leng...
EXTERNXML void rtXmlpMarkPos(OSCTXT *pctxt)
Save current decode position.
EXTERNXML int rtXmlDecTime(OSCTXT *pctxt, OSXSDDateTime *pvalue)
This function decodes a variable of the XSD 'time' type.
EXTERNXML int rtXmlEncUnicodeStr(OSCTXT *pctxt, const OSUNICHAR *value, OSSIZE nchars, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS)
This function encodes a Unicode string value.
EXTERNXML int rtXmlEncInt64(OSCTXT *pctxt, OSINT64 value, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS)
This function encodes a variable of the XSD integer type.
EXTERNXML int rtXmlSetFormatting(OSCTXT *pctxt, OSBOOL doFormatting)
This function sets XML output formatting to the given value.
OSXMLWhiteSpaceMode
Whitespace treatment options.
EXTERNXML int rtXmlEncDecimalValue(OSCTXT *pctxt, OSREAL value, const OSDecimalFmt *pFmtSpec, char *pDestBuf, OSSIZE destBufSize)
This function encodes a value of the XSD decimal type.
EXTERNXML int rtXmlDecDynHexStr(OSCTXT *pctxt, OSDynOctStr *pvalue)
This function decodes a contents of a hexBinary string.
EXTERNXML int rtXmlDecInt(OSCTXT *pctxt, OSINT32 *pvalue)
This function decodes the contents of a 32-bit integer data type.
EXTERNXML int rtXmlEncGYearMonthValue(OSCTXT *pctxt, const OSXSDDateTime *pvalue)
This function encodes a numeric gYearMonth value into an XML string representation.
EXTERNXML int rtXmlEncGMonthDay(OSCTXT *pctxt, const OSXSDDateTime *pvalue, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS)
This function encodes a numeric gMonthDay element into an XML string representation.
EXTERNXML int rtXmlEncDateValue(OSCTXT *pctxt, const OSXSDDateTime *pvalue)
This function encodes a variable of the XSD 'date' type as a string.
EXTERNXML int rtXmlpGetNextSeqElemIDExt(OSCTXT *pctxt, const OSXMLElemIDRec *tab, const OSXMLGroupDesc *ppGroup, const OSBOOL *extRequired, int postExtRootID, int curID, int lastMandatoryID, OSBOOL groupMode)
This is an ASN.1 extension-supporting version of rtXmlpGetNextSeqElemID.
struct OSXMLGroupDesc OSXMLGroupDesc
OSXMLGroupDesc describes how entries in an OSXMLElemIDRec array make up a group.
EXTERNXML int rtXmlpDecBitStringExt64(OSCTXT *pctxt, OSOCTET *pvalue, OSSIZE *pnbits, OSOCTET **ppextdata, OSSIZE bufsize)
This function is identical to rtXmlpDecBitStringExt except that it supports lengths up to 64-bits in ...
EXTERNXML OSBOOL rtXmlCmpBase64Str(OSUINT32 nocts1, const OSOCTET *data1, const OSUTF8CHAR *data2)
This function compares an array of octets to a base64 string.
EXTERNXML int rtXmlpGetNextElem(OSCTXT *pctxt, OSXMLElemDescr *pElem, OSINT32 level)
This function parse the next element start tag.
EXTERNXML int rtXmlMatchGYearMonth(OSCTXT *pctxt)
This function tests the context buffer for containing a correct gYearMonth string.
EXTERNXML int rtXmlDecDynBase64Str64(OSCTXT *pctxt, OSDynOctStr64 *pvalue)
This function is identical to rtXmlDecDynBase64Str except that it supports a 64-bit integer length on...
EXTERNXML int rtXmlDecInt16(OSCTXT *pctxt, OSINT16 *pvalue)
This function decodes the contents of a 16-bit integer data type.
EXTERNXML int rtXmlDecBase64Str(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 rtXmlpGetXSITypeAttr(OSCTXT *pctxt, const OSUTF8CHAR **ppAttrValue, OSINT16 *nsidx, OSSIZE *pLocalOffs)
This function decodes the contents of an XSI (XML Schema Instance) type attribute (xsi:type)...
EXTERNXML int rtSaxStrListMatch(OSCTXT *pctxt)
This function mathes the list of strings.
EXTERNXML OSBOOL rtXmlpIsLastEventDone(OSCTXT *pctxt)
Check processing status of current tag.
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 rtXmlDecUInt16(OSCTXT *pctxt, OSUINT16 *pvalue)
This function decodes the contents of an unsigned 16-bit integer data type.
EXTERNXML int rtXmlSetXSITypeAttr(OSCTXT *pctxt, const OSUTF8CHAR *xsiType)
This function sets the XML Schema Instance (xsi) type attribute value.
EXTERNXML int rtXmlpDecDoubleExt(OSCTXT *pctxt, OSUINT8 flags, OSREAL *pvalue)
This function decodes the contents of a float or double data type.
EXTERNXML int rtXmlDecBase64StrValue64(OSCTXT *pctxt, OSOCTET *pvalue, OSSIZE *pnocts, OSSIZE bufSize, OSSIZE srcDataLen)
This function decodes is identical to rtXmlDecBase64StrValue except that it supports a 64-bit integer...
EXTERNXML int rtXmlEncBase64BinaryAttr(OSCTXT *pctxt, OSUINT32 nocts, const OSOCTET *value, const OSUTF8CHAR *attrName, OSSIZE attrNameLen)
This function encodes a variable of the XSD base64Binary type as an attribute.
EXTERNXML int rtXmlEncDecimal(OSCTXT *pctxt, OSREAL value, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS, const OSDecimalFmt *pFmtSpec)
This function encodes a variable of the XSD decimal type.
EXTERNXML int rtXmlMatchGDay(OSCTXT *pctxt)
This function tests the context buffer for containing a correct gDay string.
EXTERNXML int rtXmlpDecGMonth(OSCTXT *pctxt, OSXSDDateTime *pvalue)
This function decodes a variable of the XSD 'gMonth' type.
EXTERNXML int rtXmlEncBoolValue(OSCTXT *pctxt, OSBOOL value)
This function encodes a variable of the XSD boolean type.
EXTERNXML int rtXmlSetNSPrefixLinks(OSCTXT *pctxt, OSRTDList *pNSAttrs)
This function sets namespace prefix/URI links in the namspace prefix stack in the context structure...
EXTERNXML int rtSaxStrListParse(OSCTXT *pctxt, OSRTMEMBUF *pMemBuf, OSRTDList *pvalue)
This function parses the list of strings.
EXTERNXML OSBOOL rtXmlpListHasItem(OSCTXT *pctxt)
Check for end of decoded token list.
EXTERNXML int rtSaxSortAttrs(OSCTXT *pctxt, const OSUTF8CHAR *const *attrs, OSUINT16 **order)
This function sorts a SAX attribute list in ascending order based on attribute name.
EXTERNXML int rtXmlpDecDynHexStr(OSCTXT *pctxt, OSDynOctStr *pvalue)
This function decodes a contents of a hexBinary string.
EXTERNXML int rtXmlpDecNamedBits64(OSCTXT *pctxt, const OSBitMapItem *pBitMap, OSOCTET *pvalue, OSSIZE *pnbits, OSSIZE bufsize)
This function decodes the contents of a named bit field.
OSXMLGroupDesc describes how entries in an OSXMLElemIDRec array make up a group.
EXTERNXML int rtXmlDecUInt8(OSCTXT *pctxt, OSUINT8 *pvalue)
This function decodes the contents of an unsigned 8-bit integer data type (i.e.
EXTERNXML int rtXmlEncBitStringExt(OSCTXT *pctxt, OSSIZE nbits, const OSOCTET *value, OSSIZE dataSize, const OSOCTET *extValue, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS)
This function encodes a variable of the ASN.1 BIT STRING type.
EXTERNXML int rtXmlEncUIntValue(OSCTXT *pctxt, OSUINT32 value)
This function encodes a variable of the XSD unsigned integer type.
EXTERNXML int rtXmlEncInt(OSCTXT *pctxt, OSINT32 value, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS)
This function encodes a variable of the XSD integer type.
EXTERNXML void rtXmlpForceDecodeAsGroup(OSCTXT *pctxt)
Disable skipping of unknown elements in optional sequence tail.
EXTERNXML int rtXmlpGetNextSeqElemID2(OSCTXT *pctxt, const OSXMLElemIDRec *tab, const OSXMLGroupDesc *pGroup, int groups, int curID, int lastMandatoryID, OSBOOL groupMode, OSBOOL checkRepeat)
This function parses the next start tag and finds index of element name in descriptor table...
EXTERNXML int rtXmlpDecAny2(OSCTXT *pctxt, OSUTF8CHAR **pvalue)
This version of the rtXmlpDecAny function returns the string in a mutable buffer. ...
EXTERNXML int rtXmlpDecTime(OSCTXT *pctxt, OSXSDDateTime *pvalue)
This function decodes a variable of the XSD 'time' type.
EXTERNXML int rtXmlEncNSAttrs(OSCTXT *pctxt, OSRTDList *pNSAttrs)
This function encodes namespace declaration attributes at the beginning of an XML document...
EXTERNXML int rtXmlEncHexBinaryAttr(OSCTXT *pctxt, OSUINT32 nocts, const OSOCTET *value, const OSUTF8CHAR *attrName, OSSIZE attrNameLen)
This function encodes a variable of the XSD hexBinary type as an attribute.
EXTERNXML int rtXmlSetWriteBOM(OSCTXT *pctxt, OSBOOL write)
This function sets whether the Unicode byte order mark is encoded.
EXTERNXML int rtXmlEncStartDocument(OSCTXT *pctxt)
This function encodes the XML header text at the beginning of an XML document.
EXTERNXML int rtXmlEncAttrC14N(OSCTXT *pctxt)
This function used only in C14 mode.
EXTERNXML void rtXmlpCountListItems(OSCTXT *pctxt, OSSIZE *itemCnt)
Count tokens in list.
EXTERNXML int rtXmlDecXSIAttr(OSCTXT *pctxt, const OSUTF8CHAR *attrName, const OSUTF8CHAR *attrValue)
This function decodes XML schema instance (XSI) attribute.
EXTERNXML OSINT32 rtXmlpGetCurrentLevel(OSCTXT *pctxt)
This function returns current nesting level.
EXTERNXML int rtXmlFreeInputSource(OSCTXT *pctxt)
This function closes an input source that was previously created with one of the create input source ...
EXTERNXML int rtXmlpDecUInt(OSCTXT *pctxt, OSUINT32 *pvalue)
This function decodes the contents of an unsigned 32-bit integer data type.
EXTERNXML int rtXmlEncStartElement(OSCTXT *pctxt, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS, OSRTDList *pNSAttrs, OSBOOL terminate)
This function encodes a start element tag value (<elemName>).
EXTERNXML int rtXmlDecXSIAttrs(OSCTXT *pctxt, const OSUTF8CHAR *const *attrs, const char *typeName)
This function decodes XML schema instance (XSI) attributes.
EXTERNXML int rtXmlpDecHexStr64(OSCTXT *pctxt, OSOCTET *pvalue, OSSIZE *pnocts, OSSIZE bufsize)
This function is identical to rtXmlpDecHexStr except that it supports lengths up to 64-bits in size o...
EXTERNXML int rtXmlEncFloatAttr(OSCTXT *pctxt, OSREAL value, const OSUTF8CHAR *attrName, OSSIZE attrNameLen, const OSDoubleFmt *pFmtSpec)
This function encodes a variable of the XSD float type as an attribute.
EXTERNXML void rtXmlSetNamespacesSet(OSCTXT *pctxt, OSBOOL value)
This function sets the context 'namespaces are set' flag.
EXTERNXML int rtXmlpDecBigInt(OSCTXT *pctxt, const OSUTF8CHAR **pvalue)
This function will decode a variable of the XSD integer type.