Delphi-Kylix
  Home arrow Delphi-Kylix arrow Delphi and XML
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
DELPHI-KYLIX

Delphi and XML
By: David Web
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 3
    2008-11-03

    Table of Contents:
  • Delphi and XML
  • XSL example
  • XML Syntax
  • Using XML with Delphi

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Delphi and XML


    (Page 1 of 4 )

    Extensible Markup Language, or XML, is a simplified version of SGML. It is currently receiving a lot of attention. XML is essentially a markup language, meaning that it uses symbols to describe its own content. It also enables you to identify and organize your information in a more accurate and flexible way. This article is the first in a four-part series that introduces you to using XML with Delphi and the DOM.

    With XML, tags consist of specially defined text enclosed in angle brackets. It is extensible because it is not a fixed format, in contrast to HTML, which has predefined markers. For example, if you want text to appear italic in HTML, you place that text between <em></em> tags. Every browser knows what to do when they encounter these tags. If however, you change these tags to say, "<ems></ems>," browsers would not know what to do, since they are only programmed to recognize the "<em></em>" tags.

    In contrast to this, XML does not have any predefined tags and allows you to create your own tag sets to both display and format text. All you have to do is  add a (XSL) stylesheet to enable the browser to format your text. This language can therefore be read and understood on any computer platform.

    An XML document is basically a plain text file. Below is an example of and XML File:


    <?xml version="1.0" encoding="iso-8859-1"?>

    <?xml-stylesheet type="text/xsl" href="generic.xsl"?>

    <!-- Copy and paste the url into your newsreader application" -->

    <!-- generator="Movable Type/2.64" -->

    <rss version="0.91">

    <channel>

    <item>

    <title>Sample Title </title>

    <link>http://www.mysite.com</link>

    <description> All Website should have an RSS feed. Really??</description>

    </item>

     

    <item>

    <title>XML in Focus</title>

    <link>http://www.mysite.com</link>

    <description>. In this case, tags consisting of specially defined text enclosed in angle brackets. The reason why it is extensible is because it is not a fixed format </description>

    </item>

    <item>

    <title>Extensible Mark Up Language</title>

    <link>http://www.mysite.com</link>

    <description>A new language that is taking the IT world by storm </description>

    </item>

    </channel>

    </rss>


    More Delphi-Kylix Articles
    More By David Web


     

    DELPHI-KYLIX ARTICLES

    - Loading an XML Document into the DOM
    - Delphi Wrapper Classes and XML
    - Delphi and the DOM
    - Delphi and XML
    - Internet Access: Client Service
    - Finishing the Client for an Internet Access ...
    - The Client for an Internet Access Control Ap...
    - User Management for an Internet Access Contr...
    - Important Procedures for an Internet Access ...
    - Server Code for an Internet Access Control A...
    - Constructing the Interface for an Internet A...
    - Building a Server Application for an Interne...
    - Building an Internet Access Control Applicat...
    - Client Dataset: Working with Data Packets an...
    - Using the Client Dataset in an N-Tiered Appl...







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek