views:

10

answers:

0

Some background: I'm investigating porting our existing WebForms project to ASP.NET MVC coupled with client-side XSL manipulation to hopefully reduce our bandwidth usage and, y'know, not use WebForms.

As a result of this, my .aspx files are actually outputting XML rather than HTML, and I get a huge load of validation errors. I know I can turn off the errors, but I'd rather generate my own schema that I can add to in the future. I've done my research on adding custom schemas, and that's working fine. However, I can't for the life of me make an XSD schema that allows any element in any place. I figured something like this would work (assuming a root <document> element:

<xs:element name="document">
    <xs:complexType>
        <xs:sequence>
            <xs:any maxOccurs="unbounded" processContents="skip" />
        </xs:sequence>
    </xs:complexType>
</xs:element>

..but it doesn't. Visual Studio tells me that "Element 'document' is not supported". Any ideas?