StringWriter w = new StringWriter();
ToXMLStream xml = new ToXMLStream();
xml.setWriter(w);
xml.setOmitXMLDeclaration(true);
xml.startElement("uri", "localName", "name", null);
xml.endElement("uri", "localName", "name");
assertEquals("<name xmlns=\"uri\"/>", w.toString());
}
public void testFile() throws Exception{