Export useful xml functions

I need this couple of methods, maybe we should add others only when requested.