Go Back   CodingForums.com > :: Client side development > XML

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-31-2003, 09:37 PM   PM User | #1
mattover-matter
Banned

 
Join Date: Mar 2003
Posts: 224
Thanks: 0
Thanked 0 Times in 0 Posts
mattover-matter is an unknown quantity at this point
whats new?

what is new about xml from html except ending tags?


<br />
mattover-matter is offline   Reply With Quote
Old 03-31-2003, 10:10 PM   PM User | #2
liorean
The thread killer


 
Join Date: Feb 2003
Location: Umeå, Sweden
Posts: 5,575
Thanks: 0
Thanked 84 Times in 75 Posts
liorean will become famous soon enoughliorean will become famous soon enough
That question is asked the wrong way - the question you should be asking is what's the difference between sgml and xml.

You see, xml is a meta language, or a descriptor language. It defines the syntax and vocabulary of files written in xml languages. DTD/schema are the vocabulary part of xml, while xml well-formedness is the syntax part. What the xml file does is actually to connect the vocabulary with well-formedness and the data/document it is to describe. Stylesheets are the document-related styling (CSS, FO), as in html, and the data-related transformation (XSLT). Xml is in itself a stricter subset of sgml.

HTML, on the other hand, is a document language - it's a given vocabulary that can be used with either xml or sgml.

In a way, you can say that an html document is an instance of the sgml class, while an xhtml document is an instance of the xml class - if you talk object oriented programming. That parallel doesn't work entirely, though, since the xml and sgml verions of html share their member definitions.
__________________
liorean <[lio@wg]>
Articles: RegEx evolt wsabstract , Named Arguments
Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards
liorean is offline   Reply With Quote
Old 04-05-2003, 08:50 AM   PM User | #3
cg9com
Senior Coder

 
Join Date: Jul 2002
Posts: 1,628
Thanks: 0
Thanked 0 Times in 0 Posts
cg9com is an unknown quantity at this point
to knock out some basic questions, go over this:
http://www.w3schools.com/xhtml/default.asp

XML + HTML = XHTML
cg9com is offline   Reply With Quote
Old 04-05-2003, 08:42 PM   PM User | #4
Tails
Regular Coder

 
Join Date: Nov 2002
Posts: 672
Thanks: 1
Thanked 1 Time in 1 Post
Tails is an unknown quantity at this point
Um, when I make a file with all those ending tag rules xhtml explained and gave it an xml extention, I get a visual map of tags. Then when I look at already made xml files (winamp 3 had one, why and what the heck it does, I don't know), it had weird stuff like phoney made up tags that seemed to serve no purpose. What is xml exactly? I'm trying to fill in the gap of the equation xml + html = xhtml
Tails is offline   Reply With Quote
Old 04-05-2003, 09:03 PM   PM User | #5
liorean
The thread killer


 
Join Date: Feb 2003
Location: Umeå, Sweden
Posts: 5,575
Thanks: 0
Thanked 84 Times in 75 Posts
liorean will become famous soon enoughliorean will become famous soon enough
XML is a set of tools for defining a language, and some grammatics for it such as that all elements have to be closed, which SGML doesn't require. HTML is a set of "keywords" in the form of elements, attributes, entity references and their semantic meaning, The semantic meaning is lost to the technology, however, because you can't validate that you are using a tag for it's intended purpose by the validation system DTDs provide.


In other words, the <>, </>, <!-- -->, <!>, <??>, &#nnnn; are what is provided by XML, and the standard for HOW to make them get a meaning, not what their meaning actually is.

What HTML, SVG, MathML, SOAP, RDF DocBook etc. adds to it, is the actual meaning - they add tags, attributes, entity references and legal attribute values. On that, they can also add default behavior, but this is - like in the case of semantic meaning - nothing that is provided with the language definition, but only provided by human readable specifications.



Tails: If you're using IE, I'm not surprised. IE's XML engine doesn't have any knowledge of the XHTML namespace. That's what I meant by that default behavior can be provided, but isn't programmatically inherent to the language.
__________________
liorean <[lio@wg]>
Articles: RegEx evolt wsabstract , Named Arguments
Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

Last edited by liorean; 04-05-2003 at 09:07 PM..
liorean is offline   Reply With Quote
Old 04-05-2003, 09:09 PM   PM User | #6
cg9com
Senior Coder

 
Join Date: Jul 2002
Posts: 1,628
Thanks: 0
Thanked 0 Times in 0 Posts
cg9com is an unknown quantity at this point
Quote:
Originally posted by Tails
I'm trying to fill in the gap of the equation xml + html = xhtml
from w3schools:
XML was designed to describe data and focus on what data is.
HTML was designed to display data and focus on how data looks.
cg9com is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:20 PM.


Advertisement
Log in to turn off these ads.