Re: XMLNodes Error
This WebDNA talk-list message is from 2007
It keeps the original formatting.
numero = 69071
interpreted = N
texte = I'm not using Dreamweaver - I'm using a text editor called BBEdit. Since theproblem is intermittent across both UPS and USPS, I don't think it's acapitalization problem.On 6/14/07 8:29 AM, "Matthew A Perosi"
wrote:> I had terrible times with the UPS XML integration in the past.> Are you using Dreamweaver? For some reason my Dreamweaver 8 changes the> capitalization on the UPS XML code. The UPS system requires correct> capitalization of its XML node names. I also found UPS to be picky if> you have empty XML nodes.> > > > Clint 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]]-------------------------------------------------------------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:
I'm not using Dreamweaver - I'm using a text editor called BBEdit. Since theproblem is intermittent across both UPS and USPS, I don't think it's acapitalization problem.On 6/14/07 8:29 AM, "Matthew A Perosi" wrote:> I had terrible times with the UPS XML integration in the past.> Are you using Dreamweaver? For some reason my Dreamweaver 8 changes the> capitalization on the UPS XML code. The UPS system requires correct> capitalization of its XML node names. I also found UPS to be picky if> you have empty XML nodes.> > > > Clint 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]]-------------------------------------------------------------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:
Cant get my own subtotal (2001)
WebCat2b12--[searchstring] bug (1997)
WebCat name recognition (1998)
WebSTAR plugin update (2004)
Using webcat to roll apache logs (2002)
Email notification to one of multiple vendors ? (1997)
Plugin or CGI or both (1997)
Changes to [ReturnRaw] in 3.0 (1998)
easiest way to check for a non-alphanumeric character? (2000)
[ShowIf] if the varieable exists (1998)
emailer (1997)
Trouble with Showif and Search (1998)
Root Folder problems cont. (1998)
Include vs. lookup? (1998)
Tip: Debug: See what your [Search...] is doing (2003)
Cross OS Compatible HTML emailing (2003)
Text data with spaces in them... (1997)
Snake Bites (1997)
Setting up WebCatalog with Retail Pro data (1996)
&fieldsdir=ra truely random?? (2000)