w3schools
  
HOME HTML CSS XML JAVASCRIPT ASP PHP SQL MORE...   References Examples Forum About

XML Schema simpleContent Element


XML Schema Reference Complete XML Schema Reference

Definition and Usage

The simpleContent element contains extensions or restrictions on a text-only complex type or on a simple type as content and contains no elements.

Element Information

  • Parent elements: complexType

Syntax

<simpleContent
id=ID
any attributes
>

(annotation?,(restriction|extension))

</simpleContent>

(The ? sign declares that the element can occur zero or one time inside the simpleContent element)

Attribute Description
id Optional. Specifies a unique ID for the element
any attributes Optional. Specifies any other attributes with non-schema namespace

Example 1

Here is an example of an XML element (<shoesize>) that contains text-only:

<shoesize country="france">35</shoesize>

The following example declares a complexType, "shoesize", with its content defined as a integer data type and with a country attribute:

<xs:element name="shoesize">
  <xs:complexType>
    <xs:simpleContent>
      <xs:extension base="xs:integer">
        <xs:attribute name="country" type="xs:string" />
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
</xs:element>


XML Schema Reference Complete XML Schema Reference

1,050,724 Sites built with Wix. Make your own!

Click here to design a Stunning Flash Website for Free

Wix is a revolutionary web design tool that provides anyone with the possibility to create professional and beautiful websites for free.

With e-commerce features, search engine visibility and many more professional tools, Wix is the ultimate solution for creating a spectacular site while saving tons of money.



FUNC Travel
WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Top 10 Web Hosting
UK Reseller Hosting
Web Hosting
FREE Web Hosting
Top Web Hosting
Windows Hosting
WEB BUILDING
Download XML Editor
FREE Flash Website
FREE Web Templates
FLIGHT TICKETS
Find the cheapest flight
to any destination now!
EDUCATION
US Web Design Schools
HTML Certification
JavaScript Certification
XML Certification
PHP Certification
ASP Certification
STATISTICS
Browser Statistics
Browser OS
Browser Display