Refactored call-macro with methods from XMLNode.