Export useful xml functions

I need this couple of methods, maybe we should add others only when requested.
This param doc could be improved, and the function deserves a description as well.