Simple XML questions

Well…simple but I’ve lost hours crawling the web to find a good way to use xml, without succeed…even the kirupa tutorial on xml dosn’t helps :’(

my xml file is like this:


<categorie>
  <fact id="1" cat="fig" fourn="ix" />
  <fact id="2" cat="ate" fourn="llix" />
...
/<categorie>

I got my xml file loaded in the var fileXML
From there, i try to access a line of the xml and modify it,
i’m trying to get the xml with the id=“1” like this :


var fileXMLList:XMLList  =  fileXML.fact.(@id  ==  1);
            trace(fileXMLList);

but it trace nothing…and even if it returned something, how should i tell to modify this particular node ?..