Question on how to proceed - editing sdlxliff files when creating a project with SDK

Hello,

I wrote a console application in visual studio c# that creates a project based on few parameters.

It's mostly similar/taken from the example in the project automation sdk documentation.

I need, after copying to target language the sdlxliff files, to process them by emptying the non-locked segments.

What would be the best (lightweight, easier) way to implement this, considering I'm in the process of creating a new project?

Looking up in this community i found some ways like:

- create a batch task

- use filetypes

- use core api and create a processor for sdlxliff files (i'm not sure this exists anymore, since the post was very very old).

- manually edit the sdlxliff files as xml (I'd really avoid this, doesn't seems proper or safe to me in case of spec changes).

I hope to get a hint from the experienced developers here. Thank you very much!