AGB wrote:
[color=blue]
> I am calling a web service that returns the characters ' wherever
> an apostrophe occurs in my xml results. This is through SharePoint.
> For
> instance, if I have the text Today's News I get Today's News.
>
> How can I convert this to Today's News easily?[/color]
I don't know how Sharepoint calls web services but usually if you call a
web service then you have an API and if the web service returns a string
then within the SOAP message the service returns ' might be used but
any API returning the string would then simply give you the single quote
character.
So the problem might be that you are trying to deal with the SOAP
message while .NET (which this group is about) simply allows you to use
a proxy class for a web service and then deal with .NET strings whenever
a service returns a string.
If you wanted to parse some XML with .NET and then use DOM or XPath to
extract data from the XML you wouldn't get ' either so you could
look into XmlDocument or XPathDocument in the .NET framework if you
really want to process "raw" XML or SOAP instead of using a proxy.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/