public void testRenderInnerNamespacedElement() {
XMLElementBuilder builder = new XMLElementBuilder("foo", "http://example.com");
builder.addNamespaceAttribute("pr", "http://other.com");
builder.startInnerElement("bar", "http://other.com");
assertRendering("<foo xmlns:pr=\"http://other.com\" xmlns=\"http://example.com\"><pr:bar></pr:bar></foo>", builder.build());
}
public void testRenderInnerInheritedDefaultNamespaceElement() {
XMLElementBuilder builder = new XMLElementBuilder("foo", "http://example.com");
builder.startInnerElement("bar", "http://example.com");