Proposal for Documentation Wiki (WAS: Re: Witango-Talk: url tag)

2010-12-09 Thread Mikal Anderson


  
  
Given the excellent info & suggestions on the list perhaps a
Witango documentation wiki would be an efficient & useful tool--
something akin to the PHP wiki.  

This approach if done right could take some of the pressure off
Robert so he can concentrate on bugs & features and in addition
would raise the profile of Witango on the Net.

Mikal Anderson

On 12/9/2010 07:46, Robert Shubert wrote:

  
  
  
  
  
  
Ted,
 
It must be big enough. One thing you can do is
execute your @URL
with MAXRESULTSIZE=1000 (10 meg should be big enough)
 
And then do: <@VARINFO method$vxml size>
which will return
the number of bytes that you received. Then I would probably
double that number
for the final value to use in maxresultsize.
 
Additionally, you can do this:
 
Let’s say that you set maxresultsize to 128000 as
you suggest.
Immediately after the @URL you can put an IF action that
will compare “128000”
and <@VARINFO vxml size>. If they are equal then you
filled the buffer
and likely do not have all the information. Now you can
error gracefully and
call this problem to your attention. You could even build a
WHILE loop that
dynamically increased maxresultsize until it was big enough,
but that’s
probably a little more than you need.
 
Robert
 
  


  



To unsubscribe from this list, please send an email to lists...@witango.com with "unsubscribe witango-talk" in the body.



RE: Witango-Talk: url tag

2010-12-09 Thread Robert Shubert
Ted,



It must be big enough. One thing you can do is execute your @URL with 
MAXRESULTSIZE=1000 (10 meg should be big enough)



And then do: <@VARINFO method$vxml size> which will return the number of bytes 
that you received. Then I would probably double that number for the final value 
to use in maxresultsize.



Additionally, you can do this:



Let’s say that you set maxresultsize to 128000 as you suggest. Immediately 
after the @URL you can put an IF action that will compare “128000” and 
<@VARINFO vxml size>. If they are equal then you filled the buffer and likely 
do not have all the information. Now you can error gracefully and call this 
problem to your attention. You could even build a WHILE loop that dynamically 
increased maxresultsize until it was big enough, but that’s probably a little 
more than you need.



Robert



From: Ted Wolfley [mailto:t...@ogdengroup.com]
Sent: Thursday, December 09, 2010 10:41 AM
To: Witango-Talk@witango.com
Subject: RE: Witango-Talk: url tag



What would be a safe number? Double it? [MAXRESULTSIZE=128000]







Ted Wolfley
Lead Internet and Database Programmer
The Ogden Group of Rochester
phone: (585) 321 1060 x23
fax: (585) 321 0043



  www.ogdengroup.com

From: Ben Johansen [mailto:b...@webspinr.com]
Sent: Thursday, December 09, 2010 8:58 AM
To: Witango-Talk@witango.com
Subject: Re: Witango-Talk: url tag



you probably need to set [MAXRESULTSIZE=size]



default value for this attribute is 64K,



see docs for @URL



On Dec 9, 2010, at 5:35 AM, Ted Wolfley wrote:



Hi,



I am trying to use the url tag to put a rss feed into variable, then parse the 
variable with dom tag to extract the elements.

 <@ASSIGN NAME="vxml" VALUE='<@URL 
LOCATION="http://feeds.feedburner.com/mnt/healthnews?format=xml";>' 
scope="method">

<@ASSIGN NAME="myDom" SCOPE="application" VALUE='<@DOM VALUE="<@VAR vxml 
SCOPE=Method>">'>

 The error I get is:


An error occurred while parsing the XML.
The input ended before all started tags were ended. Last tag started was 
'description'

 I have used the same code with other websites successfully.

 Seems like there a truncation occurring.  Is there a size limit for the 
@assign, the @url  or the @dom tag?

 Using witango 6 (free version) on windows xp with apache.





Ted Wolfley
Lead Internet and Database Programmer
The Ogden Group of Rochester
phone: (585) 321 1060 x23
fax: (585) 321 0043
  t...@ogdengroup.com

  www.ogdengroup.com



  _

To unsubscribe from this list, please send an email to lists...@witango.com 
with "unsubscribe witango-talk" in the body.



Ben Johansen

http://www.webspinr.com

b...@webspinr.com

Phone: 360-597-3372

Mobile: 360-600-7775









  _

To unsubscribe from this list, please send an email to lists...@witango.com 
with "unsubscribe witango-talk" in the body.



  _

To unsubscribe from this list, please send an email to lists...@witango.com 
with "unsubscribe witango-talk" in the body.





To unsubscribe from this list, please send an email to lists...@witango.com 
with "unsubscribe witango-talk" in the body.


RE: Witango-Talk: url tag

2010-12-09 Thread Ted Wolfley
What would be a safe number? Double it? [MAXRESULTSIZE=128000]







