Note that there are some explanatory texts on larger screens.

plurals
  1. POXML load in actionscript
    primarykey
    data
    text
    <p>I am trying the basic XML parsing code from the adobe documentation..</p> <p>I tried it with several RSS feeds I plan to use, many of large websites..</p> <p>one worked, the others returned status -10, status: -10 (An end-tag was encountered without a matching start-tag.)</p> <p>the thing is, these are big sites, there is no way all of their feeds are malformed...</p> <p>plus, I checked briefly the XML structure, and checked it with an XML syntax checker (Notepad++) and it came out correct..</p> <p>so why is flash treating these as malformed ? how can I solve it ?</p> <p>http:// rotter.net/rss/rotternews.xml</p> <p>this doesn't work, and other don't as well from other sites, some other links do work.</p> <p>I made some progress, I found that loading this rss url,</p> <p>via a browser gets me the right content, but when I try it in Orbit download manager, I only get six bytes! which are</p> <pre><code>&lt;/rss&gt; </code></pre> <p>maybe this is what flash sees as well ?</p> <p>what could be the reason for me getting only partial content ?</p> <p>please help...</p> <pre> var my_xml:XML = new XML(); my_xml.onLoad = function(success:Boolean) { if (success) { if (my_xml.status == 0) { trace("XML was loaded and parsed successfully"); } else { trace("XML was loaded successfully, but was unable to be parsed."); } var errorMessage:String; switch (my_xml.status) { case 0 : errorMessage = "No error; parse was completed successfully."; break; case -2 : errorMessage = "A CDATA section was not properly terminated."; break; case -3 : errorMessage = "The XML declaration was not properly terminated."; break; case -4 : errorMessage = "The DOCTYPE declaration was not properly terminated."; break; case -5 : errorMessage = "A comment was not properly terminated."; break; case -6 : errorMessage = "An XML element was malformed."; break; case -7 : errorMessage = "Out of memory."; break; case -8 : errorMessage = "An attribute value was not properly terminated."; break; case -9 : errorMessage = "A start-tag was not matched with an end-tag."; break; case -10 : errorMessage = "An end-tag was encountered without a matching start-tag."; break; default : errorMessage = "An unknown error has occurred."; break; } trace("status: "+my_xml.status+" ("+errorMessage+")"); } else { trace("Unable to load/parse XML. (status: "+my_xml.status+")"); } }; my_xml.ignoreWhite = true; my_xml.load("http://rss.walla.co.il/?w=/6/4002/0/@rss"); </pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload