In my journey with computers I just started basics of web. After a nice practice on HTML now I am facing XML.
I can understand all the concepts about XML as a language and I understand that it is used to deal with data and not just rendering a webpage.
What I cannot get is when and how you use XML on the web. Webpages are written in HTML, so I wonder, when the XML shows up? Can anybody provide few practical examples? When do you want to write an XML file and where do you put it? Can a webpage be a mixture of HTML and XML?
I am sorry for this naive and very basic question but for some reasons my brain refuses to digest this thing.
Thanks
XML stores data and that's all. XSL takes that data, matches patterns and produces (usually) HTML.
It is possible, in theory, to download an XML file (or any data in XML format) with an attached stylesheet and render it entirely on the client but that would not do much for the page's search engine ranking.
What usually happens is the HTML file uses javascript to download the XML data, render it with either XSL or javascript and then modify the HTML on the page. This means you don't have to refresh the entire page or download superfluous formatting data with every request.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments