• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

xml or html ?

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,
very suprised.
open http://www.infoworld.com/articles/hn/xml/01/02/19/010219hncmcase.xml
I got a html file.
Is it a xml or html file? How did they implement it?
Thanks!
-Zhining Zhang
 
Zhining Zhang
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I guess that the xml file is a real xml file. When opening it, the server uses default template to render it.
Try to download, or 'save as', the xml file, you will get .html file ( note, .html extension). http://www.infoworld.com/articles/hn/xml/01/02/19/

this page uses print template with the same xml file.
http://staging.infoworld.com/articles/hn/xml/01/02/19/010219hncmovrvw.xml?Template=/storypages/printfriendly.html
It is interesting to me, because it is that xml files (data) use different templates, not templates use xml files.
Thanks!
-Zhining
 
Whip out those weird instruments of science and probe away! I think it's a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic