implement various XML instance methods