If you are referring to serialization, I think one way could be to set
up a property in your object of the XmlCDataSection type and mark it
with an XmlAnyElementAttribute attribute.
HTH,
Efran Cobisi
http://www.cobisi.com
Ian Suttle wrote:
> Decode is definitely one method. Does anyone know how to mark an
> element to use CDATA? If I wanted to return XML which had HTML content
> within an element, and use XSL to transform it, there's not really an
> opportune time to HtmlDecode the data.
>
> -----Original Message-----
> From: Discussion of building .NET applications targeted for the Web
> [mailto:DOTNET-***@DISCUSS.DEVELOP.COM] On Behalf Of Paul ten Brink
> Sent: Thursday, February 22, 2007 2:53 AM
> To: DOTNET-***@DISCUSS.DEVELOP.COM
> Subject: Re: [DOTNET-WEB] Web service converts ' into '
>
> Hi Efran and Mark,
>
> HtmlEncode and HtmlDecode is exactly what I was looking for but could
> not
> find anymore...
>
> Cheers!
>
> Paul ten Brink
> ***@philips.com
>
>
>
>> Date: Tue, 20 Feb 2007 17:27:08 +0100
>> From: Efran Cobisi <***@QBGROUP.IT>
>> Subject: Re: Web service converts ' into '
>>
>> Hi Paul,
>>
>> Maybe you are looking for System.Web.HttpUtility.HtmlEncode() and
>> System.Web.HttpUtility.HtmlDecode() methods.
>> HTH,
>>
>> Efran Cobisi
>> http://www.cobisi.com
>>
>> Paul ten Brink wrote:
>>
>>> Hello,
>>>
>>> A web service returns a string containing an apostrophe, but it is
>>> converted to its HTML code equivalent (see subject).
>>>
>>> (I am avoiding using the actual characters, since these could be
>>>
> changed
>
>>> by mail programs/services, which could make my question very
>>>
> confusing.)
>
>>> There is a simple conversion call, but I can't remember it and
>>>
> Googling
>
>>> does not help. Something like System.Convert...
>>>
>>> Can anyone help me out?
>>>
>>> Thanks in advance,
>>> Paul ten Brink
>>> ***@philips.com
>>>
>
> ===================================
> This list is hosted by DevelopMentor(r) http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>
> ===================================
> This list is hosted by DevelopMentor® http://www.develop.com
>
> View archives and manage your subscription(s) at http://discuss.develop.com
>
===================================
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com