Jump to content

Search the Community

Showing results for tags 'XML Schema wildcard'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 1 result

  1. Hello, I created an .xsd schema to deserialize an XML stream (see below). The deserialzation works perfectly right now. My issue is, I would like to use the template to deserialize other objects in addition to the CustomModule1 element. The schemas are exactly the same, only the element name would change. Is there a way to use a wildcard for the name of CustomModule1 so that it would accept any name there (e.g. CustomModule2, CustomModule3...)? I looked at using xs:any, but I could not figure out how to make that work in my schema. Thanks. Bryan Hunt <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="response"> <xs:complexType> <xs:sequence> <xs:element ref="result"/> </xs:sequence> <xs:attribute name="uri" type="xs:string"/> </xs:complexType> </xs:element> <xs:element name="result"> <xs:complexType> <xs:sequence> <xs:element ref="CustomModule1"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="CustomModule1"> <xs:complexType> <xs:sequence> <xs:element ref="row" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="row"> <xs:complexType> <xs:sequence> <xs:element ref="FL" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="no" type="xs:string"/> </xs:complexType> </xs:element> <xs:element name="FL"> <xs:complexType> <xs:simpleContent> <xs:extension base="xs:string"> <xs:attribute name="val"/> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element> </xs:schema>
×
×
  • Create New...