You can read from a YAML file with -options_file_yaml file.yaml or via https://www.mcs.anl.gov/petsc/petsc-master/docs/manualpages/Sys/PetscOptionsInsertFileYAML.html
Would this work for you or do you really want XML? Alex Fleeter <luis.satur...@gmail.com> writes: > Hi: > > Does PETSc have or plan to enable reading arguments from an XML file? > Something like the Teuchos package in Trilinos. > > Thanks, > > AF