MyArticle » Computers » Programming » A guide To XML Data-types

A guide To XML Data-types


View PDF | Print View
by: michaeldupre
Total views: 9
Word Count: 486
Date: Wed, 10 Aug 2011 Time: 2:55 AM

Hey, i'm Alexandra Kishkev. Thank you for visiting my '5 minute XML' series where exactly I give you frequent byte size lessons.

The present day matter is for individuals who're fresh to XML Editor.

Even if a programming language is strongly typed or otherwise it’s critical that the data kept in an XML record is unambiguous. It should, as a result, be correctly specified.

If an software going through data from an XML file expects to locate, say an integer value depicted from a particular element’s starting and shutting tags then it's critical it locates one there. A large raft of data-types is available for describing XML data objects:

Notice: XML is an abbreviation for eXtensible Mark-up Language. It's really a mark-up language, not a programming language. Its intent is to always describe a class of data objects referred to as an XML Document. File types could be as complicated or as easy as is necessary.

The above XML data-type reference hierarchy shows the built-in data-types and also shows logical derivation. Also, it is doable to create user derived data-types from these. For an in depth appreciation of the various types listed please visit http://www.w3.org/TR/xmlschema-2/.

Indicating data-types for the purpose of elements and attributes within the XML computer file are generally done in a different file known as a schema. Without the need of getting into schemas yet, let’s just observe some everyday data-type examples:

[invoice]

 [orderDate]01-02-2011[/orderDate]

 [shipDate]03-02-2011[/shipDate]

 [billingAddress]

 [name]Mr Ethereal[/name]

 [street]1 My Street[/street]

 [city]My City[/city]

 [county]My County[/county]

 [postcode]AB1 2CD[/postcode]

 [/billingAddress]

 [landline]0123 45678[/landline]

 [fax]0123 45679[/fax]

[/invoice]

All the parts stated above implies the sort of data that might normally be held at those data locations. It's critical that applications which have been instructed to read and/or write to this specific resource are capable of doing so successfully, without any flagging I/O exceptions.

The name of proper data-types is usually a major part of why schemas are necessary. These will likely be discussed in another 5 Minute XML tutorial.

Having said that as a quick introduction, an XML schema is seen as a group of rules or specification if you'd prefer, that the programmer might utilise to spell out the structure of an XML document.

One example is with a database schema will describe the data that could be found in a database (table structure, data types, etc.) An XML Schema is a lot the same for an XML document, it's effectively a rule set.

Many information and facts are available on XML for individuals that would want to find out more. For the definitive guide, visit www.W3.org.

I really hope the above is beneficial to another person out there. More content will likely be coming soon.

About the Author

Alexandra Kishkev certainly an seasoned practitioner in XML development along with XML standards and possesses plenty of working understanding of XML Editor and also practical know how with XML Schema Editor.



Latest Articles about: Programming


Popular Articles about: Programming




Rating: Not yet rated


??????