HasChildren method changes

In version 2021 or earlier, the newly created PBDOM_ATTRIBUTE object will by default contain a node; while in version 2022, the newly created PBDOM_ATTRIBUTE object will by default contain no node.

Therefore, the HasChildren method will return false in 2022, if settext() is not called for a newly created attribute.

dom_attribute = create pbdom_attribute
dom_attribute.setname("root")
dom_attribute.haschildren()    //Returns false in 2022