iFocus.Life News News - Breaking News & Top Stories - Latest World, US & Local News,Get the latest news, exclusives, sport, celebrities, showbiz, politics, business and lifestyle from The iFocus.Life,

Simple XSD Types

104 12
    • XML schemas define the different types of elements that can be used in XML documents. There are a lot of XML simple elements, but a select few are common throughout almost all XML documents. Once you know which elements are linked with the XML simple schemas, you will be able to use the basic elements in similar ways as stylesheets within HTML.

    xs:string

    • The xs:string schema is used for basic text information such as names, places or titles. In the XML section of the document you could type, as an example: <xs:element name="placename" type="xs:string" />. Then you would use the <placename> and </placename> tags to enclose a basic text string for that characteristic.

    xs:integer

    • The xs:integer schema is used for basic number information, excluding dates. If you wanted to enter the quantity, age or volume of something, use the integer schema. In the XML section of code you would use, in the example of quantity:

      <xs:element name="quantity" type="xs:integer" />, then use the <quantity> and </quantity> tags to signify the numerical information in a quantity characteristic.

    xs:date and xs:time

    • The xs:date and xs:time schemas are used to designate dates and times in XML coding. You would enter these codes into the XML headers: <xs:element name="date" type="xs:date" /> and <xs:element name="time" type="xs:time" />. As with the other XML tags you'd use the element's name to enter the information. The <date> and <time> tags would be used respectively.

Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time
You might also like on "Technology"

Leave A Reply

Your email address will not be published.