Reading and writing xml

I’ve been searching all morning for some samples on how to read and write xml files.
Here’s what I have so far.

My XML File called Call2Action.xml
<?xml version=“1.0” encoding=“utf-8”?>
<Call2Action version=“1.0” creationDate=“2009-05-06”>
<ProceraFixedImplantBridge>
<Yes>5</Yes>
<No>2</No>
</ProceraFixedImplantBridge>
<RetainingFunctionality>
<Yes>2</Yes>
<No>7</No>
</RetainingFunctionality>
</Call2Action>

import flash.events.*;
import flash.xml.*;
import flash.net.URLLoader;
import flash.net.URLRequest;

var xmlLoader:URLLoader = new URLLoader();
xmlLoader.load(new URLRequest("XML/Call2Action.xml"));
xmlLoader.addEventListener(Event.COMPLETE , loadXML);
var xmlData:XML = new XML();
var idx:int = 0;

function loadXML(e:Event):void {
    xmlData = new XML(e.target.data);
    trace("====>" + xmlData);
    for each (var idx:XML in xmlData) {
        trace("====>Yes=" + String(xmlData[idx].Yes));
        trace("====>No=" + String(xmlData[idx].No));
        
    }
}

‘String(xmlData[idx].Yes’ is where I’m having a problem, can’t figure out the syntax for declaring the element I want to read, plus I want to read the elements inside let’s say <ProceraFixedImplantBridge>. I need to add that to the code.

I want to increment the counter for yes or no, and write the file back.

Any help appreciated - AS3