User account creation filtered due to spam.
I have an issue with XMLStreamWriter. I have a test case which works perfectly with Sun 6 and Sun 5 + StAX reference implementation from stax.codehaus.org, but it fails on GNU Classpath. The issue is that the validation seems too strong for the namespace, and it doesn't like writeNamespace() with a null prefix argument, although the documentation says:
> Writes a namespace to the output stream If the prefix argument to this method is the empty string, "xmlns", or null this method will delegate to writeDefaultNamespace
This is the result of running my test:
1) testWriter(gnu.xml.stream.XMLStreamWriterTest)java.lang.IllegalArgumentException: illegal NCName: null
Created attachment 18139 [details]
Created attachment 18141 [details]
Patch for bug 40653
Please can you test with the supplied patch, if so I will submit it.
Created attachment 18142 [details]
Updated patch, passes my testcase
Hi Chris, I have created an updated patch which fixes this bug. There may be more issues with the XML Stream, in particular support for the XML stream 1.0.1 API is missing
Module name: classpath
Changes by: Andrew John Hughes <gnu_andrew> 09/07/07 11:52:15
. : ChangeLog
gnu/xml/stream : XMLStreamWriterImpl.java
2009-07-06 Ludovic Claude <email@example.com>
Weaken testing of namespace prefix to match
reference implementation and spec.
Merged to gcj in libgcj-snapshot-20100921.