How to edit an xml attribute

Hi guys,

Can somebody tell me how to go about editing an xml attribute?

I can edit the main child like so…

my_xml.appendChild("Text goes here");

But I can’t figure out how to edit one of its attributes ( the start and end attributes below ).

<p start=“00:00:00” end=“99:99:99s”>Text goes here</p>;

Thanks