You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by me...@aol.com on 2008/05/13 01:18:46 UTC

Xerces-C Syntactical Error ??

Here's a link explaining my problem, http://groups.google.com/group/comp.text.xml/browse_thread/thread/0ac874b4a0769d1c.

Xerces-C version 2.8.0

Redhat Enterprise?Linux 4

Thanks,

Max

Re: Xerces-C Syntactical Error ??

Posted by me...@aol.com.
I call this:

int printDCRD(DDAS_CLIENT_RESULT_DATA* results)
{
??????? cout<<endl;

??????? for( unsigned int i=0; i<results->size; i++ )
??????? {
??????????????? cout<<"Defintion number #"<<i<<": "<<results->def_nums[i]<<endl;
??????????????? cout<<"Binary representation #"<<i<<": "<<results->bin_reps[i]<<endl;
??????????????? cout<<"SSE #"<<i<<": "<<results->SSEs[i]<<endl;

??????????????? for( unsigned int j=0; j<results->coefficients->size; j++ )
??????????????? {
??????????????????????? cout<<"Coefficient index: "<<results->coefficients[i].index[j]<<" value: "<<results->coefficients[i].values[j]<<endl;
??????????????? }

??????????????? cout<<endl;
??????? }

??????? cout<<endl;
}

as the first line of the XML handling function. It prints out the data correctly. But somehow after this the data gets garbled.

Max


-----Original Message-----
From: Alberto Massari <am...@datadirect.com>
To: c-users@xerces.apache.org
Sent: Mon, 12 May 2008 8:23 pm
Subject: Re: Xerces-C Syntactical Error ??



If you get some data correct and some not, it's possible that it gets corrupted; have you tried printing the value of the various sse_buffer, br_buffer, dn_buffer just before calling XMLString::transcode??
?
Alberto?
?
mearvk01@aol.com wrote:?
> Here's a link explaining my problem, http://groups.google.com/group/comp.text.xml/browse_thread/thread/0ac874b4a0769d1c.?
>?
> Xerces-C version 2.8.0?
>?
> Redhat Enterprise?Linux 4?
>?
> Thanks,?
>?
> Max?
>?
> ?


Re: Xerces-C Syntactical Error ??

Posted by Alberto Massari <am...@datadirect.com>.
If you get some data correct and some not, it's possible that it gets 
corrupted; have you tried printing the value of the various sse_buffer, 
br_buffer, dn_buffer just before calling XMLString::transcode?

Alberto

mearvk01@aol.com wrote:
> Here's a link explaining my problem, http://groups.google.com/group/comp.text.xml/browse_thread/thread/0ac874b4a0769d1c.
>
> Xerces-C version 2.8.0
>
> Redhat Enterprise?Linux 4
>
> Thanks,
>
> Max
>
>