HandCoded.Meta.SchemaRelease.NewFragment C# (CSharp) Method

NewFragment() public method

Create a new XmlDocument instance which will hold a fragment of a document based on the grammar represented by this release.
public NewFragment ( string rootElement ) : XmlDocument
rootElement string The name of the root element.
return System.Xml.XmlDocument
        public override XmlDocument NewFragment(string rootElement)
        {
            XmlDocument		document = new XmlDocument ();
            XmlElement		element  = document.CreateElement (rootElement, namespaceUri);

            element.SetAttribute ("xmlns:xsi", INSTANCE_URL);
            document.AppendChild (element);

            return (document);
        }