load Method takes path to xml file as argument:

softXMLLib.load("somefile.xml");

 

loadError property indicates if xml file is valid=0

if(softXMLLib.loadError!=0){
	alert("Invalid XML file!");
}
else{
	Make here manipulation with XML			
				
}