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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Show multiple attributes in For...Next from XML

Status
Not open for further replies.

Dijital

MIS
Mar 15, 2002
47
US
So far I have come up with the folling code:

<script type=&quot;text/vbscript&quot;>

set xmlDoc=CreateObject(&quot;Microsoft.XMLDOM&quot;)
xmlDoc.async=&quot;false&quot;
xmlDoc.load(&quot;mssecure.xml&quot;)

path=&quot;/BulletinDatastore/Bulletins/Bulletin/@Title/text()&quot;
set nodes=xmlDoc.selectNodes(path)
for each x in nodes
document.write(x.xml)
next

</script>

Two things I cant figure out:
1)I would like to be able to select multiple attributes to display. (@BulletinID, @Title, @Summary etc.)
2)I also do not know how to create carriage returns as using VbCrLf will not work. { ie., document.write(VbCrLf) }

Eventually I'm aiming at creating a list of BulletinID's to display...

-Jim Connors

</BODY>
</HTML>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top