I'm trying to build a XML-driven database of news articles, but I can't seem to find any info on the web.
I want the XML file to be parsed on the server, and not on the client, using ASP, but I can't find the command to do this. I know it's possible ...
Here's what I have for the .xml file:
<?xml version="1.0"?>
<main>
<title>News Title</title>
<author>Me</author>
<subject>Hardware</subject>
<summary>A summary of the article</summary>
<page n="_1">
<pagetitle>Introduction</pagetitle>
<text><![CDATA[Blah blah blah
<p>Insert HTML here</p]]></text>
</page>
<page n="_2">
<pagetitle>Conclusion</pagetitle>
<text><![CDATA[Blah blah blah
<p>Insert HTML here</p]]></text>
</page>
</main>
I want the .asp file to retrieve this information acording to what is asked to be done. For example, retrieve just the Title, Author and the contents of Page 2, and place them inside variables, that would latter be written as <% response.write(Title) %>.
Anyone care to help ?
I want the XML file to be parsed on the server, and not on the client, using ASP, but I can't find the command to do this. I know it's possible ...
Here's what I have for the .xml file:
<?xml version="1.0"?>
<main>
<title>News Title</title>
<author>Me</author>
<subject>Hardware</subject>
<summary>A summary of the article</summary>
<page n="_1">
<pagetitle>Introduction</pagetitle>
<text><![CDATA[Blah blah blah
<p>Insert HTML here</p]]></text>
</page>
<page n="_2">
<pagetitle>Conclusion</pagetitle>
<text><![CDATA[Blah blah blah
<p>Insert HTML here</p]]></text>
</page>
</main>
I want the .asp file to retrieve this information acording to what is asked to be done. For example, retrieve just the Title, Author and the contents of Page 2, and place them inside variables, that would latter be written as <% response.write(Title) %>.
Anyone care to help ?