3 Replies Latest reply: May 5, 2009 5:24 AM by Rob Dillon RSS

    largest xml file?

    kamckng Community Member

      What is the largest XML file that can be loaded into flash?

       

      I have a 14MB XML file that I'm trying to load into flash. It gets to the listener function that listens for the Event.COMPLETE event fine, but in there when I try to set e.target.data to an XML variable I get an error that says one of the tags doesnt have an ending. I know for a fact that it is a well-formed document. So I'm assuming it's cutting some of it off. Is there a size limit for xml files?

       

      Thanks!

      Kyle

        • 1. Re: largest xml file?
          Rob Dillon CommunityMVP

          Have you tried trace(e.target.data); to see how much of the xml file is being loaded? Are you testing for errors during the loading?

          • 2. Re: largest xml file?
            kamckng Community Member

            It seems to be tracing out the whole thing. I wasn't tracing before because I was trying to print it out to a TextArea instance but it never got there because of the error it threw. When I trace the data, it all traces out, but it still says it's malformed. I have run it through a validator. Is there any good way to find out which one is missing? I can't go through it line by line, there are over 200k lines!

             

            Kyle

            • 3. Re: largest xml file?
              Rob Dillon CommunityMVP

              If you've used a good xml validator and that says that the file is correctly formed, then the problem may be with a character that Flash doesn't like. The file is importing correctly, the failure is at the parsing of the imported content. I have seen problems with "gremlins" in the xml file. Do you have a text editor that can clean the file of invisible characters? Another possible problem is that there is a character that Flash doesn't like, curly quotes, percent sign, etc.