rtXmlEncDateTmpl.h
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 stat = rtXmlEncStartElement (pctxt, elemName, pNS, 0, TRUE);
00009 }
00010 else {
00011
00012 stat = rtXmlEncTermStartElement (pctxt);
00013 }
00014 if (0 == stat) {
00015 if (pctxt->state != OSXMLATTR)
00016 pctxt->state = OSXMLDATA;
00017 stat = ENCVALUEFUNC (pctxt, pvalue);
00018 }
00019 if (0 != elemName && 0 == stat) {
00020 stat = rtXmlEncEndElement (pctxt, elemName, pNS);
00021 }
00022
00023 return (stat != 0) ? LOG_RTERR (pctxt, stat) : 0;
00024 }
00025
00026 #endif
00027