Index: src/main/java/org/exolab/castor/xml/util/AnyNode2SAX2.java
===================================================================
--- src/main/java/org/exolab/castor/xml/util/AnyNode2SAX2.java (Revision 7385)
+++ src/main/java/org/exolab/castor/xml/util/AnyNode2SAX2.java (Arbeitskopie)
@@ -185,7 +185,7 @@
}// attributes
// -- namespace management
- _context = _context.createNamespaces();
+// _context = _context.createNamespaces();
String nsPrefix = node.getNamespacePrefix();
String nsURI = node.getNamespaceURI();
@@ -228,6 +228,7 @@
// -- handle child&daughter elements
tempNode = node.getFirstChild();
while (tempNode != null) {
+ _context = _context.createNamespaces();
processAnyNode(tempNode, handler);
tempNode = tempNode.getNextSibling();
}
Index: src/doc/release-notes.xml
===================================================================
--- src/doc/release-notes.xml (Revision 7385)
+++ src/doc/release-notes.xml (Arbeitskopie)
@@ -400,6 +400,28 @@
unnecessary casts.
+
+
+ Fixed problem where marshaller won't correctly handle situations
+ where a namespace URI is bound to more than one prefix on
+ sibling AnyNode elements, i.e. preserve the namespace prefices.
+
+
+ Vikas Rawat
+ vikas.rawat@gmail.com
+
+
+ Werner Guttmann
+ wguttmn@codehaus.org
+
+
+ Vikas Rawat
+ vikas.rawat@gmail.com
+
+ Bug.
+ Gen.
+ 20080118
+
Added support for usage of 'mixed="1"' attributes for XML code generation.
Index: xmlctf/tests/MasterTestSuite/mapping/anyNode/preserveNamespacePrefices/mapping.xml
===================================================================
--- xmlctf/tests/MasterTestSuite/mapping/anyNode/preserveNamespacePrefices/mapping.xml (Revision 0)
+++ xmlctf/tests/MasterTestSuite/mapping/anyNode/preserveNamespacePrefices/mapping.xml (Revision 0)
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
Eigenschafts„nderungen: xmlctf\tests\MasterTestSuite\mapping\anyNode\preserveNamespacePrefices\mapping.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Index: xmlctf/tests/MasterTestSuite/mapping/anyNode/preserveNamespacePrefices/Entity.java
===================================================================
--- xmlctf/tests/MasterTestSuite/mapping/anyNode/preserveNamespacePrefices/Entity.java (Revision 0)
+++ xmlctf/tests/MasterTestSuite/mapping/anyNode/preserveNamespacePrefices/Entity.java (Revision 0)
@@ -0,0 +1,12 @@
+public final class Entity {
+
+ private Object name;
+
+ public Object getName() {
+ return name;
+ }
+
+ public void setName(final Object name) {
+ this.name = name;
+ }
+}
Eigenschafts„nderungen: xmlctf\tests\MasterTestSuite\mapping\anyNode\preserveNamespacePrefices\Entity.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Index: xmlctf/tests/MasterTestSuite/mapping/anyNode/preserveNamespacePrefices/TestDescriptor.xml
===================================================================
--- xmlctf/tests/MasterTestSuite/mapping/anyNode/preserveNamespacePrefices/TestDescriptor.xml (Revision 0)
+++ xmlctf/tests/MasterTestSuite/mapping/anyNode/preserveNamespacePrefices/TestDescriptor.xml (Revision 0)
@@ -0,0 +1,38 @@
+
+
+
+
+ Test unmarshalling & marshalling of AnyNode where the same namespace URI is
+ used for two elements, but assigned to different prefices.
+
+ Werner Guttmann
+
+
+ Tests that the unmarshaller will correctly handle situations where a namespace URI
+ is bound to more than one prefix on sibling elements, i.e. preserve the namespace
+ prefices.
+
+
+
+ Vikas Rawat
+ 2008-01-18
+ 2008-01-18
+ http://jira.codehaus.org/browse/CASTOR-2265
+
+
+ basic capability
+
+
+
+ Entity
+
+
+ Simple Test
+ mapping.xml
+ input.xml
+ input.xml
+
+
+
+
+
Eigenschafts„nderungen: xmlctf\tests\MasterTestSuite\mapping\anyNode\preserveNamespacePrefices\TestDescriptor.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Index: xmlctf/tests/MasterTestSuite/mapping/anyNode/preserveNamespacePrefices/input.xml
===================================================================
--- xmlctf/tests/MasterTestSuite/mapping/anyNode/preserveNamespacePrefices/input.xml (Revision 0)
+++ xmlctf/tests/MasterTestSuite/mapping/anyNode/preserveNamespacePrefices/input.xml (Revision 0)
@@ -0,0 +1,11 @@
+
+
+
+
+ John
+
+
+ Right
+
+
+
\ Kein Zeilenvorschub am Ende der Datei
Eigenschafts„nderungen: xmlctf\tests\MasterTestSuite\mapping\anyNode\preserveNamespacePrefices\input.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native