public void CreateMainContent(XmlNode node)
{
try
{
foreach(XmlNode nodeChild in node.ChildNodes)
{
IContent iContent = this.CreateContent(nodeChild.CloneNode(true));
if (iContent != null)
AddToCollection(iContent, this.Chart .Content);
//this._document.Content.Add(iContent);
else
{
if (this.OnWarning != null)
{
AODLWarning warning = new AODLWarning("A couldn't create any content from an an first level node!.");
//warning.InMethod = AODLException.GetExceptionSourceInfo(new StackFrame(1, true));
warning.Node = nodeChild;
this.OnWarning(warning);
}
}
}
}
catch(Exception ex)
{
throw new AODLException("Exception while processing a content node.", ex);
}
}