Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WORD DOCUMENTS AND XML

Status
Not open for further replies.

SharonAnaki

Technical User
Feb 2, 2001
5
IL
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=&quot;1.0&quot;?>

<NEWSPAPER>
<ARTICLE>
<TITLE>FARMER</TITLE>
<AUTHOR>JOHN LOCK</AUTHOR>
<CONTENT>LETTER.DOC</CONTENT>
<IMAGE>Grandma.gif</IMAGE>
</ARTICLE>

</NEWSPAPER>

NOW I WANTED TO &quot;SEE&quot; THE ARTICLE, SO I COMPUSED THE FOLLOWING HTML FILE:<html>
<head>
<title>Untitled</title>
</head>

<body>
<XML ID=&quot;dsoNewspaper&quot; SRC=&quot;TEST2.XML&quot;></XML>
<H2>NEWSPAPER</h2>
<TABLE DATASRC=&quot;#dsoNewspaper&quot;>
<THEAD>
<TH>TITLE</th>
<TH>AUTHOR</th>
<TH>CONTENT</th>
<TH>IMAGE</th>
</THEAD>
<TR>
<TD><SPAN DATAFLD=&quot;TITLE&quot;></span> </td>
<TD><SPAN DATAFLD=&quot;AUTHOR&quot;></span> </td>
<TD>??????</td> 'HERE I WANTED TO CALL FOR THE DOC FILE
<TD><IMG DATAFLD=&quot;IMAGE&quot;></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
 
&quot;See&quot;?

Assuming you want a hyperlink to this doc, use an <A> tag here.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top