What Is XML?

Have you ever needed a document format that you could use to exchange data — either across the Internet or across an intranet? Well, eXtensible Markup Language (XML) may be just the solution. In fact, many different industries have discovered the wonders of XML — and use it extensively to help organize and classify their data... XML is a markup language — it uses tags to label, categorize, and organize information in a specific way. Markup describes document or data structure and organization. Content, such as text, images, and data, is that part of the code that the markup tags contain; it’s also what’s of greatest interest to most everyday humans who read or interact with data or documents. XML isn’t limited to a particular set of markup — you create your own markup to suit your data and document needs. The flexibility of XML has led to its widespread use for exchanging data in a multitude of forms. And that’s not all! With XML, you can send the same information to various locations — say, to a person using a mobile phone and a person using a Web browser — at the same time. In addition, you can customize the information sent out so it’s displayed appropriately on the various devices. Getting started with XML isn’t difficult.
If you take a close look at the use of XML in today’s business world, you soon recognize that pinning down a single, definitive use for XML is nearly impossible. In fact, it is precisely the open-ended nature of XML that makes it so useful for many different things — and so difficult to put into a single, small box.
You may be familiar with Hypertext Markup Language (HTML), the markup language used to display information on Web pages. Both XML and HTML are derived from the “mother of all markup languages,” Standard Generalized Markup Language (SGML) — but any similarity ends there. HTML includes a set of predefined tags that format information for display on the Web. XML has no predefined tags — instead, you can create your own XML tags to structure your XML document so its content is in a form that meets your needs. Basically, you design your own custom markup language (actually an XML application) to do data exchange in a way that works for you. Although XML doesn’t include predefined tags, it does include very specific rules about the syntax of an XML document.
XHTML is yet another markup language — designed as a transition language between HTML and XML. In a nutshell, XHTML is a version of HTML that follows the strict syntax rules of XML. After you’ve used it for a while, you’re well prepared to use XML. Separating data and context Among the many benefits of using XML is that it automatically separates data from context (presentation). An XML document by itself includes no instructions about how to display the content contained in the document — it only defines the structure of the document. You can then add styles — formatting instructions for displaying the content — in a separate document called a stylesheet. This separation is actually pretty handy; you can change the display instructions without having to make any changes to your XML document. If the same style sheet is used with more than one document, you can make uniform style changes in all those documents simply by making changes in the stylesheet. All the associated XML documents follow the stylesheet’s orders.
XML can be combined with both two different types of stylesheets — Cascading Style Sheets (CSS) and/or Extensible Stylesheet Language Transformations (XSLT) — for extra versatility. This makes it possible to view XML documents on the Web as more than just raw document markup — and you can change this display easily to accommodate different output devices. For example, you can use one stylesheet for display on a PDA and a separate one for printout.
XML is all about managing your data — using the best possible format available to you. To talk about how XML can handle your data as discrete bits of information, what better format is there to use than a bulleted list? Check out the following items:
• XML enables you to collect information once and reuse it in a variety of ways.
• XML data is not limited to one application format. You can design an XML document that allows you to collect data online for use in other documents, databases, and spreadsheets.
For example, suppose your business collects sales information on a group of products by using an XML document to contain the data. The same XML data could be used to create customer purchase records, commission reports, and product-sales graphs.
• Making information portable does require planning and design before the information is collected.
So, thats all information about XML i can share... There is more ‘bout XML you can learn, just googling it. Next time i’ll try to explain how to create a simple XML document to view and read some data.



Related Posts by Categories



Widget by Hoctro

Enter your email address:

Delivered by FeedBurner

Followers



Source Code

Tips