Start by finding out what an SRX file is - Google and Wiki can help:
Segmentation Rules eXchange - Wikipedia, the free encyclopedia[
^]
That says it's an XML based file, but that it's difficult to process in some languages.
It also says there is an open source app that processes them:
Ratel[
^]
Since it's open source, you can grab a copy of the source code, and try to modify that to fit your needs, or at least work out exactly what you need to do in your app.
Do not expect this to be trivial, and do not expect anyone to go "here is the code, just use this" - this is a specialised file format which may be unsupported since 2011, so you probably won't find that many people using it!