Can anyone tell me how to read an XML data file with VBscript? I have an XML file of the format
<paststories>
<story>
<storyref>someref</storyref>
<storytitle>sometitle</storytitle>
<storydate>somedate</storydate>
</story>
.
.
.
</paststories>
Now I want to use VBScript scripts in an ASP file to read that XML file and then use the data to format a table. So in some way, I want to derive VB variables, say, strRef, strTitle, strDate, and populate a table by coding <tr><td><%=strTitle %></td><td><%=strDate %></td></tr> for each <story> in the XML file.
My problem is that I can't find a method that works. I've tried XMLRead which looked promising, but I couldn't find a way of getting the page to display in any way! I must be doing something wrong! Can anyone provide me with all that I need to code round what I've put here? Or am I mistaken that this can actually be achieved? I'm aware that I can use simple XML to achieve what I want EXCEPT for the href value - that's what's driving me crazy! Thanks in advance.



