|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
rss question
I wasnt sure where to post this question but xml seemed a close enough bet. I cant figure out how to use the category tag in RSS. I'm trying to use the 3dgpu rss feed. when i try to extract the category i just get nothing in the variable i tried to extract it too. but the same way ive been doing this has worked for the title, description, link and pubdate so whats the deal with <category>? Am I just using it wrong or something. I must admitt im new to RSS. Thanks alot.
|
|
#2
|
|||
|
|||
|
How are you extracting the information (do you have a code example)?
Make sure that if you're doing things kinda 'manually', you reference children properly. For example, if you had: <letter> <head> <to>Me</to> <from>Also Me</from> </head> <text>This is my letter: P</text> </letter> If you have an object-oriented language and have a reference to the root node (letter), you'll be able to access the text by something like: referenceVar.childNodes[1] now, if you do the same thing for the head: referenceVar.childNodes[0] you may not get the text enclosed in the deeper tags -- you would need to do another child node reference -- like: referenceVar.childNodes[0].childNodes[0] // to referenceVar.childNodes[0].childNodes[1] // from I don't know if this has anything to do with your question -- but it's something to consider if you can get the information from some nodes, but not others. Also, you may wish to give a snippet of the RSS feed -- as there are like 7 different versions or something close to that (maybe it's 11?) Hope this gives some insight. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > rss question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|