[WebDNA] Re: Parsing XML...again...
This WebDNA talk-list message is from 2010
It keeps the original formatting.
numero = 105117
interpreted = N
texte = Thought I'd submit my question one last time. Today I've been workinga bit with Javascript to extract the info I can't seem to obtain withWebDNA so I guess I can switch to that if necessary.Thanks,TanaOn Tue, Mar 30, 2010 at 9:45 AM, Tana Adams
wrote:> Hi,>> I'm back on parsing XML and have run into another problem. =A0I'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.> =A0With 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. =A0The 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>> > =A0 scheme=3D'http://gdata.youtube.com/schemas/2007/categories.cat'>People> =A0 url=3D'http://www.youtube.com/v/j82E082KJSw?f=3Dvideos&app=3Dyoutube_=gdata'> type=3D'application/x-shockwave-flash' medium=3D'video' isDefault=3D'true='> expression=3D'full' duration=3D'228' yt:format=3D'5'/>> =A0Brazil playing in world champs> 06> =A0Volleyball, Brazil, Giba, Dante, Spikes> =A0 url=3D'http://www.youtube.com/watch?v=3Dj82E082KJSw&feature=3Dyoutube=_gdata'/>> =A0 height=3D'90' width=3D'120' time=3D'00:01:54'/>> =A0Brazilian Volleyball Mix> =A0> >>> Here is my code:>> [xmlparse var=3Dxml_var1&source=3D[url]http://gdata.youtube.com/feeds/api=/videos/-/volleyball[/url]][/xmlparse]> [xmlnodes ref=3Dxml_var1&path=3Dnamed:Feed/Entry(7)&name=3Dmedia&exact=3D=F]> [name] - [index]=3D[value]> =A0 =A0 =A0 =A0[xmlnodes]> =A0 =A0 =A0 =A0 =A0 =A0 [name]=3D[value]> =A0 =A0 =A0 =A0[/xmlnodes]> [/xmlnodes]>>> Thank you,>> Tana>
Associated Messages, from the most recent to the oldest:
Thought I'd submit my question one last time. Today I've been workinga bit with Javascript to extract the info I can't seem to obtain withWebDNA so I guess I can switch to that if necessary.Thanks,TanaOn Tue, Mar 30, 2010 at 9:45 AM, Tana Adams wrote:> Hi,>> I'm back on parsing XML and have run into another problem. =A0I'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.> =A0With 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. =A0The 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>> > =A0 scheme=3D'http://gdata.youtube.com/schemas/2007/categories.cat'>People> =A0 url=3D'http://www.youtube.com/v/j82E082KJSw?f=3Dvideos&app=3Dyoutube_=gdata'> type=3D'application/x-shockwave-flash' medium=3D'video' isDefault=3D'true='> expression=3D'full' duration=3D'228' yt:format=3D'5'/>> =A0Brazil playing in world champs> 06> =A0Volleyball, Brazil, Giba, Dante, Spikes> =A0 url=3D'http://www.youtube.com/watch?v=3Dj82E082KJSw&feature=3Dyoutube=_gdata'/>> =A0 height=3D'90' width=3D'120' time=3D'00:01:54'/>> =A0Brazilian Volleyball Mix> =A0> >>> Here is my code:>> [xmlparse var=3Dxml_var1&source=3D[url]http://gdata.youtube.com/feeds/api=/videos/-/volleyball[/url]][/xmlparse]> [xmlnodes ref=3Dxml_var1&path=3Dnamed:Feed/Entry(7)&name=3Dmedia&exact=3D=F]> [name] - [index]=3D[value]> =A0 =A0 =A0 =A0[xmlnodes]> =A0 =A0 =A0 =A0 =A0 =A0 [name]=3D[value]> =A0 =A0 =A0 =A0[/xmlnodes]> [/xmlnodes]>>> Thank you,>> Tana>
Tana Adams
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:
[HIDEIF] inside [FOUNDITEM] (1997)
Server Freeze (1998)
Replace Statement (1997)
CyberCash problem in OS9/4.5 -> OSX/5.1 transition (2003)
Major Security Hole IIS NT (1998)
SQL Changes in 3.0.7? (2000)
WebCatalog can't find database (1997)
Generating Options for a Form. (1997)
problems with 2 tags shakur (1997)
html delivery (1997)
BBEdit/HTMLcomments/WebCat/[/FONT] (1999)
FW: Rollovers (1999)
range searching (1998)
numeric sorting (2000)
Help! WebCat2 bug (1997)
Locking up with WebCatalog... (1997)
[WebDNA] jumping on the linux train (2011)
WebMerchant 1.6 and https (1997)
RE: Displaying Location (1997)
Help name our technology! (1997)