PDA

View Full Version : new to xml


hughesmi
11-19-2002, 11:49 AM
Hi,

Please can someone help me out? I have been trying some we code snippets on xml, but the WebPages don't display correctly. am using ie 5.5.

Adam20002
11-19-2002, 12:37 PM
Can you post some code examples ?

Adam

hughesmi
11-19-2002, 12:51 PM
<?xml version="1.0" encoding="ISO-8859-1" ?>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>


It just displays the code,

Adam20002
11-19-2002, 12:59 PM
Hi,

That is the intended result of accessing a raw .xml page in IE. It will use its internal stylesheet to add some colour coding etc.

If you want you xml to be transformed into a web page i would suggest reading up on XSL.

http://www.xslt.com
http://www.xmlfiles.com/xsl/
http://www.w3schools.com/xsl/default.asp

The above links might help.

Adam.