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._document.Content);
//this._document.Content.Add(iContent);
else
{
this.OnWarning(new AODLWarning("A couldn't create any content from an an first level node!.", nodeChild));
}
}
}
catch(Exception ex)
{
throw new AODLException("Exception while processing a content node.", ex);
}
}