SharonAnaki
Technical User
HI,
XML IS REALLY NEW TO ME - SO I HOPE MY QUESTION WOULDN'T BE TOO ..."SIMPLE"...
I HAVE CREATED THE FOLLOWING XML FILE:
<?xml version="1.0"?>
<NEWSPAPER>
<ARTICLE>
<TITLE>FARMER</TITLE>
<AUTHOR>JOHN LOCK</AUTHOR>
<CONTENT>LETTER.DOC</CONTENT>
<IMAGE>Grandma.gif</IMAGE>
</ARTICLE>
</NEWSPAPER>
NOW I WANTED TO "SEE" THE ARTICLE, SO I COMPUSED THE FOLLOWING HTML FILE:<html>
<head>
<title>Untitled</title>
</head>
<body>
<XML ID="dsoNewspaper" SRC="TEST2.XML"></XML>
<H2>NEWSPAPER</h2>
<TABLE DATASRC="#dsoNewspaper">
<THEAD>
<TH>TITLE</th>
<TH>AUTHOR</th>
<TH>CONTENT</th>
<TH>IMAGE</th>
</THEAD>
<TR>
<TD><SPAN DATAFLD="TITLE"></span> </td>
<TD><SPAN DATAFLD="AUTHOR"></span> </td>
<TD>??????</td> 'HERE I WANTED TO CALL FOR THE DOC FILE
<TD><IMG DATAFLD="IMAGE"></td>
</tr>
</table>
</body>
</html>
MY PROBLEM IS WITH THE DOC TYPE FILE. SHOULD I USE ASP, OR IS THERE AN EARSIER WAY?
THANX
SHARON
XML IS REALLY NEW TO ME - SO I HOPE MY QUESTION WOULDN'T BE TOO ..."SIMPLE"...
I HAVE CREATED THE FOLLOWING XML FILE:
<?xml version="1.0"?>
<NEWSPAPER>
<ARTICLE>
<TITLE>FARMER</TITLE>
<AUTHOR>JOHN LOCK</AUTHOR>
<CONTENT>LETTER.DOC</CONTENT>
<IMAGE>Grandma.gif</IMAGE>
</ARTICLE>
</NEWSPAPER>
NOW I WANTED TO "SEE" THE ARTICLE, SO I COMPUSED THE FOLLOWING HTML FILE:<html>
<head>
<title>Untitled</title>
</head>
<body>
<XML ID="dsoNewspaper" SRC="TEST2.XML"></XML>
<H2>NEWSPAPER</h2>
<TABLE DATASRC="#dsoNewspaper">
<THEAD>
<TH>TITLE</th>
<TH>AUTHOR</th>
<TH>CONTENT</th>
<TH>IMAGE</th>
</THEAD>
<TR>
<TD><SPAN DATAFLD="TITLE"></span> </td>
<TD><SPAN DATAFLD="AUTHOR"></span> </td>
<TD>??????</td> 'HERE I WANTED TO CALL FOR THE DOC FILE
<TD><IMG DATAFLD="IMAGE"></td>
</tr>
</table>
</body>
</html>
MY PROBLEM IS WITH THE DOC TYPE FILE. SHOULD I USE ASP, OR IS THERE AN EARSIER WAY?
THANX
SHARON