I have two files, one is j.json and the other is x.xml, I want to fetch/query some data from both files. Is it possible to do this using regex? currently, I am using jq for querying data from JSON file. I was planning to use regex for Querying XML data,but then this above doubt came across my mind. It would be super easier for me if i use same library for both json and XML.
PS- i don't want to transform files, json-to-xml or vice versa.
Thank you.