PHP to write content of XML?

I have an XML file that passes a list of files to be processed by a Java applet. I'm interested in randomizing the list of files. My thinking was to just use PHP within the XML document to write the lines of text in random order, but this isn't working. Can one use PHP within an XML document, much like is used within HTML?

I'm guessing the next option would be to write something in PHP that writes the XML doc before it's read, but if possible I want to put the PHP within the XML doc.

Anyone have any experience with this????
 
Back
Top