XMLDocumentMBS Examples?

There are 3 examples for XML in the Monkeybread documentation, and they all relate to reading an existing file/data.

I am finding the Xojo XMLDocument quite slow on large data, and wonder if the MBS version is faster.
But I cannot find any examples of how to create nodes, children, and set attributes using this plugin

I need to create data like


<body>
<section1>
<item   attr1="Alpha"  attr2="beta"  attr3="12.3" />
<item   attr1="Alpha1"  attr2="beta7"  attr3="12.9" />
<item   attr1="Alpha3"  attr2="beta"  attr3="20" />
<section1/>
<section2>
<pet   type="cat"  attr2="beta"  age="12.3" />
<pet   attr1="dog"  attr2="beta7"  />
<pet   attr1="goldfish"   ages="0.5" />
<section2/>

<body/>

Actually, I have found that simply creating an array of strings and writing them to disc takes 1/3 of the time that is taken up by XMLDocument

Need to take care to wrap each node up properly, but it’s a major improvement for big XML files.