[PDI-11938]: XML Output not well-formed when '&' char in attribute

There are a fix and unit test.