Adds XML utility methods.

This patch adds support for basic XML utility methods.