For Programmers: Free Programming Magazines  


Home > Archive > Microsoft Webservices > March 2005 > XML Element must have CDATA tages around it.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author XML Element must have CDATA tages around it.
Mike

2005-03-04, 4:02 pm

I am consuming a web service hosted by one of our clients. One of the
string properties of the object I am creating to pass to their web service
is called CustomerName. The XML they re receiving I just a standatd xml
elemnt:

<CustomerName>Joe Friday</CustomerName>

The client has told me that the customer name, Joe Firday, needs to have
CDATA tags around it:

<CustomerName>![CDATA[Joe Friday]]</CustomerName>

How can I get VS.NET 2003 to serialize the customer name in this way?

Thanks in advance.

Mike R


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com