Advertisement

05.05.2008 at 06:52AM PDT, ID: 23376379 | Points: 125
[x]
Attachment Details

get nested item in rss feed

Asked by dingizian in RSS, Active Server Pages (ASP), Extensible Markup Language (XML)

Tags: rss xml vbscript

Below is how I retrive items from a rss feed.
My question is how do I write my code to get the content of <obs:fileurl> for <obs:file id="791120">

      set channelNodes = xmlDoc.selectNodes("//channel/*")
      set itemNodes = xmlDoc.selectNodes("//item/*")
      

      For each item in itemNodes
            if item.tagName = "title" then
                                                  strItemTitle =  item.text
                                          end if
                     nextStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
<obs:files>
		
			<obs:file id="791119">
				<obs:filedescription>Press release in html format</obs:filedescription>
				<obs:filetype>MAIN</obs:filetype>
				<obs:fileurl>http://feed.ne.cision.com/client/victoriapark//Commands/File.aspx?id=791119</obs:fileurl>
				<obs:filename>release.html</obs:filename>
				<obs:filemimetype>text/html</obs:filemimetype>
				<obs:filelinktext></obs:filelinktext>
				<obs:filesize>3391</obs:filesize>
			</obs:file>
			
			<obs:file id="791120">
				<obs:filedescription></obs:filedescription>
				<obs:filetype>MAIN</obs:filetype>
				<obs:fileurl>http://feed.ne.cision.com/client/victoriapark//Commands/File.aspx?id=791120</obs:fileurl>
				<obs:filename>wkr0003.pdf</obs:filename>
				<obs:filemimetype>application/pdf</obs:filemimetype>
				<obs:filelinktext></obs:filelinktext>
				<obs:filesize>24851</obs:filesize>
			</obs:file>
			
			<obs:file id="791121">
				<obs:filedescription></obs:filedescription>
				<obs:filetype>ATTACHMENT</obs:filetype>
				<obs:fileurl>http://feed.ne.cision.com/client/victoriapark//Commands/File.aspx?id=791121</obs:fileurl>
				<obs:filename>wkr0009.pdf</obs:filename>
				<obs:filemimetype>application/pdf</obs:filemimetype>
				<obs:filelinktext></obs:filelinktext>
				<obs:filesize>5993272</obs:filesize>
			</obs:file>
					
	</obs:files>
 
Loading Advertisement...
 
[+][-]05.05.2008 at 07:01AM PDT, ID: 21500074

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628