I need to know how to use xml.replace.
Here is my code:
myXML.replace("WHAT DO PUT HERE?", <p>testing</p>);
trace(myXML);
I need to change the Titles of choice1 and choice2 etc. How do I call them using xml.replace?
Here is the XML:
<SETTINGS>
<Settings Title="choice1">Home</Settings>
<Settings Title="choice2">Options</Settings>
</SETTINGS>
Finally, how would I save this new edited file and pass it thru a function I have?
The function below does not work. I can not pass the xml to the function and the stream.write is expecting a string, I think.
public function saveSettings(daFile:XML)
{
stream.open(someFile, FileMode.WRITE);
stream.writeUTFBytes(daFile);
trace("Settings SAVED!");
stream.close();
}