Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: Basic Question

  1. #1
    New Coder
    Join Date
    Aug 2002
    Posts
    73
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Basic Question

    I've read a little bit about XML, and I think I understand what it is, but I have yet to see a need for it. What exactly is it for?

    rynð

  • #2
    Moderator
    Join Date
    May 2002
    Location
    Hayward, CA
    Posts
    1,461
    Thanks
    1
    Thanked 23 Times in 21 Posts
    XML itself is a specification for developing languages. Per se, XML itself is not very useful.

    However, several XML languages are highly useful indeed. For instance, XHTML is the XML version of HTML. SVG is an XML language for Scalable Vector Graphics (and very nice ones, too). XSLT transforms from one language to another.

    Outside of presentation languages such as SVG, the largest application of XML is for creating languages for storing data, and conveying that data between applications (such as a server and a browser, in one very limited sense) in a standardized format.

    Does this help?
    "The first step to confirming there is a bug in someone else's work is confirming there are no bugs in your own."
    June 30, 2001
    author, Verbosio prototype XML Editor
    author, JavaScript Developer's Dictionary
    https://alexvincent.us/blog

  • #3
    New Coder
    Join Date
    Aug 2002
    Posts
    73
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ah, Alex, I remember you from the days of the wsabstract forums. Glad to finally hear from you again! Thanks for the response.

  • #4
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    Some popular examples of XML applications outside of W3C:

    RSS - perhaps one of the most popular XML apps, it describes news feeds. Odds are you've heard of it before. Even W3C publishes their DOM news in an RSS feed. It utilizes the W3C-standard RDF XML application (meta-data basically) and some of the Dublin Core (additions to describing meta-data).

    Chemical Markup Language - some chemists made this up to describe chemical compounds and stuff in XML. Also very popular.


    I've used XML in a project I did for describing essentially test results for students taking part in math competitions. I then used XSLT to output HTML in a myriad of ways. Because of the nature of the current XML applications available, storing data as XML immediately has advantages. I could transform a document into XHTML for display in a web browser, but transform the same document for display in WAP-enabled cellphones with WML, and also convert it to PDF via an XSL-FO intermedate step.

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Location
    Newcastle, England
    Posts
    178
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Star Office 6.0 (and OpenOffice.org 1.0 which is more or less the same thing) use XML for their standard file format. To be precise they use zipped XML archives which you can open with WinZip and examine the raw XML. If you're really clever you can write an application to transform the raw XML into an HTML page, so that the document files can be read by a browser rather than the creating application - something I want to do when I get the time.

    Oh - and the XML files are much smaller than, say Word docs. Not terribly important if you have broadband but if you've ever had some kind soul send you a 2.5Mb Word document on a dial-up connection you'll understand what I mean.

    patrick

    PS: Open Office is pretty good as an Office suite anyway - and it's free - as in "free beer"


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •