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; 
} 
/////////////////////////////////////// 
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to