You can take a look at the Xio routines in $HCIROOT/tcl/lib/cloverleaf/configIO.tlib
However, a caveat. All of the Tcl routines in this library were meant to support Cloverleaf internals and, as such, are subject to change without notice.
What specifically are you trying to do? I have written several routine to parse Xlate, not always with Xio
I want to take the Xlate and put it into a spreadsheet format. I’m picturing columns as the operation, source, pre-proc, action (i.e. table name, math function, etc), post-proc, and destination. I could then use this spreadsheet or share it to somebody who isn’t cloverleaf savvy.
I did that in the original Cloverleaf Documentation I wrote except it was in HTML format. I don’t know if I can find the old code but as I recollect I was able to do it without Xio, mostly keyed lists and regexp.
The problem you have here is keeping up with changes. Most new releases will have a new key or something you have to deal with