Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Banned
    Join Date
    Mar 2003
    Posts
    224
    Thanks
    0
    Thanked 0 Times in 0 Posts

    whats new?

    what is new about xml from html except ending tags?


    <br />

  • #2
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    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

  • #3
    Senior Coder
    Join Date
    Jul 2002
    Posts
    1,628
    Thanks
    0
    Thanked 0 Times in 0 Posts
    to knock out some basic questions, go over this:
    http://www.w3schools.com/xhtml/default.asp

    XML + HTML = XHTML

  • #4
    Regular Coder
    Join Date
    Nov 2002
    Posts
    672
    Thanks
    1
    Thanked 1 Time in 1 Post
    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

  • #5
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    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.
    Last edited by liorean; 04-05-2003 at 09:07 PM.
    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

  • #6
    Senior Coder
    Join Date
    Jul 2002
    Posts
    1,628
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •