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 =20don't get a valid XML feed with your code, but if I fetch the feed =20manually 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][/=20xmlnodeattributes][/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.se2 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:
> [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 =20don't get a valid XML feed with your code, but if I fetch the feed =20manually 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][/=20xmlnodeattributes][/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.se2 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:
Alternating colors (1997)
Authenticate (1997)
WebCat2 several catalogs? (1997)
Rhapsody? (1997)
price totals (2003)
Help with Shipping Costs (1997)
Missing from Docs [folderName] (1997)
closedatabases simple question.. (2002)
[Off] Netscape Display Problem (1998)
problems with 2 tags (1997)
Bug? (1997)
[OT] Templates (For Sale) sites (2004)
Adding headers to email (1997)
[delete] problem (1997)
Multiple prices (1997)
setting taxable to true (1997)
Help name our technology! (1997)
email database file (2005)
[WebDNA] Major grep/convertchars linux issues when writing to db (2010)
WebCat2b15MacPlugIn - [authenticate] not [protect] (1997)