webdev077
05-13-2007, 02:00 AM
Hello everyone:
I am learing XML. I tried to use embeded html tags in one xml to display Hyper link and an image. The code works in IE7, but in Firefox, the link showed as pure text and image won't display at all.
I did some online search Firefox does support XML. I couldn't figure out what is the cause of my problem. Please look at my code and give me some suggestion. Thanks!
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="image_display.css" type="text/css"?>
<student xmlns:html="http://www.w3.org/TR/REC-html40">
<link><html:a href="http://www.google.com">GOOGLE LINK</html:a></link>
<picture><html:img src="hunter.jpg" width="441" height="600"/></picture>
</student>
webdev077
5-12-07
I am learing XML. I tried to use embeded html tags in one xml to display Hyper link and an image. The code works in IE7, but in Firefox, the link showed as pure text and image won't display at all.
I did some online search Firefox does support XML. I couldn't figure out what is the cause of my problem. Please look at my code and give me some suggestion. Thanks!
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="image_display.css" type="text/css"?>
<student xmlns:html="http://www.w3.org/TR/REC-html40">
<link><html:a href="http://www.google.com">GOOGLE LINK</html:a></link>
<picture><html:img src="hunter.jpg" width="441" height="600"/></picture>
</student>
webdev077
5-12-07