Re: XMLNodes Error
This WebDNA talk-list message is from 2007
It keeps the original formatting.
numero = 69074
interpreted = N
texte = Thanks Donovan. I'll give it a look.On 6/14/07 10:46 AM, "Donovan Brooke"
wrote:> Clint, I don't see any error handling in Jesse's code.> Have a look on the USPS docs to see what format errors are> returned as. If the XML error return is not in the form:> > > > > Then it appears the following:> > [xmlnodes ref=USPSres&path=named:RateV2Response/Package/]> > May throw the error.> > That is just a guess but I think you are trying to locate> the parent node "Package" when there might not be one.> > Donovan> > P.S.> Here is the way I check for errors (very basic):> [search db=admin/usps_services.db&neUSPS_IDdatarq=find_all]> [founditems]> > [xmlnode ref=xml_var1&path=indexed:1/[index]&var=xml_return][/xmlnode]> > [!] Hide the option if there is an error [/!]> [hideif [url][xmlnodes> ref=xml_return][content][/xmlnodes][/url]^[url]error[/url]]-------------------------------------------------------------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:
Thanks Donovan. I'll give it a look.On 6/14/07 10:46 AM, "Donovan Brooke" wrote:> Clint, I don't see any error handling in Jesse's code.> Have a look on the USPS docs to see what format errors are> returned as. If the XML error return is not in the form:> > > > > Then it appears the following:> > [xmlnodes ref=USPSres&path=named:RateV2Response/Package/]> > May throw the error.> > That is just a guess but I think you are trying to locate> the parent node "Package" when there might not be one.> > Donovan> > P.S.> Here is the way I check for errors (very basic):> [search db=admin/usps_services.db&neUSPS_IDdatarq=find_all]> [founditems]> > [xmlnode ref=xml_var1&path=indexed:1/[index]&var=xml_return][/xmlnode]> > [!] Hide the option if there is an error [/!]> [hideif [url][xmlnodes> ref=xml_return][content][/xmlnodes][/url]^[url]error[/url]]-------------------------------------------------------------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/
Clint Davis
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:
Using Eudora instead of Emailer, and cron facility (1998)
Forms (1998)
Help name our technology! (1997)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
Formatting a .txt file (1998)
Upgrading to 4.0 (2000)
can WC render sites out? (1997)
[WebDNA] How can I uninstall WebDNA on OS X Sierra? (2017)
converchars in sendmail context.... (2004)
2.0 Info (1997)
How to Display text in empty fields (1997)
Bad creator codes which cause access denied errormessage (1997)
shownext (2001)
[WebDNA] [Orderfile] problem (2009)
Multiple fields on 1 input (1997)
Nested tags count question (1997)
t or f (1997)
Dreamweaver MX (again) (2002)
Tax Moratorium Expiring (2001)
[date format] w/in sendmail (1997)