Above needs an enhancement using a JavaObject.
Have looked at the source code of the xml builder used by B4J
here and found setXmlStandalone method is required.
Did test below enhancement:
...
SetStandalone(x, True)
props.Put("standalone", "yes")
...
Sub SetStandalone(x As XMLBuilder, b As Boolean)
Dim joXML As JavaObject = x
joXML.RunMethodJO("getDocument", Null).RunMethod("setXmlStandalone", Array(b))
End Sub
Result:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>