private bool NamespacesEqual(Rhino.Xmlimpl.XmlNode.Namespace one, Rhino.Xmlimpl.XmlNode.Namespace two) { if (one == null && two == null) { return true; } if (one == null || two == null) { return false; } return Equals(one.GetUri(), two.GetUri()); }
private string GetExistingPrefixFor(Rhino.Xmlimpl.XmlNode.Namespace @namespace) { if (GetDefaultNamespace().GetUri().Equals(@namespace.GetUri())) { return string.Empty; } return dom.LookupPrefix(@namespace.GetUri()); }