SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an issue with a SharePoint 2010 xml viewer webpart and an xml feed that contains DOCTYPE.

The xml renders fine when there is no associated XSL with the webpart. When I add XSL to the webpart I receive the following error: "Failed to apply XSLT to the content". I discovered that if I remove the <!DOCTYPE NewsML PUBLIC "+//W3C//DTD NewsML 1.0//EN" ""> element from the XML it will render just fine with the XSL.

share|improve this question
I am having the same issue, i have pretty much googled out and cannot find a resolution to this. Has anyone else got a suggestion on how to resolve this? – Nicholas King Mar 27 '13 at 13:03
@NicholasKing Hey I am facing the exact same problem. You say that we need to remove doctype from source XML to make it work but in my case there is no doctype defined in XML and still facing this issue. What could be the reason? – Frank Martin Jul 18 '13 at 9:44
@FrankMartin check for whitespace etc. the first thing that needs to be encountered is the opening xml decleration. – Nicholas King Jul 18 '13 at 12:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.