XMLElement elm = new XMLElement(null, "foo", null, new Attribute[]{new Attribute("attr1", "val&ue1")}, null);
assertRendering("<foo attr1=\"val&ue1\"></foo>", elm);
}
public void testRenderAttributeWithQuot() {
XMLElement elm = new XMLElement(null, "foo", null, new Attribute[]{new Attribute("attr1", "val\"ue1")}, null);
assertRendering("<foo attr1=\"val"ue1\"></foo>", elm);
}