Ted Wolfley
Lead Internet and Database Programmer
The Ogden Group of Rochester
phone: (585) 321 1060 x23
fax: (585) 321 0043
t...@ogdengroup.com 

www.ogdengroup.com 

From: Ben Johansen [mailto:b...@webspinr.com]
Sent: Thursday, December 09, 2010 8:58 AM
To: Witango-Talk@witango.com
Subject: Re: Witango-Talk: url tag



you probably need to set [MAXRESULTSIZE=size]



default value for this attribute is 64K,



see docs for @URL



On Dec 9, 2010, at 5:35 AM, Ted Wolfley wrote:





Hi,



I am trying to use the url tag to put a rss feed into variable, then parse the 
variable with dom tag to extract the elements.

 <@ASSIGN NAME="vxml" VALUE='<@URL 
LOCATION="http://feeds.feedburner.com/mnt/healthnews?format=xml";>' 
scope="method">

<@ASSIGN NAME="myDom" SCOPE="application" VALUE='<@DOM VALUE="<@VAR vxml 
SCOPE=Method>">'>

 The error I get is:


An error occurred while parsing the XML.
The input ended before all started tags were ended. Last tag started was 
'description'

 I have used the same code with other websites successfully.

 Seems like there a truncation occurring.  Is there a size limit for the 
@assign, the @url  or the @dom tag?

 Using witango 6 (free version) on windows xp with apache.





Ted Wolfley
Lead Internet and Database Programmer
The Ogden Group of Rochester
phone: (585) 321 1060 x23
fax: (585) 321 0043
t...@ogdengroup.com 

www.ogdengroup.com 





To unsubscribe from this list, please send an email to lists...@witango.com 
with "unsubscribe witango-talk" in the body.



Ben Johansen

http://www.webspinr.com

b...@webspinr.com

Phone: 360-597-3372

Mobile: 360-600-7775











To unsubscribe from this list, please send an email to lists...@witango.com 
with "unsubscribe witango-talk" in the body.




To unsubscribe from this list, please send an email to lists...@witango.com 
with "unsubscribe witango-talk" in the body.


Re: Witango-Talk: url tag

2010-12-09 Thread Ben Johansen
you probably need to set [MAXRESULTSIZE=size]

default value for this attribute is 64K,

see docs for @URL

On Dec 9, 2010, at 5:35 AM, Ted Wolfley wrote:

> Hi,
>
> I am trying to use the url tag to put a rss feed into variable, then parse 
> the variable with dom tag to extract the elements.
>  <@ASSIGN NAME="vxml" VALUE='<@URL 
> LOCATION="http://feeds.feedburner.com/mnt/healthnews?format=xml";>' 
> scope="method">
> <@ASSIGN NAME="myDom" SCOPE="application" VALUE='<@DOM VALUE="<@VAR vxml 
> SCOPE=Method>">'>
>  The error I get is:
>
> An error occurred while parsing the XML.
> The input ended before all started tags were ended. Last tag started was 
> 'description'
>  I have used the same code with other websites successfully.
>  Seems like there a truncation occurring.  Is there a size limit for the 
> @assign, the @url  or the @dom tag?
>  Using witango 6 (free version) on windows xp with apache.
>
>
> Ted Wolfley
> Lead Internet and Database Programmer
> The Ogden Group of Rochester
> phone: (585) 321 1060 x23
> fax: (585) 321 0043
> t...@ogdengroup.com
> www.ogdengroup.com
>
> To unsubscribe from this list, please send an email to lists...@witango.com 
> with "unsubscribe witango-talk" in the body.

Ben Johansen
http://www.webspinr.com
b...@webspinr.com
Phone: 360-597-3372
Mobile: 360-600-7775







To unsubscribe from this list, please send an email to lists...@witango.com 
with "unsubscribe witango-talk" in the body.


Witango-Talk: url tag

2010-12-09 Thread Ted Wolfley
Hi,



I am trying to use the url tag to put a rss feed into variable, then
parse the variable with dom tag to extract the elements.

 <@ASSIGN NAME="vxml" VALUE='<@URL
LOCATION="http://feeds.feedburner.com/mnt/healthnews?format=xml";>'
scope="method">

<@ASSIGN NAME="myDom" SCOPE="application" VALUE='<@DOM VALUE="<@VAR vxml
SCOPE=Method>">'>

 The error I get is:


An error occurred while parsing the XML.
The input ended before all started tags were ended. Last tag started was
'description'

 I have used the same code with other websites successfully.

 Seems like there a truncation occurring.  Is there a size limit for the
@assign, the @url  or the @dom tag?

 Using witango 6 (free version) on windows xp with apache.





Ted Wolfley
Lead Internet and Database Programmer
The Ogden Group of Rochester
phone: (585) 321 1060 x23
fax: (585) 321 0043
t...@ogdengroup.com 

www.ogdengroup.com 





To unsubscribe from this list, please send an email to lists...@witango.com 
with "unsubscribe witango-talk" in the body.