4

I am generating an XML file from a VB.NET app. The document was generating fine before I tried to add nillable elements. I am now testing putting in just one nil element as:

<blah xsi:nil="true"></blah>

Once this element is in place and I try to view the XML file in IE it is unable to display. I am receiving:

The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


The operation completed successfully. Error processing resource

If I remove this one element it displays fine again. What am I missing here?

James A Mohler
  • 11,060
  • 15
  • 46
  • 72
Matt
  • 2,078
  • 2
  • 27
  • 40
  • 1
    Can you post your XSD and sample XML? – Mads Hansen Dec 30 '09 at 18:28
  • 3
    If you work a lot with XML in the browser, my advice is to get a recent version of Opera. it has got by far the most informational error messages for XML/XSLT related problems. Load your XML inn opera, then do Menu>tools>advanced>error console. you'll get good messages, line numbers and column numbers. Much better XML support than either IE or FF or chrome or safari. – Roland Bouman Dec 30 '09 at 18:35

1 Answers1

10

Do you have xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" to declare the xsi namespace set on the root element of your XML?

lavinio
  • 23,931
  • 5
  • 55
  • 71