Re: Serializing an entity. I want a string property to come out as XML



Mike wrote:

How do I tell it to force it as XML? The only way I could do it was by making it return an xmlement, then in the GET: instantiate a new xmldocument, make a new element, then populate that element innerxml with string xml.

Seems too ugly. Whats the right way??

I don't think there is a better way, XmlElement is what you need and unfortunately to create one you need an XmlDocument too.


--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
.


Loading