コード例 #1
0
        public static AXmlElement GetRoot(AXmlDocument xDoc)
        {
            AXmlObjectCollection <AXmlObject> elements = xDoc.Children;

            foreach (AXmlObject obj in elements)
            {
                if ((obj as AXmlElement) != null)
                {//첫번째 만나는 Tag가 Root이다.
                    return(obj as AXmlElement);
                }
            }
            return(null);
        }
コード例 #2
0
		/// <summary> Create new container </summary>
		public AXmlContainer()
		{
			this.Children = new AXmlObjectCollection<AXmlObject>();
		}