drumbum360
12-08-2010, 01:30 PM
I have an XML file structured like this:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="style/NewsFeed.css"?>
<updates>
<upd>
<name>Clean</name>
<tdate>11.23.2010</tdate>
<blurb>You have to clean up after yourself in our office.</blurb>
</upd>
<upd>
<name>Welcome</name>
<tdate>11.22.2010</tdate>
<blurb>Welcome message here for all to read!</blurb>
</upd>
</updates>
and am trying to display it in an .asp page with css applied to it. I think I would need the asp to read through the file in a loop that styles all the <name> fields the same and <tdate> fields as well as <blurb> fields. I am not experienced in doing this at all so I'm not sure where to start. I've been reading "parse xml with asp" tutorials a lot lately and cannot seem to get them to work for me with styling elements.
Are you able to help me with this or point me to a post/tutorial that shows how?
Thank you
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="style/NewsFeed.css"?>
<updates>
<upd>
<name>Clean</name>
<tdate>11.23.2010</tdate>
<blurb>You have to clean up after yourself in our office.</blurb>
</upd>
<upd>
<name>Welcome</name>
<tdate>11.22.2010</tdate>
<blurb>Welcome message here for all to read!</blurb>
</upd>
</updates>
and am trying to display it in an .asp page with css applied to it. I think I would need the asp to read through the file in a loop that styles all the <name> fields the same and <tdate> fields as well as <blurb> fields. I am not experienced in doing this at all so I'm not sure where to start. I've been reading "parse xml with asp" tutorials a lot lately and cannot seem to get them to work for me with styling elements.
Are you able to help me with this or point me to a post/tutorial that shows how?
Thank you