00001 #ifdef FUNCNAME
00002
00003 EXTXMLMETHOD int FUNCNAME (OSCTXT* pctxt, const OSXSDDateTime* pvalue,
00004 const OSUTF8CHAR* elemName, OSXMLNamespace* pNS)
00005 {
00006 int stat;
00007 if (0 != elemName) {
00008 OSRTDList namespaces;
00009 rtxDListInit(&namespaces);
00010
00011 stat = rtXmlEncStartElement (pctxt, elemName, pNS, &namespaces, FALSE);
00012
00013
00014 if ( stat == 0 )
00015 stat = rtXmlEncNSAttrs(pctxt, &namespaces);
00016
00017
00018 if ( stat == 0 )
00019 stat = rtXmlEncTermStartElement(pctxt);
00020 }
00021 else {
00022
00023 stat = rtXmlEncTermStartElement (pctxt);
00024 }
00025 if (0 == stat) {
00026 if (pctxt->state != OSXMLATTR)
00027 pctxt->state = OSXMLDATA;
00028 stat = ENCVALUEFUNC (pctxt, pvalue);
00029 }
00030 if (0 != elemName && 0 == stat) {
00031 stat = rtXmlEncEndElement (pctxt, elemName, pNS);
00032 }
00033
00034 return (stat != 0) ? LOG_RTERR (pctxt, stat) : 0;
00035 }
00036
00037 #endif
00038