You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by Riccardo Mariani <rm...@coresecurity.com> on 2017/03/21 15:59:06 UTC

OdataXmlSerializer

Hi all,

I'm using the java Olingo library v4.
I've a problem serializing strings containing special characters using the OdataXmlSerializer.
I think that the OdataXmlSerializer should escape special characters but it doesn't do that.
For example the following string: <>"'& should be serialized like this &lt; &gt; &quot; &apos; &amp;
Am I wrong?

Thanks.

Riccardo Mariani
Senior Software Engineer
rmariani@courion.com<ma...@courion.com>

[cid:image001.jpg@01D1BCB2.6E290E40]


Re: OdataXmlSerializer

Posted by Riccardo Mariani <ma...@gmail.com>.
Hi Ramesh,

I investigated the xml serialization a bit more and there is no problem 
in the Olingo library.
The problem was in another tool I was using to read the xml data.

Thanks anyway for the reply.

On 22/03/17 21:56, Ramesh Reddy wrote:
> Please open JIRA, then we can take a look. If you want to expedite, you can even provide with a patch, I will take look into merging it.
>
> Thanks
>
> Ramesh..
>
> ----- Original Message -----
>> Normal text element
>>
>>
>> On 22/03/17 14:17, Ramesh Reddy wrote:
>>> Are they in CDATA section or normal element text?
>>>
>>> ----- Original Message -----
>>>
>>>> Hi all,
>>>> I\u2019m using the java Olingo library v4.
>>>> I\u2019ve a problem serializing strings containing special characters using the
>>>> OdataXmlSerializer.
>>>> I think that the OdataXmlSerializer should escape special characters but
>>>> it
>>>> doesn\u2019t do that.
>>>> For example the following string: <>\u201d\u2019& should be serialized like this
>>>> &lt;
>>>> &gt; &quot; &apos; &amp;
>>>> Am I wrong?
>>>> Thanks.
>>>> Riccardo Mariani
>>>> Senior Software Engineer
>>>> rmariani@courion.com
>>


Re: OdataXmlSerializer

Posted by Ramesh Reddy <ra...@redhat.com>.
Please open JIRA, then we can take a look. If you want to expedite, you can even provide with a patch, I will take look into merging it.

Thanks

Ramesh..

----- Original Message -----
> Normal text element
> 
> 
> On 22/03/17 14:17, Ramesh Reddy wrote:
> > Are they in CDATA section or normal element text?
> >
> > ----- Original Message -----
> >
> >> Hi all,
> >> I’m using the java Olingo library v4.
> >> I’ve a problem serializing strings containing special characters using the
> >> OdataXmlSerializer.
> >> I think that the OdataXmlSerializer should escape special characters but
> >> it
> >> doesn’t do that.
> >> For example the following string: <>”’& should be serialized like this
> >> &lt;
> >> &gt; &quot; &apos; &amp;
> >> Am I wrong?
> >> Thanks.
> >> Riccardo Mariani
> >> Senior Software Engineer
> >> rmariani@courion.com
> 
> 

Re: OdataXmlSerializer

Posted by Riccardo Mariani <ma...@gmail.com>.
Normal text element


On 22/03/17 14:17, Ramesh Reddy wrote:
> Are they in CDATA section or normal element text?
>
> ----- Original Message -----
>
>> Hi all,
>> I\u2019m using the java Olingo library v4.
>> I\u2019ve a problem serializing strings containing special characters using the
>> OdataXmlSerializer.
>> I think that the OdataXmlSerializer should escape special characters but it
>> doesn\u2019t do that.
>> For example the following string: <>\u201d\u2019& should be serialized like this &lt;
>> &gt; &quot; &apos; &amp;
>> Am I wrong?
>> Thanks.
>> Riccardo Mariani
>> Senior Software Engineer
>> rmariani@courion.com


Re: OdataXmlSerializer

Posted by Ramesh Reddy <ra...@redhat.com>.
Are they in CDATA section or normal element text? 

----- Original Message -----

> Hi all,

> I’m using the java Olingo library v4.

> I’ve a problem serializing strings containing special characters using the
> OdataXmlSerializer.

> I think that the OdataXmlSerializer should escape special characters but it
> doesn’t do that.

> For example the following string: <>”’& should be serialized like this &lt;
> &gt; &quot; &apos; &amp;

> Am I wrong?

> Thanks.

> Riccardo Mariani

> Senior Software Engineer

> rmariani@courion.com