patch output XML