How can i do get file.id in xml data?

hi.

I used vault v2.5.
How can i do get file.id in xml data?

[ my source ]

  1. javascript - uploaded file list load

    addAttachFile.load(“/my/uploadedFile.xml”);

addAttachFile.attachEvent(“onBeforeFileRemove”, function(file){
alert(file.id); // other id - xml id is “1”, but maybe this value is temporary id
alert(file.name); // XML name
alert(file.size); // XML size
}

  1. uploadedFile.xml
<?xml version="1.0" encoding="UTF-8"?>

<files
<file id=“1” name=“test.txt” serverName=“test.txt” size=“10000” uploaded=“true” / >
<file id=“2” name=“test2.txt” serverName=“test2.txt” size=“10000” uploaded=“true” / >
<file id=“3” name=“test3…txt” serverName=“test3.txt” size=“10000” uploaded=“true” / >
</files