Re: [WebDNA] Parsing XML...again...

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 105126
interpreted = N
texte = > [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] Tana, can't believe I didn't see the [xmlnodeattributes] (thanks Grant). I =20 don't get a valid XML feed with your code, but if I fetch the feed =20 manually and parse it with code below I get the attributes as well: [xmlnodes ref=3Dxml_var1&path=3Dnamed:feed/entry(7)&name=3Dmedia&exact=3DF= ] [name] - [index]=3D[value] [xmlnodes]  [name]=3D[value] Attributes: = [xmlnodeattributes][name]=3D[value][/=20 xmlnodeattributes] [/xmlnodes] [/xmlnodes] 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.se 2 apr 2010 kl. 19.14 skrev Tana Adams: > Many thanks for the replies. I did try the XMLNodeAttributes context > several different ways without luck. Looks like I'll just have to > collect that particular info another way. > > Tana > > > On Fri, Apr 2, 2010 at 6:23 AM, Grant Hulbert =20 > wrote: >> Try = http://dev.webdna.us/ref/pages.html?context=3DXMLNodesAttributes.html >> >> On Apr 2, 2010, at 2:44 AM, Christer Olsson wrote: >> >>> I just hade the time to take a quick look and it seems like you =20 >>> have to do >>> some hacking of your own since the urls are attributes of a node, =20= >>> and as far >>> as I can see there is no way to extract an node attribute with =20 >>> WebDNA's XML >>> functions. >> >> --------------------------------------------------------- >> 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 >> > --------------------------------------------------------- > 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:

    
  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)
> [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] Tana, can't believe I didn't see the [xmlnodeattributes] (thanks Grant). I =20 don't get a valid XML feed with your code, but if I fetch the feed =20 manually and parse it with code below I get the attributes as well: [xmlnodes ref=3Dxml_var1&path=3Dnamed:feed/entry(7)&name=3Dmedia&exact=3DF= ] [name] - [index]=3D[value] [xmlnodes]  [name]=3D[value] Attributes: = [xmlnodeattributes][name]=3D[value][/=20 xmlnodeattributes] [/xmlnodes] [/xmlnodes] 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.se 2 apr 2010 kl. 19.14 skrev Tana Adams: > Many thanks for the replies. I did try the XMLNodeAttributes context > several different ways without luck. Looks like I'll just have to > collect that particular info another way. > > Tana > > > On Fri, Apr 2, 2010 at 6:23 AM, Grant Hulbert =20 > wrote: >> Try = http://dev.webdna.us/ref/pages.html?context=3DXMLNodesAttributes.html >> >> On Apr 2, 2010, at 2:44 AM, Christer Olsson wrote: >> >>> I just hade the time to take a quick look and it seems like you =20 >>> have to do >>> some hacking of your own since the urls are attributes of a node, =20= >>> and as far >>> as I can see there is no way to extract an node attribute with =20 >>> WebDNA's XML >>> functions. >> >> --------------------------------------------------------- >> 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 >> > --------------------------------------------------------- > 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:

Will webdna execute before a [redirect]? (1999) [returnraw] and form variables (1998) javascript for dynamic pulldowns? (1998) [Replace] (2000) ODBC (2000) Separate SSL Server (1997) ACGI processing for .html (1997) WebDelivery downloads alias, not original ? (1997) European Convention (2004) page redirect in webDNA (1997) remotely add + sign (1997) Search for dates greater than [date] (1997) Nesting format tags (1997) Errata: WCS Newbie question (1997) Help formatting search results w/ table (1997) WebDNA on OS X Tiger (2006) Append command (2000) WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) too many nested [xxx] (1997) Cookies (1999)