Go Back   CP Web Hosting - reseller hosting > Browser Scripting, HTML, XML and Multimedia > XML
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-20-2007, 02:17 AM
Senior Member
 
Join Date: May 2007
Posts: 244
Default XML info.

Why do browsers display code when viewing XML?
Reply With Quote
  #2 (permalink)  
Old 06-20-2007, 02:20 AM
Senior Member
 
Join Date: May 2007
Posts: 329
Default

Quote:
Originally Posted by biatche View Post
Why do browsers display code when viewing XML?

Web browsers only know how to display one type of XML: XHTML. All other XML that is opened in a Web browser will display as plain markup code unless you tell the browser how to display that markup. In other words, you could markup a complete XML document and never tell it how to display in a browser or in a printout. In fact, most XML has no styles attached to it, because they aren't meant to be viewed in Web browsers. Instead they are used as data sources for Web applications like with Ajax.

The simplest way to display XML in a nice fashion is to include SHTML tags in the markup. This tells Web browsers how to display the content. You can also use CSS style sheets to style XML and have it display in browsers that way.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:02 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0