[mythtv-users] Error parsing config.xml?

Bill Meek keemllib at gmail.com
Fri May 11 18:10:09 UTC 2012


On 05/11/2012 11:57 AM, Michael T. Dean wrote:
...
> Probably best would be to use a language designed for parsing text,...

As an example (of using a tank to kill a mosquito) http://pastebin.ca/2147582 is
what I wrote. Save it as xml2src. Replace . ~mythtv/.mythtv/mysql.txt with:

   for V in $(xml2src); do export $V; done

Truth be told, I'm finding that I don't use most of my old SQL scripts and
using python bindings and Services API are of more interest.

But, this gives me time to learn then convert anything I actually use.

Cue the part where someone who knows what they're doing writes the
whole thing in one line.

-- 
Bill

(yes, I understand the risk of exporting passwords etc.)


More information about the mythtv-users mailing list