Example #1
0
            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);
            }
Example #2
0
 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);
 }
Example #3
0
 internal XElement ProcessXElement(XElement elem)
 {
     return(InternalXmlHelper.RemoveNamespaceAttributes(this.m_inScopePrefixes, this.m_inScopeNs, this.m_attributes, elem));
 }