Free up xml stuff when done.