W3C

AttributeElementNameClash Example

  <xs:element name="clientDetails" type="ex:ClientDetails"/>

  <xs:complexType name="ClientDetails">
        <xs:sequence>
          <xs:element name="forename" type="xs:string"/>
          <xs:element name="surname" type="xs:string"/>
          <xs:element name="title" type="xs:string"/>
        </xs:sequence>
        <xs:attribute name="phone" type="xs:string"/>
        <xs:attribute name="title" type="xs:int"/>
      </xs:complexType>

The example schema [AttributeElementNameClash.xsd] has been classified as being "" as it exhibits the following patterns:

Status Name XPath

To facilitate testing, the example schema element has been wrapped in the following descriptions:

The following valid instance documents are provided:

Instance Validity
AttributeElementNameClash01

  <ex:clientDetails phone="+15556667788" title="1">
        <ex:forename>Bobby</ex:forename>
        <ex:surname>Sox</ex:surname>
        <ex:title>Mr</ex:title>
      </ex:clientDetails>

This document was produced by the W3C XML Schema Patterns for Databinding Working Group. Comments on this document may be sent to the public public-xsd-databinding-comments@w3.org mailing list (public archive).

Generated from examples.xml $Date$