XSL Transform C # - Missing Root Element

First time reading poster!

My question is about direct ...

XML source: http://pastebin.com/xHnv20Ej XSLT: http://pastebin.com/bAk6sZ9V

I am trying to convert XML using XSLT. All the editors I used confirmed the formatting of both files and the successful conversion.

As soon as I use the XslTransform class in C #, I get the "No root element" exception.

XslTransform myXslTransform;
myXslTransform = new XslTransform();
myXslTransform.Load(Utility.getTransformerToUse());
myXslTransform.Transform(fullPath, targetFile);

As far as I can see, all root elements are present, and no other transformer has this problem. Is there something I am missing regarding the C # XSLTransform class?

Many thanks.

+5
source share
1 answer

! - XML XMLValidatingReader, ! , , , .. lol.

0

All Articles