Open Tomas-Kraus opened 19 years ago
@glassfishrobot Commented Reported by iasandcb
@glassfishrobot Commented sandoz said: The is repairing namespace feature of the FI StAX serializer is not implemented.
@glassfishrobot Commented This issue was imported from java.net JIRA FI-1
I found that FI 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(); }
}
Environment
Operating System: All Platform: All
Affected Versions
[current]