You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by ve...@apache.org on 2008/12/07 21:32:07 UTC

svn commit: r724193 - /webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/SAXOMBuilder.java

Author: veithen
Date: Sun Dec  7 12:32:06 2008
New Revision: 724193

URL: http://svn.apache.org/viewvc?rev=724193&view=rev
Log:
Don't try to add attributes twice in SAXOMBuilder#startElement.

Modified:
    webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/SAXOMBuilder.java

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/SAXOMBuilder.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/SAXOMBuilder.java?rev=724193&r1=724192&r2=724193&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/SAXOMBuilder.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/builder/SAXOMBuilder.java Sun Dec  7 12:32:06 2008
@@ -119,9 +119,6 @@
         
         int j = atts.getLength();
         for (int i = 0; i < j; i++) {
-            nextElem.addAttribute(atts.getLocalName(i), atts.getValue(i),
-                                  nextElem.findNamespace(atts.getURI(i), null));
-        
             OMAttribute attr = nextElem.addAttribute(atts.getLocalName(i), 
             										 atts.getValue(i),
             										 nextElem.findNamespace(atts.getURI(i), null));