ah, the setAttribute for non-existing attributes hadn't crossed my mind. that's way more elegant.

point taken on 'how people talk about DOM/XML', but one more idea regarding naming: could `setCurrentElementTo*` be shortened to `moveTo*` or is that too obtuse? :)

i'm all for explicit function names but just trying to avoid lots of looong ofXml code.