#12 Made XMLDocument immutable