Now prints xml closing tags correctly.