• home
  • forum
  • my
  • kt
  • download
  • Everything XML

    Author: 2008-09-02 08:19:21 From:

    XML stands for Extensible Markup Language. Most people think XML is either a markup language or a metalanguge. Both are correct. It is used as a metalanguge to create XML-based languages, which are used to create specific documents. XML is used as a markup language to markup text.


    Markup refers to the "insertion of characters to indicate how the information in a document should appear when it is printed or displayed, or to describe a document's logical structure." -XML written by Al McKinnon and Linda McKinnon.


    Yes and no. XML and HTML both use tags, elements, and attributes, so they appear very similar.
    Though, XML is not like HTML and was never meant to replace HTML. They both were designed with different goals. XML was designed to describe data and focus on what the actual data is. However, HTML was designed to display content and focus on how the content looks.


    Sure you can! Here would be the HTML code:
    Code:
    <p>

    ABC Co. owes us <strong>3517 dollars</strong>. This account should be monitored.

    And here would be XML:
    Code:
    <text><client>ABC Co.</client> owes us <invamt>3517 dollars</invamt><remark>This account should be monitored.</remark></text>




    Code:
    <?xml version="1.0"?>
    <!-- Your first XML code -->
    <message>
        <saying>
            <friendly>How are you?</friendly>
            <improper>Hey! You!</improper>
        </saying>
    </message>


    At the very beginning, you see this code:"<?xml version="1.0"?>". You need that for every XML code that you write.

    Hope this will be of use to anybody learning XML

    discuss this topic to forum

    relation tutorial

    No relevant information

    Category

      Authoring (2)
      Book Samples (1)
      Database Related (2)
      Development (7)
      Introduction to XML (11)
      Java and XML (4)
      Miscellaneous (8)
      Parsing (2)
      PHP and XML (2)
      Style Sheets (9)
      Web Services (10)

    New

    Hot