else if (contentType.equalsIgnoreCase(XML_MIME_TYPE) || contentType.endsWith("+xml")) { //$NON-NLS-1$
result = new StructuredTextPartitionerForXML();
result.connect(structuredDocument);
}
else {
result = new StructuredTextPartitioner();
result.connect(structuredDocument);
}
return result;
}