Hiya am a newbie so be gentle please.
I am trying to discover how to update a blooming attribute on an existing xml file????? and its driving me mental.
I have loaded the wee besom into php.
Am using simplexml.
I can read the xml and display the atrribute
. . . I can write a new xml file with the attribute
BUT what I would so dearly love to do is read the xml file and then change the attrib . . . . .and then update the XML.
Is this possible I am beginning to ask myself.
Now normaly I would store the data in mysql but am using flash which is using the xml for data so would like to adjust the xml content.
Heres a wee snippet of the XML
<calendar>
<once>
<date year="2009" month="5" day="13">
<event>I went wobbly</event>
</date>
<date year="2009" month="5" day="14">
<event>I started to cry</event>
</date>
<date year="2009" month="5" day="15">
<event>I went completely mental</event>
</date>
</once>
<</calendar>
So what I would like to do is access the date attrib "year" and then let the user in a form change it to another value.
PLEASE someone HELLLLPPPPPP