Sign in to join Michael Dupre's fan club.
Excellent Guide Of XML Data-types
by Michael Dupre(1)
Howdy, my name is Michael Dupre. Here is the best '5 minute XML' series where exactly I provide you regular byte size tutes.
The current topic area is designed for people who will be fresh to XML Editor.
Whether or not a programming language is strongly typed or otherwise it’s crucial that the data held in an XML document is unambiguous. It has to, consequently, be correctly specified. If an application going through data from an XML document expects to come across, say an integer value expressed from a certain element’s opening and shutting tags then its critical it finds one there. A huge raft of data-types is available for describing XML data objects:
Note: XML is an abbreviation for eXtensible Mark-up Language. It's really a mark-up language, not really a programming language. Its intent ought to illustrate a class of data objects termed an XML Document. Files is really as complex or so simple as is essential.
The above mentioned XML data-type reference hierarchy demonstrates the built-in data-types and shows logical derivation. Additionally it is doable to create user derived data-types from these. For an in depth appreciation of the various types listed please visit *.w3.org/TR/xmlschema-2/.
Revealing data-types for elements and attributes within the XML data file are usually finished in a different file known as a schema. Without the need of getting into schemas at this time, let’s just take a look at a number of 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 usually means the data which will generally be held at those data locations. It's important that software applications which you'll find are required to read and/or write to this resource are capable of doing so effectively, without having flagging I/O exceptions. The naming of ideal data-types is a major element of why schemas are essential. These will be introduced in another 5 Minute XML tutorial.
Having said that as a quick introduction, an XML schema is really a set of rules or specification if you'd prefer, that the developer would probably employ to spell out the structure of an XML document. By way of example with a database schema will explain the data which has been found in a database (table structure, data types, etc.) An XML Schema is a lot the same for an XML document, it is effectively a rule set.
Loads of information and facts are available on XML for individuals that wish to uncover more. For the definitive guide, visit *.W3.org.
I hope the above is useful to another person out there. More content are going to be coming soon.
Michael Dupre is truly an veteran authority in XML programming and even XML standards and possesses an abundance of working understanding of XML Editor as well as practical know how with XML Schema Editor.
Article submitted Tuesday, August 09, 2011 & read 20 times.
Leave your comments through Blogz:
No comments yet.
0-0-0-0-2-ADSO
Copyright © 2012 IcoLogic, Inc.