XPath bPath1 = new XPath("/bone");
XPath bPath2 = new XPath("/bone/btwo");
IMarker marker1 = resource.createMarker(IMarker.PROBLEM);
marker1.setAttribute(XPath.class.getName(), aPath2.getExternalForm());
IMarker marker2 = resource.createMarker(IMarker.PROBLEM);
marker2.setAttribute(XPath.class.getName(), aPath1.getExternalForm());
IMarker marker3 = resource.createMarker(IMarker.PROBLEM);
marker3.setAttribute(XPath.class.getName(), bPath2.getExternalForm());
IMarker marker4 = resource.createMarker(IMarker.MESSAGE);
marker4.setAttribute(XPath.class.getName(), bPath1.getExternalForm());