Hi,
I want to check in some manner if an input document is compliant with the pipeline stage which elaborates it.
My pipeline stage coneverts EDI text files into XML files. If I push a binary file into the pipeline I expect to have any kind of error that will stop pipeline elaboration. Instead babeldoc elaborates the document creating an empty output file.
Is it possible to use some DTD check with babeledoc on pipeline stage, or is there other way to implement some integrity check?
Thanks
Hagop Chemedikian
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you want to check if your XML is valid against DTD or some external schema you can use Domify pipeline stage. It should throw error in case of binary files, too...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I want to check in some manner if an input document is compliant with the pipeline stage which elaborates it.
My pipeline stage coneverts EDI text files into XML files. If I push a binary file into the pipeline I expect to have any kind of error that will stop pipeline elaboration. Instead babeldoc elaborates the document creating an empty output file.
Is it possible to use some DTD check with babeledoc on pipeline stage, or is there other way to implement some integrity check?
Thanks
Hagop Chemedikian
If you want to check if your XML is valid against DTD or some external schema you can use Domify pipeline stage. It should throw error in case of binary files, too...