简体   繁体   中英

Using xsi:nil in XML

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?

您是否具有xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"来声明在XML的根元素上设置的xsi命名空间?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM