Export useful xml functions

I need this couple of methods, maybe we should add others only when requested.
This should have documentation before being exported.