[xsd-users] Problem when serializing when schemaLocation has more than one namespace

Ray Lischner rlischner at proteus-technologies.com
Thu Jan 18 16:45:29 EST 2007


I have a schema split across two files, each with its own namespace.
When I
serialize, I supply a namespace map with both namespaces. The resulting
schemaLocation attribute omits a space between them. The following patch
against 2.3.0 and 2.3.1.b2 fixes the problem:


--- libxsd/xsd/cxx/xml/dom/serialization.txx.orig	2007-01-18
15:57:24.000000000 -0500
+++ libxsd/xsd/cxx/xml/dom/serialization.txx	2007-01-18
15:58:05.000000000 -0500
@@ -172,6 +172,8 @@
               }
               else
               {
+                if (!schema_location.empty())
+                  schema_location += space;
                 schema_location += i->second.name + space +
i->second.schema;
               }
             }

--
Ray Lischner

-------------- next part --------------
A non-text attachment was scrubbed...
Name: schemaLocation.patch
Type: application/octet-stream
Size: 444 bytes
Desc: schemaLocation.patch
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20070118/c6564b81/schemaLocation.obj


More information about the xsd-users mailing list