addSchemaLocation(ms, anns);
marshal(obj, cls, genericType, enc, os, mt, ms);
}
private void addProcessingInstructions(Marshaller ms, Annotation[] anns) throws Exception {
XMLInstruction pi = AnnotationUtils.getAnnotation(anns, XMLInstruction.class);
if (pi != null) {
String value = pi.value();
int ind = value.indexOf("href='");
if (ind > 0) {
String relRef = value.substring(ind + 6, value.length() - 3);
String absRef = buildAbsoluteXMLResourceURI(relRef);
value = value.substring(0, ind + 6) + absRef + "'?>";