Prizes & Awards
My Profile
Active Members
TodayLast 7 Days
more...
|
New Feature: Community Sites:
Create your own .NET community website and start earning from Google AdSense !
It's Free !
|
XML Basics
Posted Date: 07 May 2008 Resource Type: Articles Category: General
|
Posted By: Debasmit Samal Member Level: Gold Rating: Points: 15
|
XML We can call XML is a software and hardware independent tool for transferring information. XML stands for EXtensible Markup Language and XML was designed to transport and store data. • XML stands for EXtensible Markup Language • XML was designed to carry data, not to display data • XML tags are not predefined. You must define your own tags It is important to understand that XML is not a replacement for HTML. In most web applications, XML is used to transport data, while HTML is used to format and display the data. Simplicity of Data Sharing,Data Transport and Data Availability Computer systems and databases contain data in incompatible formats.XML data is stored in plain text format. This provides a software- and hardware-independent way of storing data.
With XML, data can easily be exchanged between incompatible systems.One of the most time-consuming challenges for developers is to exchange data between incompatible systems over the Internet.
With XML, your data can be available to all kinds of "reading machines" (Handheld computers, voice machines, news feeds, etc), and make it more available for blind people, or people with other disabilities.
XML documents form a tree structure that starts at "the root" and branches to "the leaves". XML documents must contain a root element. This element is "the parent" of all other elements. The elements in an XML document form a document tree. The tree starts at the root and branches to the lowest level of the tree.
..... Parent elements have children. Children on the same level are called siblings (brothers or sisters). An Example XML Document
Tove Jani Reminder Don't forget me this weekend!
The first line defines the XML version (1.0) and the encoding used (ISO-8859-1 = Latin-1/West European character set). The next line describes the root element of the document The next 4 lines describe 4 child elements of the root XML Syntax All XML Elements Must Have a Closing Tag XML Tags are Case Sensitive XML Elements Must be Properly Nested XML Documents Must Have a Root Element XML Attribute Values Must be quoted
XML Naming Rules XML elements must follow these naming rules: • Names can contain letters, numbers, and other characters • Names must not start with a number or punctuation character • Names must not start with the letters xml (or XML, or Xml, etc) • Names cannot contain spaces Any name can be used, no words are reserved.
|
Responses
|
| Author: devireddy 07 May 2008 | Member Level: Gold Points : 2 | good
|
|