Clicky

Articlesalley.com - Articles Directory

Browse Articles | Submit an Article | Search Articles | Most Viewed Articles | Latest Articles | FAQ
Article Directory
Articles Area
Home Login / Register Get RSS Feeds Add Free Article Content Article Ratings Go Daddy Coupon Codes
Guidelines
Authors Publishers
Home | Internet | Technologies | A Very Simple XML La ...

A Very Simple XML Layout Working With Attributes

Submitted by Gordon and viewed 97 times
Total Word Count: 328  
Author Rating: NA

Rate this article Rate this article | Publisher Publisher | Print Print
The pursuing situation displays a basic well formed XML file. It could very well be entered having a uncomplicated text editor or maybe any sort of the XML editors now on the market. When you are creating the documentation away the file-name ought to close with a .xml.
Hi there, i'm Michael Dupre. You are welcome to my '5 minute XML' series just where I give you regular bite size tutorials.

The current issue is intended for all those of you who are actually brand new to XML.

The pursuing situation displays a basic well formed XML file. It could very well be entered having a uncomplicated text editor or maybe any sort of the XML editors now on the market. When you are creating the documentation away the file-name ought to close with a .xml.

[human gender="male" born="18 July 1990"]

 [hairColour]

 Blonde

    [/hairColour]

[/human]

The above [human] ... [/human] element features just 1 other child element now. This time, the information retained in gender and born is actually made readily available employing attributes rather than of 'child elements'. The sequence of the attributes will not matter nonetheless each ought to take the form attr="stuff", right after the [elem] tag.

Anywhere a good deal more than one attribute is used, these should be divided by whitespace in addition to every attribute ought to be unique for any one element. Around this point people might possibly well ask, when might you place content inside an attribute as opposed to a child element? Basically the answer to this is not necessarily quite so clear as you would possibly think.

Some groups suppose attributes are metadata in relation to the element, though elements are for the information itself nonetheless you'll find it not necessarily usually noticeable which is which I'd encourage you to consult with additional resources direction, past which common sense should triumph.

A wide range of information is available on XML meant for those people who may like to know much more. For the definitive guide, visit www.W3.org.
























ArticleSource: ArticlesAlley.com
Additional articles about xml editor
About the author
Michael Dupre is actually a reputable specialist in XML coding and XML standards and possesses more than 15 years of working in the web standards and usability fields including within XML markup languages. Which is the reason why he is an expert with XML Editor and has practical know how with XML Schema.
Please Rate This Article

Number of ratings: 0
Rating: 0

© Copyright dd ArticlesAlley.com - All Rights Reserved Worldwide. About Us | Contact Us | Site Map | Exchange Links | Privacy Policy | Terms of Use