Returning dynamic Xml from C# web services
Tuesday, August 1, 2006
Labels:
C#
,
Web Services
,
XML
[WebMethod]
public XmlNode GetDynamicXml()
{
XmlDocument myXmlDocument = new XmlDocument();
// load xml content or build it up dynamically, etc
return myXmlDocument.DocumentElement;
}
I thought it was a clever use of the technology considering the limited alternatives..