XMLElement elm = new XMLElement(null, "foo", null, new Attribute[]{new Attribute("attr1", "val<ue1")}, null);
assertRendering("<foo attr1=\"val<ue1\"></foo>", elm);
}
public void testRenderNamespacedAttribute() {
XMLElement elm = new XMLElement(null, "foo", null, new Attribute[]{
new Attribute("http://example.com", "attr1", "value1"),
new NamespaceAttribute("pr1", "http://example.com")
}, null);
assertRendering("<foo xmlns:pr1=\"http://example.com\" pr1:attr1=\"value1\"></foo>", elm);
}