Ho questo file xml:
codice:
<?xml version="1.0" encoding="ISO-8859-1"?>
<catalog>
	<categories>
		        <category code="VT"><![CDATA[OGGETTOA]]></category>
			<category code="VTRT"><![CDATA[OGGETTOB]]></category>
			<category code="VFG"><![CDATA[OGGETTOC]]></category>
			<category code="VDF"><![CDATA[OGGETTOD]]></category>
			<category code="VSD"><![CDATA[OGGETTOE]]></category>
...
...
se ciclo di for in questo modo:
codice:
for each itm in oXmlDoc.documentElement.selectNodes("//catalog/categories/category")
set tmp = itm.selectSingleNode("//catalog/categories")
response.Write(tmp.Text & "
")
next
ottengo a schermo una risposta del genere:
codice:
OGGETTOA OGGETTOB OGGETTOC OGGETTOD OGGETTOE
OGGETTOA OGGETTOB OGGETTOC OGGETTOD OGGETTOE
OGGETTOA OGGETTOB OGGETTOC OGGETTOD OGGETTOE
OGGETTOA OGGETTOB OGGETTOC OGGETTOD OGGETTOE
.... per quanti sono i "category"
invece vorrei avere come risultato:
codice:
OGGETTOA
OGGETTOB
OGGETTOC
OGGETTOD
OGGETTOE