eclipse-ee4j / eclipse-ee4j/jaxb-fi

supporting isRepairingNamespaces property

Open
#1 4 comments 0 reactions 1 assignee Claimed by @glassfishrobot View on GitHub
Component: core Priority: Major Type: New Feature
Dominant language
Java
Stars
12
Forks
9
Avg merge
1d 15h
Merged PRs (30d)
3

Description

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]

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.