Sponsored Ad

Tuesday, December 22, 2009

Use of XML HTML and QTP

With this, I am beginning a series of posts on savings plan and XML. To set the tone for the debate, I would start with the basics of XML and the differences between XML and HTML.

What is XML?

XML is a markup language much like HTML. The primary use of XML to store, above, and information exchange. Being hardware independent software, has been widely accepted XML (W3C standard) as a means of exchanging information between disparate systems.

XML does not really do anything – it only structures, stores or sends information.

For example, this is a note stored as XML:

 

  1. <note>
  2.  
  3. <to>LearnQTP</to>
  4.  
  5. <from>Ankur Jain</from>
  6.  
  7. <heading>XML</heading>
  8.  
  9. <body>XML and QTP</body>
  10.  
  11. </note>

The note has a header and a message body, sender and receiver of information. Data from the well-formed that, however, this XML document is nothing. Someone should write a piece of software to send, receive, display or interpretation.

Program that can handle plain text can also handle XML. In a simple text editor, XML tags will be visible. In an XML-aware application, however, XML tags can be handled in special (may or may not be visible, or have a functional significance).

XML vs HTML :

HTML describes the presentation. It is used to display data and focuses on how data looks. For example, in HTML, bibliography is the header, the remainder is in paragraphs with text in italics ...

  1. <h1> Bibliography </h1>
  2.  
  3. <p> <i> Foundations of Databases </i>
  4.  
  5. Abiteboul, Hull, Vianu
  6.  
  7. <br> Addison Wesley, 1995
  8.  
  9. <p> <i> Data on the Web </i>
  10.  
  11. Abiteoul, Buneman, Suciu
  12.  
  13. <br> Morgan Kaufmann, 1999

 

XML describes the content. It is used to describe the data and focuses on the data.

For example, in the XML below, the literature is a child element with books.

  1. <bibliography>
  2.  
  3. <book> <title> Foundations… </title>
  4.  
  5. <author> Abiteboul </author>
  6.  
  7. <author> Hull </author>
  8.  
  9. <author> Vianu </author>
  10.  
  11. <publisher> Addison Wesley </publisher>
  12.  
  13. <year> 1995 </year>
  14.  
  15. </book>
  16.  
  17.  
  18. </bibliography>

HTML can also use XML to store their data and focus on the presentation so that changes do not affect the data to HTML. In that sense, XML is a complement to HTML, not a replacement for it.

2 comments:

  1. Looking for a way tweet from csharp. I have looked at many examples and frameworks ...none seem to work. Mostly because they never explain what to add in the include statements or where to get the dlls to get it compile !!!! Help !!!!
    ReplyDelete
  2. Please find C# code tweet at:

    http://www.csharptalk.com/2010/01/how-to-tweet-from-cnet-tweet-from-c.html
    ReplyDelete

Sponsored Ad

More Related Articles

Website Update

Followers