can i write a schema that all XML are valid to it ?

Posted by Gady on Stack Overflow See other posts from Stack Overflow or by Gady
Published on 2010-06-15T09:02:42Z Indexed on 2010/06/15 13:22 UTC
Read the original article Hit count: 207

Filed under:

Hi, i need to write a schema that all xml instances are valid to it. i tried:

      <xs:element name="Arguments">
    <xs:complexType>
      <xs:sequence>
         <xs:any namespace="##any" minOccurs="0" maxOccurs="unbounded" processContents="lax" />
      </xs:sequence>
    </xs:complexType>

but it enforces a root element named Arguments. is there a way for the root to be Any ?

© Stack Overflow or respective owner

Related posts about xml-schema