00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00040 #ifndef _OSRTDOM_H_
00041 #define _OSRTDOM_H_
00042
00043 #include "rtxsrc/rtxCommon.h"
00044 #include "rtdomsrc/rtxDomDefs.h"
00045 #include "rtxmlsrc/osrtxml.h"
00046 #include "rtdomsrc/domAPI.h"
00047 #include "rtxmlsrc/rtXmlNamespace.h"
00048
00054
00055
00056 #ifdef _MSC_VER
00057 #pragma warning(disable: 4100)
00058 #endif
00059
00060 #ifdef __cplusplus
00061 extern "C" {
00062 #endif
00063
00082 EXTERNDOM int rtDomAddAttr (OSCTXT* pctxt,
00083 OSRTDOMDocPtr domDoc,
00084 OSRTDOMNodePtr node,
00085 const OSUTF8CHAR* attrName,
00086 OSXMLNamespace* pNS,
00087 OSRTDList* pNSAttrs);
00088
00108 EXTERNDOM int rtDomAddNode (OSCTXT* pctxt,
00109 OSRTDOMDocPtr domDoc,
00110 OSRTDOMNodePtr parentNode,
00111 const OSUTF8CHAR* elemName,
00112 OSXMLNamespace* pNS,
00113 OSRTDList* pNSAttrs);
00114
00129 EXTERNDOM int rtDomAddNSAttrs
00130 (OSCTXT* pctxt, OSRTDOMDocPtr domDoc, OSRTDOMNodePtr rootNode,
00131 OSRTDList* pNSAttrs);
00132
00147 EXTERNDOM int rtDomEncXSIAttrs
00148 (OSCTXT* pctxt, OSRTDOMDocPtr domDoc, OSRTDOMNodePtr node,
00149 OSBOOL needXSI);
00150
00160 EXTERNDOM int rtDomDecodeDoc
00161 (OSRTDOMDocPtr domDoc, struct OSSAXHandlerBase* pSaxBase);
00162
00172 EXTERNDOM int rtDomEncStringValue (OSCTXT* pctxt,
00173 const OSUTF8CHAR* pvalue);
00174
00184 EXTERNDOM int rtDomEncString (OSCTXT* pctxt, OSXMLSTRING* pvalue);
00185
00206 EXTERNDOM int rtDomEncAny (OSCTXT* pctxt, OSRTDOMDocPtr domDoc,
00207 OSRTDOMNodePtr parentNode,
00208 const OSXMLSTRING* pXmlData,
00209 const OSUTF8CHAR* elemName,
00210 OSXMLNamespace* pNS,
00211 OSRTDList* pNSAttrs);
00212
00225 EXTERNDOM int rtDomEncAnyAttr (OSCTXT* pctxt, OSRTDOMDocPtr domDoc,
00226 OSRTDOMNodePtr node, OSRTDList* pAnyAttrList);
00227
00244 EXTERNDOM int rtDomSetNode (OSCTXT* pctxt,
00245 OSRTDOMDocPtr domDoc,
00246 OSRTDOMNodePtr curNode);
00247
00264 EXTERNDOM int rtDomAddSubTree (OSCTXT* pctxt, OSRTDOMDocPtr xmlDoc,
00265 OSRTDOMNodePtr node,
00266 const OSUTF8CHAR* pXmlData,
00267 size_t dataLen);
00268
00269
00270 #ifdef __cplusplus
00271 }
00272 #endif
00273
00276 #endif
00277