Glen Daniels wrote:
Hi Alek:
Unfortunately this version still seems to have problems with
multiple namespaces when repairing is switched on. :( The version
that I get when I maven from the SVN source that I picked up
yesterday works great, but the one you refer to above doesn't.
yes! i was doing built from codehaus and i forgot to run svn up :(
[...]
please try now. should i cut it as a new version.
No, that's great as is, thanks! But you should look into the other
bug at some point. Reminder:
XMLOutputFactory xmlOutputFactory = XMLOutputFactory.newInstance();
xmlOutputFactory.setProperty("javax.xml.stream.isRepairingNamespaces",
Boolean.TRUE);
XMLStreamWriter writer =
xmlOutputFactory.createXMLStreamWriter(System.out);
writer.writeStartElement("http://ns1", "foo");
writer.writeNamespace("d", "http://ns1");
writer.writeEndElement();
writer.flush();
Now generates:
<ns1:foo xmlns:d="http://ns1"/>
I think it should either be:
<ns1:foo xmlns:ns1="http://ns1" xmlns:d="http://ns1"/>
or
<d:foo xmlns:d="http://ns1"/>
(I prefer the 2nd, but it does involve a little more backtracking)
:) ok i check into it :))))
alek
Thanks,
--Glen
--
The best way to predict the future is to invent it - Alan Kay