[WebDNA] Re: parsing xml

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 105099
interpreted = N
texte = Ok, I'm back to this project again...thanks for your input, Donovan. Unfortunately, I'm still not getting it. I've search the docs and the talk list. I guess I'm searching for the wrong thing because I simply can't find what I'm looking for. Tana On Thu, Mar 18, 2010 at 10:05 AM, Tana Adams wrote: > I'm a bit lost in attempting to parse xml feeds and am wondering if > someone can push me in the right direction. =A0I'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. =A0I've been through the docs and the talklist but am still > having trouble. =A0I'm starting with the example in the docs here: > > [xmlparse var=3Dxml_var1][include > file=3Dhttp://gdata.youtube.com/feeds/api/videos/-/volleyball][/xmlparse] > [xmlnodes ref=3Dxml_var1] > [name]=3D[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. =A0I 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: > > > > xmlns:media=3D'http://search.yahoo.com/mrss/' > xmlns:openSearch=3D'http://a9.com/-/spec/opensearchrss/1.0/' > xmlns:gd=3D'http://schemas.google.com/g/2005' > xmlns:gml=3D'http://www.opengis.net/gml' > xmlns:yt=3D'http://gdata.youtube.com/schemas/2007' > xmlns:georss=3D'http://www.georss.org/georss'> > > > > http://gdata.youtube.com/feeds/api/videos/zQdeJEPoog0 > > term=3D'http://gdata.youtube.com/schemas/2007#video'/> > > This is the article > > This is the description. > > type=3D'application/atom+xml' > href=3D'http://gdata.youtube.com/feeds/api/videos/zQdeJEPoog0/responses'/= > > > scheme=3D'http://gdata.youtube.com/schemas/2007/categories.cat'>News > > type=3D'application/x-shockwave-flash' medium=3D'video' isDefault=3D'true= ' > expression=3D'full' duration=3D'146' yt:format=3D'5'/> > > > > height=3D'90' width=3D'120' time=3D'00:01:13'/> > > > > 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)
Ok, I'm back to this project again...thanks for your input, Donovan. Unfortunately, I'm still not getting it. I've search the docs and the Talk List. I guess I'm searching for the wrong thing because I simply can't find what I'm looking for. Tana On Thu, Mar 18, 2010 at 10:05 AM, Tana Adams wrote: > I'm a bit lost in attempting to parse xml feeds and am wondering if > someone can push me in the right direction. =A0I'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. =A0I've been through the docs and the talklist but am still > having trouble. =A0I'm starting with the example in the docs here: > > [xmlparse var=3Dxml_var1][include > file=3Dhttp://gdata.youtube.com/feeds/api/videos/-/volleyball][/xmlparse] > [xmlnodes ref=3Dxml_var1] > [name]=3D[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. =A0I 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: > > > > xmlns:media=3D'http://search.yahoo.com/mrss/' > xmlns:openSearch=3D'http://a9.com/-/spec/opensearchrss/1.0/' > xmlns:gd=3D'http://schemas.google.com/g/2005' > xmlns:gml=3D'http://www.opengis.net/gml' > xmlns:yt=3D'http://gdata.youtube.com/schemas/2007' > xmlns:georss=3D'http://www.georss.org/georss'> > > > > http://gdata.youtube.com/feeds/api/videos/zQdeJEPoog0 > > term=3D'http://gdata.youtube.com/schemas/2007#video'/> > > This is the article > > This is the description. > > type=3D'application/atom+xml' > href=3D'http://gdata.youtube.com/feeds/api/videos/zQdeJEPoog0/responses'/= > > > scheme=3D'http://gdata.youtube.com/schemas/2007/categories.cat'>News > > type=3D'application/x-shockwave-flash' medium=3D'video' isDefault=3D'true= ' > expression=3D'full' duration=3D'146' yt:format=3D'5'/> > > > > height=3D'90' width=3D'120' time=3D'00:01:13'/> > > > > 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:

Time Tracking (2003) A multi-processor savvy WebCatalog? (1997) 2.0.1 new commands and contexts (1997) FRAMES and CART tags problem??!? (1999) SKU (1997) [WebDNA] [BULK] users.db password lost (2011) Search in 2 or more catalogs (1997) Online reference (1997) More DateMath problems (1997) b12 cannot limit records returned and more. (1997) Web Merchant Docs? (2002) Clean Code: Rules for inserting keyboard returns? (1997) More questions about serial number dishing (1997) Multiple prices (1997) New syntax feedback for 4.0 (2000) [WebDNA] A new popuated field to a DB with 700.000 records (2009) Close-to Comparison Code (1998) email [title] (1997) Big Databases (1997) NT or Mac (1998)