Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Scriptom
-
Labels:None
-
Number of attachments :
Description
writer = new java.io.StringWriter()
builder = new groovy.xml.MarkupBuilder(writer)
customers = builder.customers() {
acustomer = builder.cusomer(name:"John")
builder.setCurrent(acustomer)
builder.order()
}
println writer.toString()
/* the output is
<customers>
<customer name='John' />
<order />
</customers>
*/
But if I let builder be NodeBuilder. e.g.
builder = new groovy.util.NodeBuilder()
the logic of customers is like
<customers>
<customer name='John' >
<order/>
</customer>
</customers>
maybe the component of this bug is JDK. But I don't know how to change the component. Even I don't know whether it is possible to modify the component