Php generates xml, flash reads problem

hi everyone,

i’d like to know if this is possible:

currently i have a file menu.xml which contains menu information 2 levels deep (main menu, sub menus). this i am reading into flash and generating the menu.

i would like to change this process:

  1. call a php script which creates the xml output and using headers sends that data back into flash. sending and loading vars is no problem.
  2. use flash to generate the menu

question:
when i call the php script can i save the xml output into a string (within flash) and then use the string to create my xml object –
thisXML.load(“submenus.xml”); — can i replace submenus.xml with the string?

i really do not want to edit the way the menu info is being read – what i mean is i want the data being passed to the menu generation in xml format and not rewrite it if i need to pass a string.

thanks for your help,

-chris