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:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old July 27th, 2003, 01:51 AM
paaa's Avatar
paaa paaa is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2001
Location: Beween the < and the ?
Posts: 64 paaa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 49 m 40 sec
Reputation Power: 7
Send a message via ICQ to paaa Send a message via AIM to paaa Send a message via Yahoo to paaa
xml vs xhtml

Ok, this might be kind-of-a-duh-question for you guys, but I will ask it anyway.

I've been going through tutorials online as well reading several books on the subject of xml and although I find it interresting, I can't seem to find any real use for it when designing an ordinary webpage that only holds text, images and hyperlinks. I understand that xml must be a wonderful thing to have when you have the need to define everyting in a webpage, but is there really a need for it if you only plan to provide the web with a "normal" webpage?
__________________
Remember to elongate the face to look swedish!

Reply With Quote
  #2  
Old July 27th, 2003, 01:11 PM
jharnois's Avatar
jharnois jharnois is offline
mod_dev_shed
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Sep 2002
Location: Atlanta, GA
Posts: 14,299 jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 2 Days 1 h 54 m 17 sec
Reputation Power: 760
I don't think XML was ever intended as a replacement for basic HTML, nor was it intended to be used on every web page for basic, "normal" sites. XHTML allows you to create your web page using the HTML you know, while enabling you to encorporate XML if you need to, but only if you need to. If you were to build your site with XHTML, and later you needed to use XML, you would be able to do so easily. But just b/c you can use XML, doesn't mean you should. XML is used to describe data. If you don't have data to describe (meaning you simply want to layout your data), then don't use XML.

I should note that I'm no expert in XML. I just started learning it a couple of weeks ago.

Reply With Quote
  #3  
Old July 28th, 2003, 04:56 PM
mulligh mulligh is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 19 mulligh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
The idea behind XML is to separate the display and layout elements from the data. This allows you to take the raw data of a page (XML) and display it in a multiple of ways using technologies such as XSLT, ASP, CSS, etc.

The idea behind XHTML is to make it conform more to the principles of XML like making sure every open element is closed. Most browsers do not actually have the support for strict XHTML because of the different conventions that are required for tagging.

I would say if you are creating a page that you don't intend to make wide sweeping changes to, stick with (X)HTML.

XML is a great technology for a dynamic frequently changing website.

Reply With Quote
  #4  
Old July 28th, 2003, 05:11 PM
jharnois's Avatar
jharnois jharnois is offline
mod_dev_shed
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Sep 2002
Location: Atlanta, GA
Posts: 14,299 jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 2 Days 1 h 54 m 17 sec
Reputation Power: 760
Quote:
Most browsers do not actually have the support for strict XHTML because of the different conventions that are required for tagging.
Can you show some examples of what you're talking about here?

Reply With Quote
  #5  
Old July 29th, 2003, 01:14 PM
mulligh mulligh is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 19 mulligh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Just to clarify, by "strict" XHTML, I mean XHTML built on the "strict" XHTML DTD as opposed to the "transitional" form of the DTD. Last time I tried to implement strict XHTML (and maybe things have changed with the most recent browser releases) browers had trouble especially with leaf elements that are not required in HTML such as <br /> and <p /> and closing single elements where the closing element isn't required such as <script /> <meta /> etc.

Plus with strict XHTML, more of the display and layout has been removed from the tags which requires your browser to more completely support CSS.

Unless you are supporting only one browser, you may run into compatibility issues, especially with older browsers.

Last edited by mulligh : July 29th, 2003 at 03:40 PM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > xml vs xhtml


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 2 hosted by Hostway