private string LookupPrefix() { if (!string.ReferenceEquals(namespaceUri, null)) { string lookupPrefix = null; if (Element != null) { lookupPrefix = Element.LookupPrefix(namespaceUri); } else if (RootElement != null) { lookupPrefix = RootElement.LookupPrefix(namespaceUri); } return(lookupPrefix); } else { return(null); } }