SVNRepository repo = getRepository();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
repo.getFile(filePath, -1, new SVNProperties(), baos);
Element rec = Xml.loadString(baos.toString(org.fao.geonet.Constants.ENCODING), false);
return (Element) rec.detach();
}
/**
* Creates a directory to hold metadata and property histories and add the metadata specified as the first version.
*