XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 13th, 2002, 08:39 AM
wifpwcs wifpwcs is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Posts: 28 wifpwcs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 43 m 21 sec
Reputation Power: 0
Question XML... please explain

Call me ignorant or dumb, but not lazy. I have tried to read-up on XML has much as I can comprehend, but the idea still confuses me.

I had always considered XML to be used mainly as a data transport... sharing information in a structured way from location A to location B (ie. different companies or platforms).

It seems, from what I now hear / see, that my understanding of it was completely wrong. People are using it to run their websites, as a means of storage, pretty much everything -- all the hype has made it out to be the end-all-be-all. "XML will do away with databases", "XML has replaced html", etc. I thought databases still did a great job of managing content (they're secure and fast), and HTML is a fine markup (especially with the XHTML recommendation - I know this is a mix in which XML brings proper organization and structure to HTML). But perhaps I'm just old school. It really reminds me of the craze created by OOP -- people even mentioned making toasters with OOP!

Can someone explain XML to me? ... or post a location where I can read past the hype and learn when it is most effectively used and for what.

Thanks

Reply With Quote
  #2  
Old February 13th, 2002, 08:50 AM
binky's Avatar
binky binky is offline
Gerbil
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Oct 2001
Location: In a Rotastak
Posts: 1,763 binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 22 h 12 m 52 sec
Reputation Power: 18
Behind all the hype XML is simply this...

<witch>
<hair>black</hair>
<eyes>brown</eyes>
<teeth>brown and crooked</teeth>
<hat>black and pointed</hat>
</witch>

Nothing to it. The next step is creating a Document Type Definition or Xtensible Style Sheet to apply to it
that would render to the screen our witch. Should you change the eye color to blue then it would be compensated for and she would render with blue eyes instead. Yes it could be done in other ways, but XML allows for human edited XML to become something special fast. Scalable Vector Graphics are a good example of this.

The thing about web sites done with XML is that they're able to present the same data in many different fashions. They can also be edited by people who don't have a clue about the HTML syntax because you are separating data from layout.

An example would be this:

By Course

and

By Class

Okay, don't worry about the content but what these do is parse the kell02be.xml file to display two different outputs from the same file. Therefore half the web space is needed. This is just one of the ways I've used XML.

Last edited by binky : February 13th, 2002 at 08:52 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > XML... please explain


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT