Click to See Complete Forum and Search --> : Displaying XML elements with ASP


metalman3d
03-08-2006, 12:45 PM
Does anyone know a way to use asp to display xml elements using asp as opposed to xsl? An example:

I want to response.write all the titles in this xml doc that were done before 2000, but I don't want to use xsl.

<xmldoc>
<cd>
<title>a</title>
<artist>a</artist>
<year>1999</year>
</cd>
<cd>
<title>b</title>
<artist>b</artist>
<year>1997</year>
</cd>
<cd>
<title>c</title>
<artist>c</artist>
<year>2004</year>
</cd>
</xmldoc>

Any help would be appreciated. Thanks.

russell_g_1
03-08-2006, 05:10 PM
you could use an xpath query to pick up the title nodes and then loop through them writing html.