Subject: | Invalid XML generated (multiple namespaces prepended) |
Invalid XML is generated in some circumstances. Specifically a prefix
with multiple namespaces, eg 'ns:ns:'.
Proposed fix:
--- XSD.pm 2011-02-10 14:51:37.000000000 -0800
+++ XSD.pm.orig 2011-02-10 11:34:11.000000000 -0800
@@ -66,7 +66,7 @@
# TODO This one wipes out the old class' XML name globally
# Fix in some more appropriate place...
- $data->__set_name("$opt->{prefix}:" . $data->__get_name() ) if
$opt->{prefix} && $data->__get_name() !~ /:/;
+ $data->__set_name("$opt->{prefix}:" . $data->__get_name() ) if
$opt->{prefix};
# Body is NOT optional. Serialize to empty body
# if we have no data.