Blogz
Sign in to join Michael Dupre's fan club.

A Simple XML File Outlined

by Michael Dupre(1)


Howdy, my name is Michael Dupre. Welcome to my '5 minute XML' series where exactly I give you regular bite size tutorials.

Today's subject is for those of you that are a novice to XML, is about the basics of XML.

The following illustration is a 3 line snippet representing a perfectly shaped XML file, in it's least difficult possible shape. It may easily be entered employing a simple text editor as well as any of the XML editor currently out there. Whenever writing the document away file-name really should terminate with a .xml.

[box]
 Content of box
[/box]

Q. So, what do the three lines earlier mentioned imply?

A. The [box] ... [/box] represent an beginning and closing tag pair, called an element. The element offers a container for some content. In this circumstance "Content of box". The element string "box" is somewhat simply a name I've opted for to best summarize this particular content. The string within the closing tag should usually match the string within the opening tag except for a single detail; the element label have to be preceded with a forward slash as indicated. This will be significant.

Q. What is it for along with precisely what does it do?

A. An XML file basically holds data. In cases like this "Content of box" also it will need to hold this data in a self-describing fashion. In our example using the [box] ... [/box] element.

Q. The reason why should you need to do that?

A. XML provides computer programs and different operating systems by way of a method through which they are able to exchange information in an unambiguous manner. XML really is a standard format that is certainly broadly recognized as well as followed throughout the industry and has evolved hardly at all since its inception. Consequently, any kind of program might be developed to read the above XML file reliably and make use of its content. Another program may very well be made to update the 'box' content of the file. XML files ordinarily have more complex data sets to be valuable though the above three lines of code show precisely how basic such a file could be and that it can be read by humans and also machines.

Observe: XML is an acronym for eXtensible Mark-up Language. It is just a mark-up language, not a programming language. Its function is to describe a class of data objects called an XML Document. Files can be as complex or as easy as is necessary. A wealth of info is available on XML for individuals who would choose to learn more. For the definitive guide, visit www.W3.org.

I am hoping the above is useful to someone out there. More content might be on its way soon.

Michael Dupre is a leading specialist in XML coding and XML standards and offers above 15 years of working in the web standards and usability fields including within XML markup languages. Which is exactly why he is an expert with XML Editor and has practical know how with XML Schema Editor.


Article submitted Monday, May 23, 2011 & read 4 times.

Leave your comments through Blogz:


No comments yet.
1-0-0-0-1-ADSO
Copyright © 2012 IcoLogic, Inc.
Page viewed from Cache.
Page load time: 0.000 seconds.