[xml] the xmlDocDumpFormatMemoryEnc bug in TUXEDO service?



when i use xmlDocDumpFormatMemoryEnc to dump a xmlDocPtr to the xmlChar *var in TUXEDO service,the var will cut at the bytes of 2031;but it works well at not TUXEDO service;
for example,i call the dumpXML function in TUXEDO service will occur the question above,but if i just call it in a common executable program,it works well.
///////////////////////////////////////
int dumpXML()
{
xmlDocPtr doc;
xmlChar *pxmlout;
int xmllen;

if(NULL==(doc=xmlParseFile("test.xml")))
{
printf("xmlParseFile ERROR.\n");
return -1;
}

xmlDocDumpFormatMemoryEnc(doc,&pxmlout,&xmllen,"GBK",1);
printf("xmllen=[%d],xmlout=[%s]\n",xmllen,pxmlout);
xmlFree(pxmlout);

return 0;
}
///////////////////////////////////////


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]