org.deegree.commons.xml
Class StaXBugTest
java.lang.Object
org.deegree.commons.xml.StaXBugTest
public class StaXBugTest
- extends Object
Tests for a bug in the StaX implementation shipped with the Oracle/Sun JDK.
The problem is that multiple calls to XMLStreamWriter#setPrefix(String,String) can cause a prefix to be bound more
than once (which results in invalid XML). Interestingly, one and two calls lead to a single binding, but three calls
cause a double binding. Current workaround is to use Woodstox.
- Version:
- $Revision: $, $Date: $
- Author:
- Markus Schneider, last edited by: $Author: schneider $
Method Summary |
void |
testBindDefaultNS()
Test to document a failproof way to bind the default namespace without relying on a specific setting of the
IS_REPAIRING_NAMESPACES property (or a specific StAX implementation). |
void |
testForSetPrefixBug()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StaXBugTest
public StaXBugTest()
testForSetPrefixBug
public void testForSetPrefixBug()
throws XMLStreamException,
UnsupportedEncodingException
- Throws:
XMLStreamException
UnsupportedEncodingException
testBindDefaultNS
public void testBindDefaultNS()
throws XMLStreamException,
UnsupportedEncodingException
- Test to document a failproof way to bind the default namespace without relying on a specific setting of the
IS_REPAIRING_NAMESPACES
property (or a specific StAX implementation).
- Throws:
XMLStreamException
UnsupportedEncodingException
Copyright © 2011. All Rights Reserved.