public void testSingleElement() throws Exception
{
Document doc = getDocument();
Element e = doc.createElementNS("urn:test","root");
e.setAttribute("xmlns", "urn:test");
doc.appendChild(e);
assertEquals(1, e.getAttributes().getLength());
System.out.println("start: " + XMLStreamReader.START_ELEMENT);
System.out.println("attr: " + XMLStreamReader.ATTRIBUTE);
System.out.println("ns: " + XMLStreamReader.NAMESPACE);