/**
* Test an identity transform of an XML document with NS decls using a
* non-ns-aware parser. Output result to a StreamSource. Set ns-awareness to
* FALSE and prefixes to FALSE.
*/
@Test
public void testXMLNoNsAwareStreamResult1() {
try {
// Create SAX parser *without* enabling ns
SAXParserFactory spf = SAXParserFactory.newInstance();
spf.setNamespaceAware(false); // Same as default
spf.setFeature("http://xml.org/sax/features/namespace-prefixes", false);
SAXParser sp = spf.newSAXParser();
// Make sure that the output is well formed
String xml = runTransform(sp);
checkWellFormedness(xml);
} catch (Throwable ex) {
Assert.fail(ex.toString());
}
}
Bug6594813.java 文件源码
java
阅读 27
收藏 0
点赞 0
评论 0
项目:openjdk-jdk10
作者:
评论列表
文章目录