Re: [WebDNA] Parsing XML...again...
This WebDNA talk-list message is from 2010
It keeps the original formatting.
numero = 105120
interpreted = N
texte = Tana,I just hade the time to take a quick look and it seems like you have =20to do some hacking of your own since the urls are attributes of a =20node, and as far as I can see there is no way to extract an node =20attribute with WebDNA's XML functions.Best,Christer ************************************************************* Christer Olsson PO Box 9160 Phone +46 40 25 85 85 Ljusa Id=E9er AB SE-200 39 Malmo Fax +46 40 25 85 89 Kantyxegatan 5 Sweden http://www.ljusaideer.se30 mar 2010 kl. 19.45 skrev Tana Adams:> Hi,>> I'm back on parsing XML and have run into another problem. I'm> wondering if any of you could take a look at the feed below along with> the code I'm using to see if there's anything obviously wrong with it.> With the code below, I'm successfully extracting the media:category> label, media:description type, media:keywords and media:title type.> For some reason, however, I'm unable to extract the media:player url,> media:content url or media:thumbnail url. The fact that they're all> urls leads me to believe that's probably the issue but I can't seem to> figure out how to obtain the info.>> Here is the pared-down version of the feed:>>
> http://gdata.youtube.com/feeds/api/videos/j82E082KJSw> term=3D'Volleyball'/>> Brazilian Volleyball Mix>> > scheme=3D'http://gdata.youtube.com/schemas/2007/=20> categories.cat'>People> =url=3D'http://www.youtube.com/v/j82E082KJSw?f=3Dvideos&app=3Dyoutube_g=data'> type=3D'application/x-shockwave-flash' medium=3D'video' =isDefault=3D'true'> expression=3D'full' duration=3D'228' yt:format=3D'5'/>> Brazil playing in world champs> 06> Volleyball, Brazil, Giba, Dante, Spikes=20> media:keywords>> =url=3D'http://www.youtube.com/watch?v=3Dj82E082KJSw&feature=3Dyoutube_=gdata'/=20> >> height=3D'90' width=3D'120' time=3D'00:01:54'/>> Brazilian Volleyball Mix> > >>> Here is my code:>> [xmlparse =var=3Dxml_var1&source=3D[url]http://gdata.youtube.com/feeds/api/videos/-/v=olleyball=20> [/url]][/xmlparse]> [xmlnodes ref=3Dxml_var1&path=3Dnamed:Feed/Entry(7)&name=3Dmedia&exact=3D=F]> [name] - [index]=3D[value]> [xmlnodes]> [name]=3D[value]> [/xmlnodes]> [/xmlnodes]>>> Thank you,>> Tana> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list
.> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> old archives: http://dev.webdna.us/TalkListArchive/> Bug Reporting: =http://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D288
Associated Messages, from the most recent to the oldest:
Tana,I just hade the time to take a quick look and it seems like you have =20to do some hacking of your own since the urls are attributes of a =20node, and as far as I can see there is no way to extract an node =20attribute with WebDNA's XML functions.Best,Christer ************************************************************* Christer Olsson PO Box 9160 Phone +46 40 25 85 85 Ljusa Id=E9er AB SE-200 39 Malmo Fax +46 40 25 85 89 Kantyxegatan 5 Sweden http://www.ljusaideer.se30 mar 2010 kl. 19.45 skrev Tana Adams:> Hi,>> I'm back on parsing XML and have run into another problem. I'm> wondering if any of you could take a look at the feed below along with> the code I'm using to see if there's anything obviously wrong with it.> With the code below, I'm successfully extracting the media:category> label, media:description type, media:keywords and media:title type.> For some reason, however, I'm unable to extract the media:player url,> media:content url or media:thumbnail url. The fact that they're all> urls leads me to believe that's probably the issue but I can't seem to> figure out how to obtain the info.>> Here is the pared-down version of the feed:>> > http://gdata.youtube.com/feeds/api/videos/j82E082KJSw> term=3D'Volleyball'/>> Brazilian Volleyball Mix>> > scheme=3D'http://gdata.youtube.com/schemas/2007/=20> categories.cat'>People> =url=3D'http://www.youtube.com/v/j82E082KJSw?f=3Dvideos&app=3Dyoutube_g=data'> type=3D'application/x-shockwave-flash' medium=3D'video' =isDefault=3D'true'> expression=3D'full' duration=3D'228' yt:format=3D'5'/>> Brazil playing in world champs> 06> Volleyball, Brazil, Giba, Dante, Spikes=20> media:keywords>> =url=3D'http://www.youtube.com/watch?v=3Dj82E082KJSw&feature=3Dyoutube_=gdata'/=20> >> height=3D'90' width=3D'120' time=3D'00:01:54'/>> Brazilian Volleyball Mix> > >>> Here is my code:>> [xmlparse =var=3Dxml_var1&source=3D[url]http://gdata.youtube.com/feeds/api/videos/-/v=olleyball=20> [/url]][/xmlparse]> [xmlnodes ref=3Dxml_var1&path=3Dnamed:Feed/Entry(7)&name=3Dmedia&exact=3D=F]> [name] - [index]=3D[value]> [xmlnodes]> [name]=3D[value]> [/xmlnodes]> [/xmlnodes]>>> Thank you,>> Tana> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> old archives: http://dev.webdna.us/TalkListArchive/> Bug Reporting: =http://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D288
Christer Olsson
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
gateway application timeouts (1998)
contextual shownext (1998)
[Lookup] improvment [feature request] (2004)
HELP WITH DATES (1997)
2cd pair.. [math] and European Date format (2004)
Security (2002)
Country & Ship-to address & other fields ? (1997)
Limiting user access to .tmpl files (1997)
HELP! Only 1/2 of pricing.db loading!?! (1999)
Bug? (1997)
[Semi-OT] Eaaaaaasy OSX FTP (2003)
[WebDNA] WebDNA Roll Call (2014)
BW in a search (2007)
Country & Ship-to address & other fields ? (1997)
Re[2]: Shopping Cart Directory (2000)
I don't think my install worked (2003)
Exclude by date - multiple (1997)
process SSI (1998)
CC Payment Processors (2007)
Enhancement Request for WebCatalog-NT (1996)