Root Element Missing

Feb 14, 2013 at 4:27 AM
During testing the "Actual" xml is being written out to the directory empty. Which causes test to fail because the root element is missing. Do you have any idea why the "Actual" is being written empty?
Feb 16, 2013 at 10:25 AM
Hi fugeeboy,

This looks like a map problem. It can have multiple causes but most likely the root of the source xml file does not match source schema. As a result, the map does not recognize the root tag and the actual xml file will remain empty.
Feb 17, 2013 at 6:28 AM
Thank you!, Your tip helped me alot. I removed the xml tag and everything works now. Thanks again.

<?xml version="1.0" encoding="utf-8"?>
Jun 17, 2014 at 10:38 AM
Hi everyone,

Apparently i'm having exactly the same problem as fugeeboy,

It's also displaying the error: "Root Element Missing" due to the fact that there's something wrong with the xml encoding.

After some research i understood that BizTalk's default encoding is utf-16.

Is it safe to remove the xml tag?
Jun 23, 2014 at 5:01 AM
For the mtf, it is safe to remove the xml tag. It's only testing the xslt.