I think we should have tests for this XML manipulation.