1 <?xml version="1.0"?> 2 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> 3 <xsd:element name="root"> 4 <xsd:complexType> 5 <xsd:attribute name="foo" type="xsd:string" default="value"/> 6 </xsd:complexType> 7 </xsd:element> 8 </xsd:schema>