But lets say there is a error in the record. Is there a way to skip that record and process the next instead of the whole thing crashing?
Main Topics
Browse All TopicsI am using Flex Builder 3.0 and i keep getting XML issues when loading XML data using mx:HTTPService. The XML is formated properly because I have tested it in Internet Explorer. Is there a method where I can use in ActionScript so that if there is a Invalid formatted record it doesn't stop loading the data but skips over that XML record?
I get the following error code
Error #1096: XML parser failure
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
to answer your question...
">> Is there a method where I can use in ActionScript so that if there is a Invalid formatted record
>> it doesn't stop loading the data but skips over that XML record?"
no... your XML has to be valid... even using a try catch in actionscript is not the answer, because the data has to be well formed BEFORE it gets into the programming.
I would recommend restricting who can update the XML, AFTER you make sure it is completely validated and accessible to AS 3 code.
rp / ZA
Business Accounts
Answer for Membership
by: lexxwernPosted on 2009-04-18 at 23:30:14ID: 24178069
>> Is there a method where I can use in ActionScript so that if there is a Invalid formatted record
>> it doesn't stop loading the data but skips over that XML record?
Probably yeah. You need to setup a fault handler for the HTTPService or use Try Catch for error handling.