homepage Welcome to WebmasterWorld Guest from 54.235.16.159
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / XML Development
Forum Library, Charter, Moderators: httpwebwitch

XML Development Forum

    
Why xml?
AWSwS




msg:3431093
 12:12 pm on Aug 24, 2007 (gmt 0)

Sorry if this is a stupid question.

but what is the use of xml, i know its great for storing info. dc++ and utorrent use it.

but whats its use in a html file? i have seen books to do with html cover it as a topic. but i have never acturally looked in those areas.

is it going to be the next step in webdevelopment?
what area the bonus's from using xhtml verus html
(and whats dhtml is that just an alias for xhtml?)

any reading material towards these subjects would be great. hell any info to do with xhtml etc would rock even tutorials as if its worth learning i'll do it.

Thanx for any responses

- Adam White

 

cmarshall




msg:3431116
 12:43 pm on Aug 24, 2007 (gmt 0)

Sorry if this is a stupid question.

The only stupid question is the one you don't ask.

but what is the use of xml, i know its great for storing info. dc++ and utorrent use it.

but whats its use in a html file? i have seen books to do with html cover it as a topic. but i have never acturally looked in those areas.

XML is best used as a data interchange/storage format. It basically removes the need to worry about how data is encapsulated and organized, as it gives you a set of predefined and flexible tools. It also has a lot of programmatic support, with tools in almost every language out there, as well as many system tools.

It's use as a Web page design language (XHTML) was basically an effort to simplify and regulate Web pages. This enhances their use in what people call the "Semantic Web*." This means that Web pages can be "sucked in" by automated processes, and reformatted. The nice thing about XML is that computer software understands it. If you write well-formed XML, then a program can break it into pieces and work with those pieces well.

is it going to be the next step in webdevelopment?

Yes and no. The next version of HTML [whatwg.org] will be HTML, not XML-based. However, it will still require that pages be well-formed, which is the chief requirement for the semantic Web.

what area the bonus's from using xhtml verus html

Your page can be read and processed by software more easily. This is important if you have a site that can become part of a "mash up," which means that it could have it's content mixed with the results of other pages. Google Maps [google.com] is a good example of mash-ups.

(and whats dhtml is that just an alias for xhtml?)

No. Apples and oranges. DHTML [irt.org] refers to a technique, more than a specific technology.

any reading material towards these subjects would be great. hell any info to do with xhtml etc would rock even tutorials as if its worth learning i'll do it.

A good place to start is XML.com [xml.com].

I hope this helps.

*copyright O'Reilly Media

cmarshall




msg:3431229
 2:57 pm on Aug 24, 2007 (gmt 0)

Oh, yeah.

W3 Schools [w3schools.com] is an excellent resource for many different technologies; not just XML.

mattur




msg:3431447
 6:22 pm on Aug 24, 2007 (gmt 0)

See also:

FAQ: Choosing the best doctype for your site [webmasterworld.com]

Why most of us should NOT use XHTML [webmasterworld.com]

Not wishing to complicate matters unnecessarily but:

This enhances their use in what people call the "Semantic Web*."

Strictly speaking the Semantic Web uses RDF and OWL, not XHTML. There was talk of providing some way of embedding RDF in XHTML but AFAIK this has not been decided, all this stuff is still on the drawing board.

So don't use XHTML because you think you may need it for the Semantic Web at a later date, you almost certainly won't. The Semantic Web is some way off, and, IMHO, wildly impractical anyway ;-)

The next version of HTML will be HTML, not XML-based. However, it will still require that pages be well-formed...

HTML5 will also be available in an XHTML format (i.e. XHTML5) but the HTML version is recommended. HTML5 does not require well-formedness but XHTML5 does.

For example, <br> is fine in HTML5 (and so is <br />). But only <br /> is conformant XHTML5.

XML is great for all kinds of purposes as cmarshall described. But it's not particularly great for publishing web pages (XHTML), so for most people, HTML is the best option.

cmarshall




msg:3431588
 10:22 pm on Aug 24, 2007 (gmt 0)

Strictly speaking the Semantic Web uses RDF and OWL, not XHTML.

Yes, but I have found chopping up an XHTML page in a DOMDocument to be a lot easier than using badly-supported RSS or SOAP.

As it is, DOMDocument will also support HTML, so there isn't really a huge argument for using XHTML.

I like XHTML because I can validate at 30,000 feet using <oXygen/>.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / XML Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved