Flank any changes to your dataFileXml object using synchronized



synchronized (dataFileXml){
///make changes to dataFileXml
}


This will cause a thread to lock the object and force...