![]() |
|
[Introduction][Goals of XML][XML vs HTML][How to write XML] The Official Goals of XML XML shall be straightforwardly usable over the internet XML shall support a wide variety of applications XML is already being used for exchanging information among financial programs, for distributing and updating programs, for writing invoices for delivery over the phones XML shall be compatible with SGML It shall be easy to write programs which process XML documents XML documents should be human readable and reasonably clear The XML should be prepared quicly XML should be easy to create How can XML be Used? Real Word Uses of XML Storing Databases Structuring documents Storing Vector Graphics (VML) Describing Multimedia Applications Definning channels Describing software packages and the indeterdependencies Communicating among applications Sending electronicn bbusiness cards vie e-mai XML can Separate Data from HTML With XML, your data is stored outside your HTML. When HTML is used to display data, the data is stored inside your HTML. With XML, data can be stored in separate XML files. This way you can concentrate on using HTML for data layout and display, and be sure that changes in the underlying data will not require any changes to your HTML. XML data can also be stored inside HTML pages as "Data Islands". You can still concentrate on using HTML only for formatting and displaying the data. XML is used to Exchange Data XML, data can be exchanged between incompatible systems. In the real world, computer systems and databases contain data in incompatible formats. One of the most time consuming challenges for developers has been to exchange data between such systems over the Internet. Converting the data to XML can greatly reduce this complexity and create data that can be read by many different types of applications. XML and B2B With XML, financial information can be exchanged over
the Internet. With XML, plain text files can be used to share data. Since XML data is stored in plain text format, XML provides a software-
and hardware-independent way of sharing data. With XML, plain text files can be used to store data. XML can make your Data more Useful With XML, your data is available to more users. Since XML is independent of hardware, software and application, you can
make your data available to more than only standard HTML browsers. XML can be used to Create new Languages If Developers have Sense If they do have sense, all future applications will store its data in XML. The future might give us word processors, spreadsheet applications and databases that can read each others data in a pure text format, without any conversion utilities in between. We can only pray that Microsoft and all the other software vendors will agree. Displaying XML Documents Style Sheet Linking You can you a Cascading Style Sheet wich is used for HTML or an XSL-eXtensible Style Language which is specifically used for the XML. XSL is more powerfull than CSS. Data binding This requires you to create an HTML page and link the XML document to it and bind standard HTML elemtns such as table to the XML elements. Scripting You create an HTML page, link the XML document to it and access and display individual XML by writing script code (Javascript or Vbscript. The browser then exposes the XML document as a Document Object Module- DOM. |
|
![]() |