Example #1
0
			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());
			}
Example #2
0
		private string GetExistingPrefixFor(Rhino.Xmlimpl.XmlNode.Namespace @namespace)
		{
			if (GetDefaultNamespace().GetUri().Equals(@namespace.GetUri()))
			{
				return string.Empty;
			}
			return dom.LookupPrefix(@namespace.GetUri());
		}