Re: XMLNodes Error
This WebDNA talk-list message is from 2008
It keeps the original formatting.
numero = 69653
interpreted = N
texte = Actually, this is broken again! This is killing me!Here's the error I'm getting:Fatal Error at fileline: 5column: 1message: Invalid document structureAn unknown error occurred:XMLNodesContainer/Path Not Found:UPSresOn 12/21/07 2:16 PM, "Clint Davis"
wrote:> I finally figured this out. I was creating a [text] variable named xmlData> containing the XML information. I renamed it to uspsData, and it works!> > Weird and stupid!> > > 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:
Actually, this is broken again! This is killing me!Here's the error I'm getting:Fatal Error at fileline: 5column: 1message: Invalid document structureAn unknown error occurred:XMLNodesContainer/Path Not Found:UPSresOn 12/21/07 2:16 PM, "Clint Davis" wrote:> I finally figured this out. I was creating a [text] variable named xmlData> containing the XML information. I renamed it to uspsData, and it works!> > Weird and stupid!> > > 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:
Quitting WebMerchant ? (1997)
WebCat2b13MacPlugIn - more [date] problems (1997)
WebCatalog 2.1b3 - Plugin or cgi ? (1997)
Sizes/Colors Options (2006)
[ShowNext] feature in 2.0 (1997)
[ot] G5 Desktop as Server (2004)
Setting up shop (1997)
Database Not Found Problem (2004)
comparison to Lasso 6 or 7 (2004)
Emailer setup (1997)
problems with 2 tags shakur (1997)
RequiredFields template (1997)
choice of images (2000)
syntax question, not in online refernce (1997)
Creating main- and sub-category search (1997)
Resume Catalog ? (1997)
Users.db [encrypt seed=????] (1998)
Weird Math (2000)
WebCatalog 4.0 has been released! (2000)
Bug Report, maybe (1997)