AODL.Document.SpreadsheetDocuments.SpreadsheetDocument.CreateNode C# (CSharp) 메소드

CreateNode() 공개 메소드

Create a new XmlNode for this document.
public CreateNode ( string name, string prefix ) : XmlNode
name string The elementname.
prefix string The prefix.
리턴 System.Xml.XmlNode
		public XmlNode CreateNode(string name, string prefix)
		{
			
			if (this.XmlDoc == null)
				throw new NullReferenceException("There is no XmlDocument loaded. Couldn't create Node "+name+" with Prefix "+prefix+". "+this.GetType().ToString());
			string nuri = this.GetNamespaceUri(prefix);
			return this.XmlDoc.CreateElement(prefix, name, nuri);
		}