예제 #1
0
        private void build_from_xml_doc(System.Xml.XmlDocument xmlDocument, VA.Models.Tree.Drawing tree_drawing)
        {
            var n = new VA.Models.Tree.Node();

            tree_drawing.Root = n;
            n.Text            = new VA.Text.Markup.TextElement(xmlDocument.Name);
            this.build_from_xml_element(xmlDocument.DocumentElement, n);
        }
예제 #2
0
        private void build_from_xml_element(System.Xml.XmlElement x, VA.Models.Tree.Node parent)
        {
            foreach (System.Xml.XmlNode xchild in x.ChildNodes)
            {
                if (xchild is System.Xml.XmlElement)
                {
                    var nchild = new VA.Models.Tree.Node();
                    nchild.Text = new VA.Text.Markup.TextElement(xchild.Name);

                    parent.Children.Add(nchild);
                    build_from_xml_element((System.Xml.XmlElement)xchild, nchild);
                }
            }
        }
예제 #3
0
        private void build_from_xml_element(XmlElement x, VisioAutomation.Models.Tree.Node parent)
        {
            foreach (XmlNode xchild in x.ChildNodes)
            {
                if (xchild is XmlElement)
                {
                    var nchild = new VisioAutomation.Models.Tree.Node();
                    nchild.Text = new VisioAutomation.Text.Markup.TextElement(xchild.Name);

                    parent.Children.Add(nchild);
                    this.build_from_xml_element((XmlElement)xchild, nchild);
                }
            }
        }
        private void build_from_xml_doc(XmlDocument xmlDocument, VisioAutomation.Models.Tree.Drawing tree_drawing)
        {
            var n = new VisioAutomation.Models.Tree.Node();
            tree_drawing.Root = n;
            n.Text = new VisioAutomation.Text.Markup.TextElement(xmlDocument.Name);
            this.build_from_xml_element(xmlDocument.DocumentElement,n);

        }
        private void build_from_xml_element(XmlElement x, VisioAutomation.Models.Tree.Node parent)
        {
            foreach (XmlNode xchild in x.ChildNodes)
            {
                if (xchild is XmlElement)
                {
                    var nchild = new VisioAutomation.Models.Tree.Node();
                    nchild.Text = new VisioAutomation.Text.Markup.TextElement(xchild.Name);

                    parent.Children.Add(nchild);
                    this.build_from_xml_element( (XmlElement) xchild, nchild);
                }
            }
        }
예제 #6
0
        private void build_from_xml_element(System.Xml.XmlElement x, VA.Models.Tree.Node parent)
        {
            foreach (System.Xml.XmlNode xchild in x.ChildNodes)
            {
                if (xchild is System.Xml.XmlElement)
                {
                    var nchild = new VA.Models.Tree.Node();
                    nchild.Text = new VA.Text.Markup.TextElement(xchild.Name);

                    parent.Children.Add(nchild);
                    build_from_xml_element( (System.Xml.XmlElement) xchild, nchild);
                }
            }
        }