[WebDNA] parsing xml

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 105078
interpreted = N
texte = I'm a bit lost in attempting to parse xml feeds and am wondering if someone can push me in the right direction. I'm trying to pull videos from YouTube using Google's API (example of the feed below). Currently, I'm just trying to understand the usage of the xmlparse context. I've been through the docs and the talklist but am still having trouble. I'm starting with the example in the docs here: [xmlparse var=xml_var1][include file=http://gdata.youtube.com/feeds/api/videos/-/volleyball][/xmlparse] [xmlnodes ref=xml_var1] [name]=[value] [/xmlnodes] and am just receiving the following error message: Fatal Error at file line: 1 column: 1 message: Invalid document structure An unknown error occurred: XMLNodes Container/Path Not Found: xml_var1 It's not clear to me whether or not I'm supposed to replace the xml_var1 with a variable name from the feed. I realize I have a lot to learn about all of this but if someone could just give me a push in the right direction, I'd appreciate it. Thanks, Tana -------------------------------------------------------------------------- Here is just a part of the feed: http://gdata.youtube.com/feeds/api/videos/zQdeJEPoog0 This is the article This is the description. News Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Parsing XML...again... (Tana Adams 2010)
  2. Re: [WebDNA] Parsing XML...again... (Christer Olsson 2010)
  3. Re: [WebDNA] Parsing XML...again... (Tana Adams 2010)
  4. Re: [WebDNA] Parsing XML...again... (Grant Hulbert 2010)
  5. Re: [WebDNA] Parsing XML...again... (Christer Olsson 2010)
  6. [WebDNA] Parsing XML...again... (Tana Adams 2010)
  7. Re: [WebDNA] parsing xml (Donovan Brooke 2010)
  8. [WebDNA] parsing xml (Tana Adams 2010)
I'm a bit lost in attempting to parse xml feeds and am wondering if someone can push me in the right direction. I'm trying to pull videos from YouTube using Google's API (example of the feed below). Currently, I'm just trying to understand the usage of the xmlparse context. I've been through the docs and the talklist but am still having trouble. I'm starting with the example in the docs here: [xmlparse var=xml_var1][include file=http://gdata.youtube.com/feeds/api/videos/-/volleyball][/xmlparse] [xmlnodes ref=xml_var1] [name]=[value] [/xmlnodes] and am just receiving the following error message: Fatal Error at file line: 1 column: 1 message: Invalid document structure An unknown error occurred: XMLNodes Container/Path Not Found: xml_var1 It's not clear to me whether or not I'm supposed to replace the xml_var1 with a variable name from the feed. I realize I have a lot to learn about all of this but if someone could just give me a push in the right direction, I'd appreciate it. Thanks, Tana -------------------------------------------------------------------------- Here is just a part of the feed: http://gdata.youtube.com/feeds/api/videos/zQdeJEPoog0 This is the article This is the description. News 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:

Search in 2 or more catalogs (1997) multi-paragraph fields (1997) webcat method for waiting specific amount of time? (2000) Re:Emailer tracking (1997) show all problem (1997) How to verify email address (1997) graphics server, SSL, Netscape 4.0 (off topic) (1998) Showif Context combined with Search (1997) Problems with Price field (1997) [SearchString] usage (1997) [OT] (waaaay OT) further off topic than before (2004) Help! WebCat2 bug (1997) WC1.6 to WC2 date formatting -FIXED! (1997) Bug Report, maybe (1997) autosensing lanague selection (1997) AppleScript question (1997) Notepad problems (1998) [WebDNA] Donation... reading the header /url (2017) creates folders with AS (1997) Heads up, cookies *may* be outlawed in Europe (2001)