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

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 105127
interpreted = N
texte = Thanks SO much, guys -- just tried it out and it now works. Yes, it was the addition of the xmlnodeattributes that finally provided me with the info. I greatly appreciate all the help. Tana On Sat, Apr 3, 2010 at 2:22 PM, Christer Olsson wr= ote: >> [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= =3DF] >> [name] - [index]=3D[value] >> =A0 =A0 =A0 [xmlnodes] >> =A0 =A0 =A0 =A0 =A0 =A0[name]=3D[value] >> =A0 =A0 =A0 [/xmlnodes] >> [/xmlnodes] > > > Tana, > > can't believe I didn't see the [xmlnodeattributes] (thanks Grant). I don'= t > get a valid XML feed with your code, but if I fetch the feed 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=3D= F] > [name] - [index]=3D[value] > =A0 =A0 =A0 =A0[xmlnodes] > =A0 =A0 =A0 =A0 =A0 =A0 [name]=3D[value] Attributes: > [xmlnodeattributes][name]=3D[value][/xmlnodeattributes] > =A0 =A0 =A0 =A0[/xmlnodes] > [/xmlnodes] > > Best, > Christer > > =A0************************************************************* > =A0Christer Olsson =A0 PO Box 9160 =A0 =A0 =A0 =A0Phone +46 40 25 85 85 > =A0Ljusa Id=E9er AB =A0 =A0SE-200 39 Malmo =A0 =A0Fax +46 40 25 85 89 > =A0Kantyxegatan 5 =A0 =A0Sweden =A0 =A0 =A0 =A0 =A0 =A0 http://www.ljusai= deer.se > > > > 2 apr 2010 kl. 19.14 skrev Tana Adams: > >> Many thanks for the replies. =A0I did try the XMLNodeAttributes context >> several different ways without luck. =A0Looks like I'll just have to >> collect that particular info another way. >> >> Tana >> >> >> On Fri, Apr 2, 2010 at 6:23 AM, Grant Hulbert >> wrote: >>> >>> Try http://dev.webdna.us/ref/pages.html?context=3DXMLNodesAttributes.ht= ml >>> >>> 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 have t= o >>>> do >>>> some hacking of your own since the urls are attributes of a node, and = as >>>> far >>>> as I can see there is no way to extract an node attribute with 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 > > --------------------------------------------------------- > 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)
Thanks SO much, guys -- just tried it out and it now works. Yes, it was the addition of the xmlnodeattributes that finally provided me with the info. I greatly appreciate all the help. Tana On Sat, Apr 3, 2010 at 2:22 PM, Christer Olsson wr= ote: >> [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= =3DF] >> [name] - [index]=3D[value] >> =A0 =A0 =A0 [xmlnodes] >> =A0 =A0 =A0 =A0 =A0 =A0[name]=3D[value] >> =A0 =A0 =A0 [/xmlnodes] >> [/xmlnodes] > > > Tana, > > can't believe I didn't see the [xmlnodeattributes] (thanks Grant). I don'= t > get a valid XML feed with your code, but if I fetch the feed 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=3D= F] > [name] - [index]=3D[value] > =A0 =A0 =A0 =A0[xmlnodes] > =A0 =A0 =A0 =A0 =A0 =A0 [name]=3D[value] Attributes: > [xmlnodeattributes][name]=3D[value][/xmlnodeattributes] > =A0 =A0 =A0 =A0[/xmlnodes] > [/xmlnodes] > > Best, > Christer > > =A0************************************************************* > =A0Christer Olsson =A0 PO Box 9160 =A0 =A0 =A0 =A0Phone +46 40 25 85 85 > =A0Ljusa Id=E9er AB =A0 =A0SE-200 39 Malmo =A0 =A0Fax +46 40 25 85 89 > =A0Kantyxegatan 5 =A0 =A0Sweden =A0 =A0 =A0 =A0 =A0 =A0 http://www.ljusai= deer.se > > > > 2 apr 2010 kl. 19.14 skrev Tana Adams: > >> Many thanks for the replies. =A0I did try the XMLNodeAttributes context >> several different ways without luck. =A0Looks like I'll just have to >> collect that particular info another way. >> >> Tana >> >> >> On Fri, Apr 2, 2010 at 6:23 AM, Grant Hulbert >> wrote: >>> >>> Try http://dev.webdna.us/ref/pages.html?context=3DXMLNodesAttributes.ht= ml >>> >>> 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 have t= o >>>> do >>>> some hacking of your own since the urls are attributes of a node, and = as >>>> far >>>> as I can see there is no way to extract an node attribute with 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 > > --------------------------------------------------------- > 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 > 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:

Database Security (1998) File Format Validation (2005) Globals Problem and now can't close databases (2003) Linebreak as a delimiter in listwords? (2003) [taxrate] question (1997) Include a big block of text (1997) Anyone running CommuniGate (2001) RE: Answer: WebDelivery downloads alias, not original ? (1997) StoreBuilder/SiteBuilder (2005) OFF-TOPIC...list serve software for newsletter? (1998) Lookup & Form Variables (2000) Check Boxes (2000) WebCatalog NT beta 18 problem (1997) update on include (1997) [WriteFile] problems (1997) Banner system (2000) Add to Cart & List of Products (1997) [WebDNA] 6.2 Sorry WebDNA server not running (2015) [WebDNA] trouble with [url] encoding??? (2014) Re:Review comparison by PC Magazine: Open for On-line Business (1997)