[CentOS] XML parsing in shell script

Fri Mar 19 23:49:52 UTC 2021
H <agents at meddatainc.com>

On 03/18/2021 08:18 PM, H wrote:
> On 03/18/2021 05:53 PM, Paul Heinlein wrote:
>> On Thu, 18 Mar 2021, H wrote:
>>
>>> I just checked and I cannot see that the organization publishing these data files offer any XSLT stylesheet. IOW, I am, perhaps incorrectly, assuming that the publisher of the data would be one with said stylesheet. (Although perhaps that is something an end-user could put together as well??)
>> Some high-profile XML schemata (e.g., DocBook) have published stylesheets, but mostly I've written my own. I have a very trivial example in a blog post from several years ago:
>>
>>   https://www.madboa.com/blog/2014/09/10/strip-rss/
>>
>> (My site is completely non-commercial. I gain nothing by you visiting it -- or ignoring it.)
>>
> I looked at your link above and the the one in your previous e-mail - looks very promising!
>
> I will take a look at creating a XSLT stylesheet over the weekend and try creating a CSV-file in the desired format.
>
> Thank you!
>
I created a XSLT stylesheet for the data file I tried this on and it worked beautifully. I think the extra time spent designing a stylesheet is time well spent for any future changes to the data format.

Thank you!