* Delete the latest check in
*
* @throws Exception if an error occurs
*/
public void deleteFirstCheckIn() throws Exception {
XPointerFactory xpf = new XPointerFactory();
Node root = document.getDocumentElement();
Vector firstCheckIn = xpf.select(root, "xpointer(/XPSRevisionControl/CheckIn[1])");
root.removeChild((Node) firstCheckIn.elementAt(0));
root.removeChild(root.getFirstChild()); // remove EOL (end of line)
setDirty();
}