Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. Why should I use XML in my website, when I’ve got a database driven website?

Why should I use XML in my website, when I’ve got a database driven website?

Scheduled Pinned Locked Moved XML / XSL
databasecomxmlquestion
3 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    Xander80
    wrote on last edited by
    #1

    I’m new to XML. I read on http://www.w3schools.com/[^] that it’s important to understand that XML was designed to store, carry, and exchange data. XML was not designed to display data. Why should I use XML in my website, when I’ve got a database driven website, and all my data is located in that database?

    Z 1 Reply Last reply
    0
    • X Xander80

      I’m new to XML. I read on http://www.w3schools.com/[^] that it’s important to understand that XML was designed to store, carry, and exchange data. XML was not designed to display data. Why should I use XML in my website, when I’ve got a database driven website, and all my data is located in that database?

      Z Offline
      Z Offline
      ZoogieZork
      wrote on last edited by
      #2

      I'd pretty much say that if it ain't broke, don't fix it :) When I was first introduced to XML, I went through the exact same thought process ("Why would I use this in my site?") and ended up dismissing it. However, it was good to at least know it existed; on a project a few months later, it suddenly dawned on me that XML would work really well for the task, and thus I set about learning as much as I could about XML-related technologies to get a grasp of what tools were available. I think trying to graft XML into an existing (working) system is much like grabbing a hammer and pounding away at something until it looks like a nail. If you really want to get your feet wet in using XML, you can start by updating your site to be XHTML 1.0 valid. Then, play around with writing an XSLT translation to tweek things like removing links and extraneous style bits to produce a "printable" version of all your pages. Alternatively, you can learn the DOM or SAX API and write some code to do it. Either way, that should give you some ideas of how you can actually apply XML-related technologies. Oh yeah, and have fun! Use XML to make your life easier, not harder. ;) - Mike

      X 1 Reply Last reply
      0
      • Z ZoogieZork

        I'd pretty much say that if it ain't broke, don't fix it :) When I was first introduced to XML, I went through the exact same thought process ("Why would I use this in my site?") and ended up dismissing it. However, it was good to at least know it existed; on a project a few months later, it suddenly dawned on me that XML would work really well for the task, and thus I set about learning as much as I could about XML-related technologies to get a grasp of what tools were available. I think trying to graft XML into an existing (working) system is much like grabbing a hammer and pounding away at something until it looks like a nail. If you really want to get your feet wet in using XML, you can start by updating your site to be XHTML 1.0 valid. Then, play around with writing an XSLT translation to tweek things like removing links and extraneous style bits to produce a "printable" version of all your pages. Alternatively, you can learn the DOM or SAX API and write some code to do it. Either way, that should give you some ideas of how you can actually apply XML-related technologies. Oh yeah, and have fun! Use XML to make your life easier, not harder. ;) - Mike

        X Offline
        X Offline
        Xander80
        wrote on last edited by
        #3

        Thanks!!!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups