Re: XMLNodes Error
This WebDNA talk-list message is from 2007
It keeps the original formatting.
numero = 69073
interpreted = N
texte = Clint, I don't see any error handling in Jesse's code.Have a look on the USPS docs to see what format errors arereturned 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 locatethe parent node "Package" when there might not be one.DonovanP.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]]-- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE EUCA Design Center <- Web Development (specializing in eCommerce),-> <- Desktop Publishing, Print Consulting, Labels -> <-Glass Products, off-hand Classes/studio rental-> PH:>(608) 835-2476 TALK:>http://artglass-forum.com WEB:> http://www.euca.us & http://www.egg.bz =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o-------------------------------------------------------------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:
Clint, I don't see any error handling in Jesse's code.Have a look on the USPS docs to see what format errors arereturned 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 locatethe parent node "Package" when there might not be one.DonovanP.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]]-- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE EUCA Design Center <- Web Development (specializing in eCommerce),-> <- Desktop Publishing, Print Consulting, Labels -> <-Glass Products, off-hand Classes/studio rental-> PH:>(608) 835-2476 TALK:>http://artglass-forum.com WEB:> http://www.euca.us & http://www.egg.bz =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o-------------------------------------------------------------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/
Donovan Brooke
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:
Getting Emailer to send mail (1997)
Cobalt RaQ (2000)
[include ...] behavior (1997)
format_to_days on NT (1997)
Time Remaining? (1998)
serial number generation (1997)
Updating product information (2002)
ftp ng (1999)
WebCat2: multiple currency support (1997)
blank page from template (1997)
Database Not Found Problem (2004)
WebCat2b13MacPlugIn - [shownext method=post] ??? (1997)
Custom WebCat Prefs ... (1997)
displaying 12 results 4 by 3 (2000)
Include vs. lookup-opps (1998)
Pull Down Search (2000)
textarea text truncated by browser (2000)
Bug Report, maybe (1997)
Country & Ship-to address & other fields ? (1997)
WebCat2 several catalogs? (1997)