You must Sign In to post a response.
  • Category: XML

    What are the advantages of XML?what are the Drawbacks of XML?

    what XML?why to use XML?What are the advantages of XML?what are the Drawbacks of XML?
  • #645168
    Hi,

    What is XML:

    XML stands for eXtensible Markup Language.

    XML is designed to transport and store data.

    XML is important to know, and very easy to learn.


    Uses of XML:

    XML in Web Development

    In a way, you could argue that this is the most widespread use of XML, as XHTML. Because XHTML is simply HTML 4.0 reworked, many HTML 4.0 sites are actually using an invalid form of XHTML.

    But the benefit of XML is not that it already exists as XHTML, but that you can create web documents from XML using XSLT to transform your documents into HTML. You can then send your XML to an XSLT processor on the web server and serve that result to the web browser. This makes your documentation available in whatever format you need it to be in.
    XML and Content Management

    Ironically, with most websites that use XML, the web designers and content developers might not even know that XML is there. This is because there is generally a CMS or content management system that sits in front of the XML to make it easier for the content writers to write their web content without worrying about how to write HTML or design web pages.
    XML and Documentation

    Many companies are moving to XML to write their internal documentation. The most common XML platform for this is DocBook. The advantage of XML for documentation is that it can be used to define the common traits in books, magazines, stories, advertisements, and so forth. And DocBook already has that type of information defined.

    The best thing about XML for documentation is that the XML is easy to understand for humans, both of the actual documentation, but also the XML code surrounding it. XML can be used for any type of documentation, from a publishing house to Marketing materials.

    Here is an example of documentation written in XML:

    <howto>
    <title>How to Write a Mail Link</title>
    <author>Jennifer Kyrnin, Web Design Guide</author>
    <description>
    <paragraph>
    Use a HTML tag to allow your readers to send email directly from your Web site.
    </paragraph>
    </description>
    <directions>
    <step>Write a link as usual <a href="">email me</a></step>
    <step>Where you would normally put a URL, put the code "mailto" <a href="mailto:">email me</a></step>
    <step>Then put your email address after the colon <a href="mailto:html.guide@about.com">email me</a></step>
    </directions>
    </howto>

    As you can see, both the data and the XML are readable and understandable. The content is also in an order that would be expected by a human reading the document.
    XML and Database Development

    Databases are a natural use for XML, because XML is all about data. Unlike XML for documentation, XML for databases does not need to be readable by humans. The data is simply written in such a way to allow machines to read it and make it accessible to a database.

    Here's XML that might be loaded into a database:

    <item number="00001">
    <name>
    <first>Jane</first>
    <middle>Q</middle>
    <last>Public</last>
    </name>
    <phone type="voice">
    <areacode>407</areacode>
    <number>555-1212</number>
    </phone>
    <phone type="fax">
    <areacode>407</areacode>
    <number>555-1213</number>
    </phone>
    <email>jpublic@gmail.com</email>
    </item>

    Unlike the document XML, it's not necessary that this be easily readable by humans. Since it is meant to be input into a database, it is only important that it be processable by a computer.

    XML is used by many companies for many different reasons.

    Advantages / Dis Advantages of XML:

    Advantages of XML

    It is text-based.

    It supports Unicode, allowing almost any information in any written human language to be communicated.

    It can represent the most general computer science data structures: records, lists and trees.

    Its self-documenting format describes structure and field names as well as specific values.

    The strict syntax and parsing requirements make the necessary parsing algorithms extremely simple, efficient, and consistent.

    XML is heavily used as a format for document storage and processing, both online and offline.

    It is based on international standards.

    It can be updated incrementally.

    It allows validation using schema languages such as XSD and Schematron, which makes effective unit-testing, firewalls, acceptance testing, contractual specification and software construction easier.

    The hierarchical structure is suitable for most (but not all) types of documents.

    It manifests as plain text files, which are less restrictive than other proprietary document formats.

    It is platform-independent, thus relatively immune to changes in technology.

    Forward and backward compatibility are relatively easy to maintain despite changes in DTD or Schema.

    Its predecessor, SGML, has been in use since 1986, so there is extensive experience and software available.

    An element fragment of a well-formed XML document is also a well-formed XML document.

    Disadvantages of XML

    XML syntax is redundant or large relative to binary representations of similar data.

    The redundancy may affect application efficiency through higher storage, transmission and processing costs.

    XML syntax is verbose relative to other alternative 'text-based' data transmission formats.

    No intrinsic data type support: XML provides no specific notion of "integer", "string", "boolean", "date", and so on.

    The hierarchical model for representation is limited in comparison to the relational model or an object oriented graph.

    Expressing overlapping (non-hierarchical) node relationships requires extra effort.

    XML namespaces are problematic to use and namespace support can be difficult to correctly implement in an XML parser.

    XML is commonly depicted as "self-documenting" but this depiction ignores critical ambiguities.]

    With Regards
    Kushal

  • #645171
    Advantages of XML:

    1.Platform Independent : Uses plain-text format which is understandable on all platforms.
    2.XML is designed to be self-descriptive.
    3.It can be updated incrementally.
    4.XML is an extremely portable language, it can be used on large networks with multiple platforms like the internet.
    5.It is also vendor independent and system independent

    Drawbacks of XML:
    1.There are no browsers yet which can read XML
    2.If an XML object has too many constraints, it might get very difficult to construct the file.
    3.XML documents can be difficult and also expensive to setup.


    I hope this will help you.

    Thanks
    Rajesh
    Software Engineer.

    Regards
    Mr.Rajesh
    Software Engg.

  • #648717
    Hi!

    Advantages Of XML

    >>You are writing your own markup language, you are not restricted to a limited set of tags defined by vendors.

    >>Rather than waiting for standards bodies to adopt tag set enhancements, with XML, you can create your own set of tags at your own pace.

    >>You free to develop at your own pace, but you are free to develop tools that meet your needs exactly.

    >>By defining your own tags, you create the markup language in terms of your specific problem set rather than relying on a generic set of tags.

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

    Disadvantages Of XML

    >>XML requires a processing application.

    >>There are no XML browsers on the market yet.

    >>XML documents must either be converted into HTML before distribution or converting it to HTML.

    >>XML isn't about display -- it's about structure.

    Regards
    Kamlesh

    Regards
    Kamlesh Mohanty


  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.