> 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.

Signature
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Martin Honnen - 30 Jan 2008 16:55 GMT
> I don't think there is a better way, XmlElement is what you need and
> unfortunately to create one you need an XmlDocument too.
With .NET 3.5/Visual Studio 2008 you could also use an XElement and that
way you would not need an additional object as XElement can be created
without creating an XDocument.

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