Exemple #1
0
 public XmlDocElement(string elementName, XmlDocument xmlDocument, XmlElement xmlElement, XmlDocElementCollection xmlElementCollection)
 {
     _elementName          = elementName;
     _xmlDocument          = xmlDocument;
     _xmlElement           = xmlElement;
     _xmlElementCollection = xmlElementCollection;
 }
Exemple #2
0
        public XmlDocElement GetElementFromPath(string path)
        {
            XmlDocElement           element = null;
            XmlDocElementCollection parent  = this;

            string[] elementNames = path.Trim('/').Split('/');
            foreach (string elementName in elementNames)
            {
                element = parent[elementName];
                parent  = element;
            }

            return(element);
        }