HM/TJ: added createElement and createSubElement to ease creation of lxmlNodes.