Xml-ViewXML

From WikiEducator
Jump to: navigation, search
Uou-logo-100px.png
Home  |  About UOU  |  About CEMCA  |  Contact Us    

Unit 3.3 Web application development tools & Technologies


3.3.4 XML
3.3.4.1 XML document structure
3.3.4.2 XML element naming rules
3.3.4.3 Important rules to keep in mind while creating XML document
3.3.4.4 Viewing a XML document
3.3.4.5 Displaying XML with XSLT

3.3.4.4 Viewing a XML document

XML file can be viewed in browsers. Steps are as follows:

     1. Create a XML document

     2. Save it as xml extension

     3. View raw xml file in any browser.

If the XML document has any error the browser will report it.XML document will be display as it is because XML document do not contain information about how to display data.

3.3.4.5 Displaying XML with XSLT

As we know XML will be display as it is because XML document do not contain information about how to display data. To resolve this and to display the data carried by XML document we use XSLT. With the help of XSLT a XML document can be transformed into HTML.
XSLT (eXtensible Stylesheet Language Transformations) is the recommended style sheet language of XML.

http://www.w3schools.com/xml/tryxslt.asp?xmlfile=simple&xsltfile=simpleXSLT transformation is done by the browser, when the browser reads the XML file.Different browsers may produce different result when transforming XML with XSLT. To reduce this problem the XSLT transformation can be done on the server.

Next
Suggested Reading
  • Web Applications


 Suggested Videos
  • Video 01 Title
  • Video 02 Title
  • Video 03 Title