I found out why the printer.CStr() does not return the complete XML string because the function below
memmove(finish(), str, len)
does not append the string any more at some point. It does not stop at same point so sometimes it gives youa a longger string and sometimes it gives you a shorter string. Any body sees the same problem and any solution?
Hello,
I found out why the printer.CStr() does not return the complete XML string because the function below
memmove(finish(), str, len)
does not append the string any more at some point. It does not stop at same point so sometimes it gives youa a longger string and sometimes it gives you a shorter string. Any body sees the same problem and any solution?
TiXmlString& TiXmlString::append(const char* str, size_type len)
{
size_type newsize = length() + len;
if (newsize > capacity())
{
reserve (newsize + capacity());
}
memmove(finish(), str, len);
set_size(newsize);
return *this;
}
Thank you for any idea,
Haiping
Haiping