×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

XML data not displaying

XML data not displaying

XML data not displaying

(OP)
Hello colleagues!

This is my HTML file:

CODE -->

<html>
<head>
<title> Página para Mostrar os Dados do Documento XML </title>
</head>
<body>
<xml id="flm" src="filmes.xml"></xml>
<table datasrc="#flm" border=1>
	<thead>
		<th>Título do Filme</th>
		<th>Produtor</th>
		<th>Dirigido por</th>
		<th>Protagonizado por</th>
	</thead>
	<tr>
		<td><span datafld="titulo"></span></td>
		<td><span datafld="produtor"></span></td>
		<td><span datafld="diretor"></span></td>
		<td><span datafld="elenco"></span></td>
	</tr>
<table>
</body>
</html> 

And this is my XML file with data to be displayed by the HTML file above:

CODE -->

<?xml version="1.0" ?>
<!-- base de dados -->
<filmes>
	<filme>
		<titulo>Autores Do Livro</titulo>
		<produtor>Makron Filmes</produtor>
		<diretor>Gercar Mazmin</diretor>
		<elenco>Gerardo Mazzetti e Carlos Mink</elenco>
	</filme>
	<filme>
		<titulo>O Fantasma do Pagode</titulo>
		<produtor>Bi Star Filmes</produtor>
		<diretor>Carge Minmaz</diretor>
		<elenco>Leonardo di Castro </elenco>
	</filme>
	<filme>
		<titulo>A Ponte do Rio que Cai</titulo>
		<produtor>Panoico Filmes</produtor>
		<diretor>Braulio Pinto</diretor>
		<elenco>Silvestre Stalonge e Sharon Pedra</elenco>
	</filme>
	<filme>
		<titulo>Sardinha</titulo>
		<produtor>Oriundo Pictures</produtor>
		<diretor>Estevao Espielberg</diretor>
		<elenco>Arnoldo Brancoepreto e Julia Roberta</elenco>
	</filme>
</filmes> 

But when I open the HTML file in a browser, it shows only the header. It does not show the data!.
See the result bellow:



What is wrong?

Thank you,
SitesMasstec

RE: XML data not displaying

Try to open this code in Microsoft Internet Explorer.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close