PDA

View Full Version : XML ASP HTML Problem


Fuego
05-14-2004, 03:01 PM
When Im making a html file with this code it works delicious

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<xml id="Expedia" src="myxml.xml"></xml>
<table datasrc="#Ex" class="tekst">
<tr>
<td>
<a href="<datasrc="#Ex" datafld="URL"><span datasrc="#Ex"
datafld="HEADLINE"></span></a>
</td>
</tr>
</table>
</body>
</html>



But when I embed this is the HTML Section of my .ASP it just wont let me see anything

Alex Vincent
05-14-2004, 11:55 PM
I'm afraid we need more information. I don't know any ASP...

Are you saying the file works perfectly as a standalone file, but when processed through your ASP server, it comes out differently?

What does the source code (View, Source) print out from Internet Explorer?

What's your myxml.xml file look like?

I count nine (an odd number) double-quotes in that <a> element's attributes (and child element attributes). That fragment is not well-formed XML... each double-quote opening a string should be closed with a double-quote, so it should be an even number (eight, ten?). Also, I don't see any single-quotes... could swapping out double-quotes for single quotes help?

<x foo="bar"></x>
<x foo='bar'></x>

Most processors would treat those identically.

M@rco
05-23-2004, 01:39 PM
Post the full source of your ASP script.