public XmlDocElement(string elementName, XmlDocument xmlDocument, XmlElement xmlElement, XmlDocElementCollection xmlElementCollection) { _elementName = elementName; _xmlDocument = xmlDocument; _xmlElement = xmlElement; _xmlElementCollection = xmlElementCollection; }
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); }