XML data not displaying
XML data not displaying
(OP)
Hello colleagues!
This is my HTML file:
And this is my XML file with data to be displayed by the HTML file above:
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?
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
RE: XML data not displaying