How do you convert SQL Server SELECT into XML in Mule 4?
问题 How can I convert the following SQL output into XML using Dataweave in Mule 4? SELECT s.RefId ,s.LocalId ,s.StateProvinceId ,s.SchoolName ,e.Email ,e.EmailType FROM SchoolInfo s LEFT OUTER JOIN SchoolEmail e ON e.SchoolRefId = s.RefId WHERE s.RefId = :ref_id The output in SQL is: RefId LocalId StateProvinceId SchoolName Email Type 7FDF722B-6BBA-4BF0-8205-A5380B269EF1 1 SA Steve's School steven@gmail.com prm 7FDF722B-6BBA-4BF0-8205-A5380B269EF1 1 SA Steve's School test@gmail.com sec The XML