You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by ro...@apache.org on 2006/12/01 16:08:37 UTC

svn commit: r481260 - /incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/SDOXMLWriter.cpp

Author: robbinspg
Date: Fri Dec  1 07:08:36 2006
New Revision: 481260

URL: http://svn.apache.org/viewvc?view=rev&rev=481260
Log:
TUSCANY-962 Correct writing of element prefixes

Modified:
    incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/SDOXMLWriter.cpp

Modified: incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/SDOXMLWriter.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/SDOXMLWriter.cpp?view=diff&rev=481260&r1=481259&r2=481260
==============================================================================
--- incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/SDOXMLWriter.cpp (original)
+++ incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/SDOXMLWriter.cpp Fri Dec  1 07:08:36 2006
@@ -678,7 +678,7 @@
             // Don't write the element URI if the element is a child of an open type
             // and not one of the declared properties
             SDOXMLString uri = elementURI;
-            if (!isRoot && !writeXSIType)
+/*            if (!isRoot && !writeXSIType)
             {
                 DataObject* dob = dataObject;
                 DataObjectImpl* cont = 
@@ -693,7 +693,7 @@
                         }
                     }
                 }
-            }
+            } */
             
             //SDOXMLString uri;
             //if (!elementURI.equals(namespaceUriStack.top()))
@@ -906,7 +906,7 @@
                             
                             SDOXMLString theName=typeName;
             
-                            if (!typeURI.isNull() && !typeURI.equals(tnsURI) && !typeURI.equals(""))
+                            if (!typeURI.isNull() && !typeURI.equals(uri) && !typeURI.equals(""))
                             {
                                 std::map<SDOXMLString,SDOXMLString>::iterator it = namespaceMap.find(typeURI);
                                 if (it != namespaceMap.end())



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org