Re: XMLNodes Error
This WebDNA talk-list message is from 2007
It keeps the original formatting.
numero = 69070
interpreted = N
texte = Hi Clint!Thanks for sharing your code! Interesting to compare it to mine tosee the differences in how we tackled the thing... though it's beenso long that I can barely tell what I'm doing in my code. :)question, can you reproduce the error? I'm guessing not(as of yet). It appears to be a webdna error.Your use of URL's is good but I found a couple places thatI wonder about:[showif [lookup > db=admin/usps_xml.db&lookinfield=SHR_NAME&value=[desc]&returnfield=SHR_ACTIV > E¬found=N]=Y]is one.Other than that, I'm curious,What does this do: "?API=RateV2&XML=[url][xmlData][/url]"?DonovanClint Davis wrote:> I wrote functions to query UPS and USPS rates based on origin zip,> destination zip, and weight. Recently, I started seeing some XMLNodes errors> in my ErrorLog.txt file. For 99% of my customers, there's no problem, but> the other 1% is getting the XMLNodes error message.> > > > Here's the error:> An unknown error occurred:
> XMLNodes
> Container/Path Not Found:
> USPSres> > > > Here's the code:> [table name=shipOptions&fields=desc,price][/table]> > [function name=uspsRates]> [text]crlf=[unurl]%0D%0A[/unurl][/text]> > [text]uspsPounds=[middle startafter=&endbefore=.][weight][/middle][/text]> [text]uspsOunces=[format .0f][math][middle> startafter=.&endbefore=][weight][/middle]*0.16[/math][/format][/text]> > [text]xmlData=>
> > ALL> [lookup> db=admin/usps_xml.db&lookinfield=SHR_ID&value=USPSXML&returnfield=SHR_ZIP&no> tfound=]> [destinationzip]> [uspsPounds]> [uspsOunces]> REGULAR> FALSE> > [/text]> > [xmlparse var=USPSres]> [getchars start=1&trim=t][middle startafter=[url] version="1.0"?>[/url]&endbefore=HTTP/1.1]> [TCPConnect host=Production.ShippingAPIs.com&port=80]> [TCPSend]GET /ShippingAPI.dll?API=RateV2&XML=[url][xmlData][/url]> HTTP/1.0[crlf][!]> [/!]Host: Production.ShippingAPIs.com[crlf][!]> [/!]Content-type: text/html[crlf][!]> [/!]Content-length: [CountChars][xmlData][/CountChars][crlf][!]> [/!][crlf][!]> [/!][xmlData][crlf][!]> [/!][/TCPSend][!]> [/!][/TCPConnect][/middle][/getchars]> [/xmlparse]> > [text]markup=[lookup> db=admin/usps_xml.db&lookinfield=SHR_ID&value=USPSXML&returnfield=SHR_MARKUP> ¬found=0][/text]> > [xmlnodes ref=USPSres&path=named:RateV2Response/Package/]> [text]desc=[/text]> [text]price=[/text]> [showif [url][name][/url]=Postage]> [xmlnodes]> [showif [url][name][/url]=MailService]> [text]desc=[value][/text]> [/showif]> [showif [url][name][/url]=Rate]> [text]price=[value][/text]> [/showif]> [showif [lookup> db=admin/usps_xml.db&lookinfield=SHR_NAME&value=[desc]&returnfield=SHR_ACTIV> E¬found=N]=Y]> [append table=shipOptions]desc=USPS> [url][desc][/url]&price=[url][if> "[markup]"="0"][then][price][/then][else][format> .2f][math][price]+([price]*([markup]*0.01))[/math][/format][/else][/if][/url> ][/append]> [/showif]> [/xmlnodes]> [/showif]> [/xmlnodes]> > [/function]> > > [uspsRates destinationzip=[getcookie RealStoreZip]&weight=[getcookie> RealStoreWeight]]-- =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:
Hi Clint!Thanks for sharing your code! Interesting to compare it to mine tosee the differences in how we tackled the thing... though it's beenso long that I can barely tell what I'm doing in my code. :)question, can you reproduce the error? I'm guessing not(as of yet). It appears to be a webdna error.Your use of URL's is good but I found a couple places thatI wonder about:[showif [lookup > db=admin/usps_xml.db&lookinfield=SHR_NAME&value=[desc]&returnfield=SHR_ACTIV > E¬found=N]=Y]is one.Other than that, I'm curious,What does this do: "?API=RateV2&XML=[url][xmlData][/url]"?DonovanClint Davis wrote:> I wrote functions to query UPS and USPS rates based on origin zip,> destination zip, and weight. Recently, I started seeing some XMLNodes errors> in my ErrorLog.txt file. For 99% of my customers, there's no problem, but> the other 1% is getting the XMLNodes error message.> > > > Here's the error:> An unknown error occurred:
> XMLNodes
> Container/Path Not Found:
> USPSres> > > > Here's the code:> [table name=shipOptions&fields=desc,price][/table]> > [function name=uspsRates]> [text]crlf=[unurl]%0D%0A[/unurl][/text]> > [text]uspsPounds=[middle startafter=&endbefore=.][weight][/middle][/text]> [text]uspsOunces=[format .0f][math][middle> startafter=.&endbefore=][weight][/middle]*0.16[/math][/format][/text]> > [text]xmlData=> > > ALL> [lookup> db=admin/usps_xml.db&lookinfield=SHR_ID&value=USPSXML&returnfield=SHR_ZIP&no> tfound=]> [destinationzip]> [uspsPounds]> [uspsOunces]> REGULAR> FALSE> > [/text]> > [xmlparse var=USPSres]> [getchars start=1&trim=t][middle startafter=[url] version="1.0"?>[/url]&endbefore=HTTP/1.1]> [TCPConnect host=Production.ShippingAPIs.com&port=80]> [tcpsend]GET /ShippingAPI.dll?API=RateV2&XML=[url][xmlData][/url]> HTTP/1.0[crlf][!]> [/!]Host: Production.ShippingAPIs.com[crlf][!]> [/!]Content-type: text/html[crlf][!]> [/!]Content-length: [countchars][xmlData][/CountChars][crlf][!]> [/!][crlf][!]> [/!][xmlData][crlf][!]> [/!][/TCPSend][!]> [/!][/TCPConnect][/middle][/getchars]> [/xmlparse]> > [text]markup=[lookup> db=admin/usps_xml.db&lookinfield=SHR_ID&value=USPSXML&returnfield=SHR_MARKUP> ¬found=0][/text]> > [xmlnodes ref=USPSres&path=named:RateV2Response/Package/]> [text]desc=[/text]> [text]price=[/text]> [showif [url][name][/url]=Postage]> [xmlnodes]> [showif [url][name][/url]=MailService]> [text]desc=[value][/text]> [/showif]> [showif [url][name][/url]=Rate]> [text]price=[value][/text]> [/showif]> [showif [lookup> db=admin/usps_xml.db&lookinfield=SHR_NAME&value=[desc]&returnfield=SHR_ACTIV> E¬found=N]=Y]> [append table=shipOptions]desc=USPS> [url][desc][/url]&price=[url][if> "[markup]"="0"][then][price][/then][else][format> .2f][math][price]+([price]*([markup]*0.01))[/math][/format][/else][/if][/url> ][/append]> [/showif]> [/xmlnodes]> [/showif]> [/xmlnodes]> > [/function]> > > [uspsRates destinationzip=[getcookie RealStoreZip]&weight=[getcookie> RealStoreWeight]]-- =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:
FORMS: Returning a specific page (1997)
HELP - NONE STOP DIGESTS. Digest for 4/24/97) (1997)
Strange intermittent WebDNA problems (2008)
Thanks Grant (1997)
Emailer (1997)
[OT] Am I an Idiot? (2004)
Founditems Add/remove graphic display problem (1999)
California Tax Rates (1998)
Old Topic - [OT] - server speeds. (2002)
For those of you not on the WebCatalog Beta... (1997)
Root Folder problems cont. (1998)
how realize an advertiser ? (2005)
Email within tmpl ? (1997)
Not really WebCat - need HTML Grider (1997)
Two stores, one server (1998)
image magick (2003)
Size issues (2001)
Virtual Postcards (1998)
[WebDNA] php/mySQL version of WebDNA Speed Test? (2009)
splitting numbers in webDNA? (1997)