<?xml version="1.0"?> | |
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" | |
targetNamespace="http://example.com/xsd/ns" | |
elementFormDefault="qualified" | |
attributeFormDefault="qualified"> | |
<xsd:element name="foo"> | |
<xsd:complexType> | |
<xsd:simpleContent> | |
<xsd:extension base="xsd:string"> | |
<xsd:attribute name="id" type="xsd:ID"/> | |
</xsd:extension> | |
</xsd:simpleContent> | |
</xsd:complexType> | |
</xsd:element> | |
</xsd:schema> | |