Exemplo n.º 1
0
 private void AddNamespaces(XElement e, NamespaceScope scope)
 {
     foreach (var a in e.Attributes())
     {
         if (a.Name.LocalName == "xmlns")
         {
             scope.AddPrefix("", StripClrPrefix(a.Value));
         }
         else if (a.Name.Namespace == XmlNsUri)
         {
             scope.AddPrefix(a.Name.LocalName, StripClrPrefix(a.Value));
         }
     }
 }