Applying xmlEncode with List.map + extracted xml from the processing to avoid having the xml tags being encoded