public void ReadContentNodes()
{
try
{
// this._document.XmlDoc = new XmlDocument();
// this._document.XmlDoc.Load(contentFile);
XmlNode node = null;
node = this.Chart .ChartDoc. SelectSingleNode(
"/office:document-content/office:body/office:chart", this.Chart .Document .NamespaceManager);
if (node != null)
{
this.CreateMainContent(node);
}
else
{
throw new AODLException("Unknow content type.");
}
//Remove all existing content will be created new
node.RemoveAll();
}
catch(Exception ex)
{
throw new AODLException("Error while trying to load the main content", ex);
}
}