Xml-ViewXML
Home | About UOU | About CEMCA | Contact Us
| |||||||||
|
3.3.4.4 Viewing a XML documentXML 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. 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. |
|