The same saved parser used with "daffodil parse -P ..." can be used for
"daffodil unparse -P ...", so your first command should work.
The "no such file or directory" error means Daffodil couldn't find the
"my_saved_parser" file. I'd double check that the saved parser wasn't
accidentally deleted/moved or that there isn't a typo in the file name.
On 2024-03-12 03:35 PM, Larry Barber wrote:
I saved my parser and, as expected, saw an improvement in processing time,
however, when I try to unparse using the saved parser I get the message:
$ daffodil unparse -P my_saved_parser -o unparsed_infoset infoset.xml
[error] my_saved_parser (No such file or directory)
I figured that, maybe, I needed to created another saved parser using the
unparse command to use with the unparsed option, but it seems that Daffodil is
not looking for the <file> parameter with the -soption on unparse:
$ daffodil unparse -s test.dfdl.xsd my_saved_unparser
[error] my_saved_unparser (No such file or directory)
Anyone have some insight into what the problem might be?