element with type xsd:string : string « XML Schema « XML






element with type xsd:string



File: Data.xml
<?xml version="1.0"?>
<fullName xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:noNamespaceSchemaLocation="Schema.xsd">
   James Bond
</fullName>


File: Schema.xsd
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 <xsd:element name="fullName" type="xsd:string"/>
</xsd:schema>

 








Related examples in the same category

1.restruction based on string type
2.Enumeration of string value
3.String value based on pattern