Author: fmantek
Date: Mon Sep 24 02:00:21 2007
New Revision: 266

Modified:
   trunk/clients/cs/src/extensions/extensionbase.cs

Log:
Fixed ProcessAttributes to always process all attributes (Ryan Propper)

Modified: trunk/clients/cs/src/extensions/extensionbase.cs
==============================================================================
--- trunk/clients/cs/src/extensions/extensionbase.cs    (original)
+++ trunk/clients/cs/src/extensions/extensionbase.cs    Mon Sep 24 02:00:21 2007
@@ -153,19 +153,14 @@
         /// <param name="node">XmlNode with attributes</param>
         public virtual void ProcessAttributes(XmlNode node)
         {
-            if (this.attributes != null)
+            if (node != null)
             {
-                for (int i=0; i < this.getAttributes().Count; i++)
+                for (int i = 0; i < node.Attributes.Count; i++)
                 {
-                    string name = this.getAttributes().GetKey(i) as string;
-                    string value = getAttribute(node, name);
-                    if (value != null)
-                    {
-                        this.getAttributes()[name] = value;
-                    }
+                    this.getAttributes()[node.Attributes[i].LocalName] = 
node.Attributes[i].Value; 
                 }
-                return;
             }
+            return;
         }
 
         /// <summary>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Data API" group.
To post to this group, send email to google-help-dataapi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to