dev@fi.java.net

About supporting isRepairingNamespaces property

From: Changshin Lee <iasandcb_at_gmail.com>
Date: Wed, 13 Jul 2005 23:57:28 +0100

I found that FIME StAX didn't support
javax.xml.stream.isRepairingNamespaces property. Here's a test case for
that.

    public void testRepairingNamespaces() {
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        StAXOutputFactory factory = new StAXOutputFactory();
        factory.setProperty(XMLOutputFactory.IS_REPAIRING_NAMESPACES,
Boolean.TRUE);
        try {
            XMLStreamWriter writer = factory.createXMLStreamWriter(baos);
            writer.writeStartDocument();
            writer.writeStartElement("urn:local", "test");
            writer.writeEndElement();
            writer.writeEndDocument();
            writer.flush();
            writer.close();
           
        } catch (XMLStreamException e) {
            e.printStackTrace();
        }
       
    }

It works fine on StAX RI, but doesn't work on FIME StAX with an
exception. Could you check this out on FISE?

Thanks,

Ias