SitePoint Sponsor |
|
User Tag List
Results 1 to 25 of 61
Thread: What is XML?
-
Dec 1, 2000, 00:40 #1
- Join Date
- Jun 2000
- Location
- Apple Valley, MN
- Posts
- 96
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I was curious to what XML is and what is so special about it?
-
Dec 1, 2000, 02:34 #2
- Join Date
- Apr 2000
- Posts
- 1,483
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
As I understand it, eXtensible Markup Language is one of the next-generation web langages. It bypasses most of the restrictions of HTML - its main feature is that it allows you to define your own tags. You can even use it like a database.
For example, if you ran a bookstore, your page might look a little like this:
Code:<Book> <BookID>1</BookID> <BookTitle>title</BookTitle> <BookAuthor>James</BookAuthor> etc
A simplified version of XML has been made into XHTML, or HTML 5 - XML is pretty complicated so XHTML is meant to be a version anyone can use.
I don't really know much else - but I'd like to learn more
Hope that helps
-
Dec 1, 2000, 08:28 #3
-
Dec 1, 2000, 10:27 #4
- Join Date
- Oct 2000
- Location
- Nashvegas Baby!
- Posts
- 7,845
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
make it good Nicky as a lot of SitePointers (like me) will be reading it.
in the meantine folks, Webmonkey has a really good tutorial on XML right here:
http://hotwired.lycos.com/webmonkey/...l?tw=authoring
and here:
http://hotwired.lycos.com/webmonkey/...l?tw=authoring
Adobe Certified Coldfusion MX 7 Developer
Adobe Certified Advanced Coldfusion MX Developer
My Blog (new) | My Family | My Freelance | My Recipes
-
Dec 1, 2000, 12:19 #5
- Join Date
- Apr 2000
- Posts
- 1,483
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I'll definitely be reading that Nicky - when should it be ready?
-
Dec 1, 2000, 13:23 #6
-
Dec 1, 2000, 15:35 #7
- Join Date
- Aug 2000
- Location
- Alberta, Canada
- Posts
- 113
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
For those of you that would like to get a head start, earlier this year I made a similar post with helpful information on XML, at another Board. Good links and Free programs to get going with.
I would urge everyone to at least start looking at XHTML as XML will become the main coding language of the future. We will probably see one more version of HTML, then it will become outdated and passe. The real beauty of XML is that if the code is not done correctly, the page doesn't show. What can be more simplier than that! No more having to worry about Browser specific code and suppossed Standards, that work one way in one Browser and a different way in a different Browser.
XHMTL is the inbetween of HTML & XML and allows us learning to walk, before we run. It is similar to HTML but the syntax is definately different. XHTML allows us to get the hang of understanding why things have to be done in certain way for XML, without coding in pure XML - which is very confusing when first learning, like most things I guess.
-
Dec 1, 2000, 17:20 #8
- Join Date
- Aug 1999
- Location
- East Lansing, MI USA
- Posts
- 12,937
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
xHTML is the W3C's next recommendation for HTML 5 basically.
Wheras HTML was based of SGML xHTML is HTML rewritten as an XML application.
What this means for an average webmaster is just a few simple syntax changes.
No more capital letters in tags such as <BR> You must close all tags such as <br /> and everything must be properly nested.
<html><head></head><body></body></html> etc
you can start coding in xHTML now because it is completely backwards compatible.
Because xHTML is based off XML you will be able to do things like make your own tags, but you don't need to.
The reasons behind changing HTML to xHTML is so that it is easier to develop browsers that will work across devices by letting them be smaller (clearner more strict coding = browser doesn't need to do as much work)
Chris
-
Dec 1, 2000, 18:21 #9
- Join Date
- Aug 2000
- Location
- Alberta, Canada
- Posts
- 113
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I can see Chris, that although you agree with me in spirit about XHMTL, you must not have worked much with it yourself.
Anybody coding in XHTML knows for example:
no more inline or embedded JS code - must now be linked
(i.e. <script type="text/javascript" language="JavaScript" src="thescriptcode.js"></script> )
all tags must be closed - this includes <p> <li> <dl> <dd> etc.
a lot of links must be closed as: <br /> (and yes there is a space before the / forward slash)
this includes all tags within the <head> </head> tags like: <meta name="Description" content="whatever" />
other tags such as: <hr /> <input type="radio" checked="checked" /> <img src="whatever.gif" />
and lots of other ins & outs.
To say: "this means for an average webmaster is just a few simple syntax changes" is a bit of a misnomer and misleading to people just learning. People that create Web pages are not considered a "Webmaster" as most Webmasters don't know a whole lot about creating Web pages. Their job is to keep the Server running properly, not make Web pages. The term "Sitemaster" would be more appropriate.
As for most "Sitemasters" even just learning (and getting used to) all HTML code to be in "small" letters, is going to take awhile for some. Things like:
method="post" - I used to always use "Post" which is incorrect
putting quotes around "all" percentages and "all" tag attributes will also be quite new to some
I would have to say that for some (maybe a lot) learning XHTML will be like learning a whole new language, and they should treat it as such. Although it should go faster for them as depending upon their coding habits, they should know/understand, the basics.
I agree that a lot of the differences are in the "syntax area" but people need to know that although XHTML is referred to as "A Reformulation of HTML 4 in XML 1.0" it does come with it's own Doctype, Syntax and Rules as described in XHTML v1.0. And let's not forget people that have been using "Browser specific code", or WYSIWYG Editors, they are in for a real surprize.
-
Dec 1, 2000, 19:18 #10
- Join Date
- Nov 2000
- Posts
- 60
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I just finished a week of CIW Foundations. We touched a bit on XML, which is mostly used for B2B (e.g., banks, e-commerce sites). What makes XML unique is that it allows developers to create their own custom mark-up language. As was mentioned in prior posts, XML is much more rigid in syntax than HTML and harder to learn.
Although there seems to be an urgency for us to incorporate XML on our Web sites ASAP, according to my instructor, it will be several years before XML is the norm.
For more information, visit http://www.w3.org/XML
Hope this helps.
-
Dec 1, 2000, 21:52 #11
- Join Date
- Jul 1999
- Location
- Lancashire, UK
- Posts
- 8,277
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
I agree. I think XML is the wave of the future, used in conjunction with other technologies such as xHTML. However, I do think that it will be a while before it is welcomed with open arms by the web development community of amateur website creators. The main problem, as highlighted above, is the fact that it is more of a "programming" rather than a markup language, and hence there is a lot mroe work involved in creating a page. But it will be a liberation fo a lot of poeple, as this will allow us to separate content from structure from design.
I will speak more later - gotta go now!
-
Dec 1, 2000, 23:39 #12
- Join Date
- Aug 1999
- Location
- East Lansing, MI USA
- Posts
- 12,937
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally posted by Website Rob
To say: "this means for an average webmaster is just a few simple syntax changes" is a bit of a misnomer and misleading to people just learning. People that create Web pages are not considered a "Webmaster" as most Webmasters don't know a whole lot about creating Web pages. Their job is to keep the Server running properly, not make Web pages. The term "Sitemaster" would be more appropriate.
And while I'm sure you love making up new words, don't do it, it makes you look pretentious. A webmaster is someone in charge of a website. A Network Administrator is someone in charge of a server. A Sitemaster is something you just invented.
Chris
-
Dec 2, 2000, 00:48 #13
- Join Date
- Aug 2000
- Location
- Alberta, Canada
- Posts
- 113
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Good for you Chris, on keeping up with what the W3C is doing. As for what I said above about XHTML, the fact that it is all true is beside the point. I use it to code pages everyday and I am very familiar with it. Please let me know if you would like to discuss anything specific you've learned from your reading.
As for the rest, it depends on how long you've been around the net I guess. Some of us still remember what a "Webmaster" used to do and I guess in some ways, the definition is changing.
I will admit that I have a problem with people that use a program like FrontPage, create a couple of Web pages, then think they can call themselves a "Webmaster." That's like someone getting their beginner's Driver's License - then saying they are a race car driver. Same thing - only different.
In fact you can check some of the more popular "definition" lists on the Net, and you will not always find the term "Webmaster" even listed. The word "Sitemaster" has been around for the last couple of years, but I guess if someone hasn't heard a word before, it puts some doubt upon whether it exists.
We all learn lots of new words every day, especially when comes to anything Internet related. Care to take a guess at how old the word "Email" is? Or is it E-mail, or e-mail?
In fact my next Newsletter will be featuring a guest article on the very topic of what (according to mainstream) is the correct spelling & pronunciation of the more familiar Internet words. Here for example are a two links that mention the subject:
http://www.wired.com/news/culture/0,1284,39450,00.html
http://www.tuxedo.org/~esr/jargon/
You also might have a look at the definiton of "Webmaster" according to geek.com. Seems to be a place that should know about the word, don't you think?*
-
Dec 2, 2000, 08:45 #14
- Join Date
- Aug 1999
- Location
- East Lansing, MI USA
- Posts
- 12,937
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Fact 1.
My definition of webmaster in above post: Someone in charge of running a website
Geek.com's definition of a webmaster: This is a blanket term that refers to the person responsible for running a website.
Fact 2.
Geek.com's definition of "Sitemaster": Non-existant
Number of people to use such word on these forums other than Website Rob: 0.
Fact 3. Quotes from Website Rob:
People that create Web pages are not considered a "Webmaster" as most Webmasters don't know a whole lot about creating Web pages. Their job is to keep the Server running properly, not make Web pages. The term "Sitemaster" would be more appropriate.In fact you can check some of the more popular "definition" lists on the Net, and you will not always find the term "Webmaster" even listed. The word "Sitemaster" has been around for the last couple of years, but I guess if someone hasn't heard a word before, it puts some doubt upon whether it exists.
So Stop.
Chris
-
Dec 2, 2000, 11:45 #15
- Join Date
- Dec 2000
- Posts
- 2
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Pardon me for interupting here, but could someone tell me if XHTML ( not XML; XHTML ) is any faster than HTML?
Thanks in advance.
-
Dec 2, 2000, 14:39 #16
- Join Date
- Aug 2000
- Location
- Alberta, Canada
- Posts
- 113
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Geek.com definition of a "Webmaster" is:
Webmaster - This is a blanket term that refers to the person responsible for
running a website. It is associated more with server management and HTML
coding than other Web development, such as CGI scripting.
Tis only one site's definition of the term and even though I don't totally agree with it, it is more than just my opinion. I had hoped you might offer something more constructive, than just your opinions, as people reading this need information they can use and rely on.
Getting back to the topic of this thread, XHTML is not neccessarily any faster than any other properly written code. By "properly" I refer to the accepted Standard (as per W3C for HTML) but even that term must be used loosely.
It is unfortunate that currently, there are no Browsers available that follow all the Standards. This is more due to the language itself (HTML) as it was not designed for what is required/desired, of Web sites today. Just one of the many reasons why it will be phased out. The majority of people now use a version 4.x or higher Browser, because they can do more than previous versions. Although HTML has also gone through version revisions, it has pretty much reached the limit of what it can do.
-
Dec 2, 2000, 16:25 #17
- Join Date
- Dec 2000
- Location
- The flat edge of the world
- Posts
- 838
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
XHTML is not really faster, but if you code it properly, and run your page through w3c's validator, your site will be a lot more compatible.
You can also code your page in XHTML, and when XML does start to hit the web in a large scale, it'll be easier to recode your page from XHTML to XML.
-
Dec 2, 2000, 20:32 #18
- Join Date
- Dec 2000
- Posts
- 2
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thanks Robo, that's what I had thought.
Now, can anyone direct me to some decent XML/XHTML sites? Excluding the W3 Consortium website...
-
Dec 2, 2000, 21:03 #19
- Join Date
- Jul 1999
- Location
- Lancashire, UK
- Posts
- 8,277
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
I have tons of XML bookmarks, here are some of them:
http://www.webdeveloper.com/xml/
http://www.oasis-open.org/cover/sgml-xml.html
http://www.xml.org/
http://www.xmlmag.com/
http://www.gca.org/whats_xml/whats_xml_xmlfiles.htm
http://www.xmlarena.com/
http://wdvl.com/Authoring/Languages/XML/XHTML/
http://html.about.com/compute/html/cs/xhtmlxml/
Hope they help.
-
Dec 2, 2000, 22:05 #20
- Join Date
- Aug 2000
- Location
- Silicon Valley
- Posts
- 2,241
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
After reading your posts, I think I have to catch the wave of the future! Do you ever think we could stop learning?
I like the idea that XML is more like a programming language. Run or Debug! That's much better than unexpected/weird behaviour based on browser.
However, XML is server-side or client-side? Anyway, I'll dig into it more later on. Thanks for all the resource links.- Son Nguyen
AdSpeed.com - Ad Serving and Ad Management Made Easy
-
Dec 2, 2000, 23:09 #21
- Join Date
- Aug 1999
- Location
- Pittsburgh, PA, USA
- Posts
- 3,910
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Whoa whoa whoa, closing tags will look like this?:
<html>
<head>
<title>This is the Title<title />
<head />
<body>
Text
<body />
<html />
Please tell me this is not the case - what is the value in this?
As for the other changes: I'm quite lucky. I always write my HTML in all lowercase, and I basically alows place quotations are attributes in tags - I guess I'm fortunate to have learned that way.
-
Dec 2, 2000, 23:52 #22
- Join Date
- Aug 2000
- Location
- Alberta, Canada
- Posts
- 113
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
That's part of the point of XHTML, some of the tags end as we're used to, some end with the /> and it's a memory thing to know which don't a which do. First of course, one has to learn the ones that do which is why all of the links listed in this thread, will be useful to check out.
A good DOCTYPE to get started with (as per W3C) is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
and unless your HTML Validator has the ability to parse XHTML, here are two good places to Bookmark, for online checking:
HTML Validation Service : http://validator.w3.org/
for those who like it straight from the source
WDG HTML Validator : http://www.htmlhelp.com/tools/validator/
which is slightly better than the W3C Validator by not only pointing out the exact same errors, but also gives you links to figuring out how to fix them.
Although they both are listed as "HTML Validators" they will both check XHTML as well, according to the DOCTYPE.
-
Dec 3, 2000, 00:54 #23
- Join Date
- Aug 1999
- Location
- Pittsburgh, PA, USA
- Posts
- 3,910
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Has any indication been given as to why some tags will close differently from the way we're used to closing them? I, as of right now, don't see a point in it.
-
Dec 4, 2000, 07:51 #24
- Join Date
- Nov 1999
- Location
- Mechanicsburg, PA
- Posts
- 7,294
- Mentioned
- 123 Post(s)
- Tagged
- 1 Thread(s)
Originally posted by TWTCommish
Whoa whoa whoa, closing tags will look like this?:
<html>
<head>
<title>This is the Title<title />
<head />
<body>
Text
<body />
<html />
Please tell me this is not the case - what is the value in this?
As for the other changes: I'm quite lucky. I always write my HTML in all lowercase, and I basically alows place quotations are attributes in tags - I guess I'm fortunate to have learned that way.
Dave Maxwell - Manage Your Site Team Leader
My favorite YouTube Video! | Star Wars, Dr Suess Style
Learn how to be ready for The Forums' Move to Discourse
-
Dec 4, 2000, 10:48 #25
- Join Date
- Aug 1999
- Location
- Pittsburgh, PA, USA
- Posts
- 3,910
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Glad to hear it, what a relief! Although I'm still not sure what the point is! Can someone enlighten me?
Bookmarks