I am trying to load XML content in from a web page into flash.
The page is XML.aspx. It gets XML from a database based on
a value in the session and spits it out. If XML.aspx is viewed in a browser you see the dynamic XML content. However when I tried to use XML.load( “XML.aspx” ); no data was returned to Flash.
I tried XML.load on a normal xml file and it worked fine. Any ideas why I can’t make this work?
I attached the XML data that gets returned when you try to load the ProcessGroupXML.aspx page from a browser.
(note: you’ll need to delete the second line of the XML file to view it in a browser because it has a link to a dtd file that I didn’t include. Also I saved this attachment as a .txt file, but really it’s a .xml file)
Below is a code snippet from my ProcessGroupXML.aspx.cs file. This is a c# file that fills the ProcessGroupXML.aspx page. The Page_Load method is called as soon as you open the ProcessGroupXML.aspx page.
As I mentioned before this is working fine when I try to open it up in a browser, but when I try and link to it with XML.load from flash is when I run in to troubles.