namespaceURIs.setProperty("n", "http://test");//$NON-NLS-1$ //$NON-NLS-2$
NodeDescriptor descriptor = NodeDescriptor.createNodeDescriptor("E1", "n", true, null, namespaceURIs, null, false, null, MappingNodeConstants.NORMALIZE_TEXT_PRESERVE);//$NON-NLS-1$//$NON-NLS-2$
Element element = new Element(descriptor, handler);
element.setContent("test"); //$NON-NLS-1$
element.startElement();
element.endElement();
handler.endDocument();
assertEquals(new String(streamResultHolder.toCharArray()), "<?xml version=\"1.0\" encoding=\"UTF-8\"?><n:E1 xmlns:n=\"http://test\">test</n:E1>");//$NON-NLS-1$
}
public void testNamespace2()throws Exception{