Results 1 to 5 of 5

Thread: Why XML

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2004
    Posts
    144

    Why XML

    I'm interested in learning XML as many of my friends who are software developers have activley adopted the use of XML. Why is XML so important to todays and future web based applications?

    need some encouragement

    Cheers

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Why XML

    Dyamic self-descriptive structure, so if some thought is used it can be made forwards and backwards compatible. Also very generic, so adaptable to many situations.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2004
    Posts
    144

    Re: Why XML

    i understand XML describes the data, does this mean its useful way of creating applications that may interoperate with one another by using XML to describe the information being passed?

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Why XML

    The self-descriptive part is of utmost importance when you can have a document of variable structure.

    Consider a typical byte structure as used in OS API's and applications worldwide.

    Code:
    struct ABC
    {
      int a;
      int b;
      char c;
    }
    When that is sent over a communication channel, the recipient will receive 9 bytes of data. This could mean anything. While it's very efficient, it will only produce the correct result if the structure is known beforehand.

    Now consider this:
    Code:
    <abc>
      <a>...</a>
      <b>...</b>
      <c>...</c>
    </abc>
    One can easily tell what is a, b, and c, as the structure is inherently part of the document itself.

    This can be useful for inter-application communication as the document type can be inferred from the document structure. Whether or not this is useful depends on how the applications are engineered, but if an application is built to take advantage of XML it does make it much more versatile as opposed to static structures as used in the first example. This is very useful with web services which can return variable types and amounts of data, and tied in with databases. A database access service which returns a resultset in XML can handle any query processed through it.

    Does that help?

  5. #5
    Addicted Member
    Join Date
    Feb 2002
    Posts
    159

    Re: Why XML

    Here are some reasons why some people and myself are attracted to XML


    You can create your own TAGS

    Rather than wait for standard bodies to adopt TAG set enhancements, or browser companies to adopt each others standards, with XML you can create your own set of TAGS at your own pace

    Develop tools that meet your exact needs

    By defining your own TAGS, you create the mark-up language in terms of your specific problem set!

    Rather than relying on a generic set of TAGS which suit everyone’s needs adequately, XML allows every person/organisation to build their own library which suits their needs perfectly.

    XML allows each specific industry to develop its own TAG sets to meet its unique needs.

Posting Permissions

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



Click Here to Expand Forum to Full Width