XML & Server-side Generated XML

Does flash read xml from a local xml file and xml generated from a php script the same way?

Can I just switch xml.load(“myxml.xml”) to xml.load(“http://www.mydomain.com/page1.php?vars=vars”);

If so, great. If not, I would appreciate whatever help, links, info you can provide.

Thanks in advance!