Darren, > Hey, has any noticed that the xml xtra parseURL() lingo > method fails to return an error with a malform xml file, > it always returns void, which is a success response. > > I have been using getNetText and parseString() instead and > this works fine...
I was about to respond to your submitted bug report (thanks for using the form!) but figured that posting here on list might be better now. :) The void returned by parseURL() should only be an indication that the command was issued successfully and not indicate whether the file is malformed, right? The idea is that parseURL() begins an asynchronous process of downloading and then parsing the file at the specified URL, thus the return value you're using (the void returned by parseURL()) is likely getting to you before any parsing has been done, therefore that return value is not in a position to indicate whether the XML is malformed or not. When using parseURL() are you also using doneParsing() to verify whether parsing is complete and then getError() to check if the XML is malformed or not? I believe that's the correct order of operations (unless you specify a handler to be called when parsing is done in which case you'd simply put a getError() call in that handler and skip checking doneParsing()). In the case of parseString() you are getting a return value that is based on the parsing task itself so that does indicate whether the XML is malformed or not, whereas with getURL() the return value is really indicating whether there were errors in calling parseURL() more than it is about the malformed, or not, state of the XML file. Sorry but I'm soon to scoot off to a meeting but I wanted to throw this out there as I really did have a draft email reply to your bug report submission handy, so I sent it along before running off. :) Cheers, Tom Higgins - Technical Product Manager Macromedia Director and the Shockwave Player http://www.markme.com/thiggins/ [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [email protected] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
