use of com.helger.schematron.pure.model.PSTitle in project ph-schematron by phax.
the class DocumentationExamples method readModifyAndWrite.
public static boolean readModifyAndWrite(@Nonnull final File aSchematronFile) throws Exception {
final PSSchema aSchema = new PSReader(new FileSystemResource(aSchematronFile)).readSchema();
final PSTitle aTitle = new PSTitle();
aTitle.addText("Created by ph-schematron");
aSchema.setTitle(aTitle);
return MicroWriter.writeToFile(aSchema.getAsMicroElement(), aSchematronFile).isSuccess();
}
Aggregations