Refactoring: using methods in XMLNode.
Refactoring: using methods in XMLNode.