internal object ProcessObject(object obj)
            {
                XElement xelement = obj as XElement;
                object   result;

                if (xelement != null)
                {
                    result = InternalXmlHelper.RemoveNamespaceAttributes(this.m_inScopePrefixes, this.m_inScopeNs, this.m_attributes, xelement);
                }
                else
                {
                    result = obj;
                }
                return(result);
            }
 public static object RemoveNamespaceAttributes(string[] inScopePrefixes, XNamespace[] inScopeNs, List <XAttribute> attributes, object obj)
 {
     if (obj != null)
     {
         XElement xelement = obj as XElement;
         if (xelement != null)
         {
             return(InternalXmlHelper.RemoveNamespaceAttributes(inScopePrefixes, inScopeNs, attributes, xelement));
         }
         IEnumerable enumerable = obj as IEnumerable;
         if (enumerable != null)
         {
             return(InternalXmlHelper.RemoveNamespaceAttributes(inScopePrefixes, inScopeNs, attributes, enumerable));
         }
     }
     return(obj);
 }
 internal XElement ProcessXElement(XElement elem)
 {
     return(InternalXmlHelper.RemoveNamespaceAttributes(this.m_inScopePrefixes, this.m_inScopeNs, this.m_attributes, elem));
 }