AODL.Document.Import.OpenDocument.NodeProcessors.MainContentProcessor.CreateMainContent C# (CSharp) Метод

CreateMainContent() публичный Метод

Creates the content.
public CreateMainContent ( XmlNode node ) : void
node System.Xml.XmlNode The node.
Результат void
		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);
			}
		}