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 8 of 8
  1. #1
    New Coder 4B/75/73/41/'s Avatar
    Join Date
    Nov 2008
    Posts
    54
    Thanks
    1
    Thanked 3 Times in 3 Posts

    Are there any XML standards?

    I have tried to learn XML, but never really understood it. - I know it is very flexible and that it has spawned many other markup languages.

    It appears that with XML, one has to make up their own tags, is this true or are there XML standards?

  • #2
    Moderator
    Join Date
    May 2002
    Location
    Hayward, CA
    Posts
    1,459
    Thanks
    1
    Thanked 23 Times in 21 Posts
    There are several XML standards, but XML itself isn't a single language. XHTML is HTML reformulated as XML. MathML is a XML language, as is SVG.

    XML is a family of languages as well as a flexible (if verbose) data exchange format. What are you trying to do?
    "The first step to confirming there is a bug in someone else's work is confirming there are no bugs in your own."
    June 30, 2001
    author, Verbosio prototype XML Editor
    author, JavaScript Developer's Dictionary
    https://alexvincent.us/blog

  • Users who have thanked Alex Vincent for this post:

    4B/75/73/41/ (07-19-2013)

  • #3
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,611
    Thanks
    0
    Thanked 645 Times in 635 Posts
    XML is a standard - you can't use XML directly, you must always use a markup language written to use the XML standard (unless you are creating your own markup language in which case you have a choice of following the XML standard or the more generic standard of which XML is a subset called SGML).
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #4
    New to the CF scene
    Join Date
    Jul 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Use case?

    Given how flexible it is, it might be helpful if you described your intended use for the XML, in terms of content, messaging end points, data storage etc.

  • #5
    New Coder 4B/75/73/41/'s Avatar
    Join Date
    Nov 2008
    Posts
    54
    Thanks
    1
    Thanked 3 Times in 3 Posts
    I think I understand now. When writing in HTML and GTK-Dialog I actually am using XML - because both are markup-languages designed with the XML standard. Right?

  • #6
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,611
    Thanks
    0
    Thanked 645 Times in 635 Posts
    Quote Originally Posted by 4B/75/73/41/ View Post
    I think I understand now. When writing in HTML and GTK-Dialog I actually am using XML - because both are markup-languages designed with the XML standard. Right?
    HTML 2 through HTML 4 are defined using SGML - it is XHTML that is defined using XML.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #7
    Moderator
    Join Date
    May 2002
    Location
    Hayward, CA
    Posts
    1,459
    Thanks
    1
    Thanked 23 Times in 21 Posts
    Technically, XML languages like XHTML are a subset of SGML as well. HTML is not XML though.

    For example, the following is legal HTML but not XML:

    Code:
    <img src="foo.jpg" title="Foo">
    In XML, the img element would either have to have a closing </img> tag or the opening tag must close itself (<img />)
    "The first step to confirming there is a bug in someone else's work is confirming there are no bugs in your own."
    June 30, 2001
    author, Verbosio prototype XML Editor
    author, JavaScript Developer's Dictionary
    https://alexvincent.us/blog

  • #8
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,611
    Thanks
    0
    Thanked 645 Times in 635 Posts
    Quote Originally Posted by Alex Vincent View Post
    Technically, XML languages like XHTML are a subset of SGML as well.
    That's because XML was created as an easier to use subset of SGML. It is far easier to create markup standards using XML than it is using SGML.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


  •  

    Posting Permissions

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