Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.5.7
-
None
-
None
Description
NamespaceBuilder does not create child nodes
@Test void testNamespaceBuilder() { def n = new Namespace('http://foo/bar') def builder = new NamespaceBuilder(new NodeBuilder()).namespace(n.uri) Node node = builder.crap(id:"3") { bucket(name:"foo") } // ** this prints out only the "crap" element, not its child new XmlNodePrinter().print(node) // *** fails assert node[n.bucket][0].@name == 'foo' }
If I'm not missing something here then the bug is in NamespaceBuidlerSupport (it doesn't do anything with the BuilderSupport instance that you pass into the constructor).