Customizing the Generated XML

Top  Previous  Next

The XML generated by Topic Cloud controls is derived from a System.Data.DataSet using the GetXml method. There is a method named GetXPathNavigator which may be overridden to customize the DataSet. Typically an implementation will look like this:

protected override System.Xml.XPath.XPathNavigator GetXPathNavigator()

{

  DataSet cloudData = this.TopicCloudEntries;

  // Make modifications to the cloudData data set

  cloudData.AcceptChanges();

  return base.GetXPathNavigator();

}

If there is a requirement to modify the DataSet after the modifications are made by the base class, then modifications should be made to the XML using the XPathNavigator object as modifications may be made after the XML document has been generated from the DataSet.