Re: XMLparse odd behaviour

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 57170
interpreted = N
texte = Thanks Scott. That does the trick! I'll post that note to the interactive docs. Regards, Tim > From: "Scott Anderson" > Reply-To: (WebDNA Talk) > Date: Mon, 29 Mar 2004 18:47:52 -0800 > To: (WebDNA Talk) > Subject: Re: XMLparse odd behaviour > > Hi Tim, > > You need to [URL] the 'source' parameter so that any '&' in the query portion > of the URL is not interpreted as a WebDNA parameter delimiter. > > Like this: > > [xmlparse > var=xml_var1&source=[url]http://xoap.weather.com/weather/local/ASXX0112?cc=*&d > ayf=2[/url]][/xmlparse] > > > -----Original Message----- > From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf Of > Tim Robinson > Sent: Monday, March 29, 2004 6:19 PM > To: WebDNA Talk > Subject: XMLparse odd behaviour > > > Hi all, > > If you enter this in your browser: > http://xoap.weather.com/weather/local/ASXX0112?cc=*&dayf=2 > > it shows four primary nodes: head, loc, cc, and dayf. But when I use the > WebDNA code below it only shows three. > > [xmlparse > var=xml_var1&source=http://xoap.weather.com/weather/local/ASXX0112?cc=*&dayf > =2][/xmlparse] > > [xmlnodes ref=xml_var1&path=named:weather] > [index], [name], [value]
> [/xmlnodes] > > Scott, is there a limit that you know of? > > If I change round the cc and dayf variables, then it shows dayf but not cc. > So I have a workaround of using two [xmlparse] contexts to source all the > data. It does it OK, but considering it's in a loop of multiple records, it > would be better with only one. > > Thanks, > Tim > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: XMLparse odd behaviour ( Tim Robinson 2004)
  2. Re: XMLparse odd behaviour ( "Scott Anderson" 2004)
  3. XMLparse odd behaviour ( Tim Robinson 2004)
Thanks Scott. That does the trick! I'll post that note to the interactive docs. Regards, Tim > From: "Scott Anderson" > Reply-To: (WebDNA Talk) > Date: Mon, 29 Mar 2004 18:47:52 -0800 > To: (WebDNA Talk) > Subject: Re: XMLparse odd behaviour > > Hi Tim, > > You need to [url] the 'source' parameter so that any '&' in the query portion > of the URL is not interpreted as a WebDNA parameter delimiter. > > Like this: > > [xmlparse > var=xml_var1&source=[url]http://xoap.weather.com/weather/local/ASXX0112?cc=*&d > ayf=2[/url]][/xmlparse] > > > -----Original Message----- > From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf Of > Tim Robinson > Sent: Monday, March 29, 2004 6:19 PM > To: WebDNA Talk > Subject: XMLparse odd behaviour > > > Hi all, > > If you enter this in your browser: > http://xoap.weather.com/weather/local/ASXX0112?cc=*&dayf=2 > > it shows four primary nodes: head, loc, cc, and dayf. But when I use the > WebDNA code below it only shows three. > > [xmlparse > var=xml_var1&source=http://xoap.weather.com/weather/local/ASXX0112?cc=*&dayf > =2][/xmlparse] > > [xmlnodes ref=xml_var1&path=named:weather] > [index], [name], [value]
> [/xmlnodes] > > Scott, is there a limit that you know of? > > If I change round the cc and dayf variables, then it shows dayf but not cc. > So I have a workaround of using two [xmlparse] contexts to source all the > data. It does it OK, but considering it's in a loop of multiple records, it > would be better with only one. > > Thanks, > Tim > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Tim Robinson

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:

Emailer problem with WC 2.1, NT, WebSite 2.1 (1998) More Applescript (1997) [WC 2.1.30] Stack overflow. (2000) code below an [authenticate] gets evaluated? (2000) [input] .... [/input] usage (2005) [text] variable assignment within [search] context (2000) Charting records by state (2000) Setting up the server (1997) All choices on IE different than Netscape (1997) what's wrong with this picture (2006) form data submission gets truncated (1997) Realtor Search (2000) Multiple Ad databases? (1997) Country & Ship-to address & other fields ? (1997) math problems (2000) [ot] What'd you all get me for my birthday? ;) (2003) [WebDNA] mod_WebDNA_apache2.2.so: mach-0, but wrong architecture (2010) Problems with [Applescript] (1997) Re:my First Ship table (1998) Generating unique SKU from [cart] - FIXED! (1997)