Randomthots wrote:

Maybe you could use some of the infamous *nix tools like grep and sed to pull stuff out. Not a trivial task in any case.

Oh, one more thing:

perl -pe 's/<.*?>/ /g;' content.xml > myfile.txt

That will extract most of all of the _data_ in your file.

Sure, you will lose all the formatting, and the like. But it's conforting to know that the absolute worst case scenario is not the end of the world.

If you want to be a little more complicated:

perl -pe 's/<.*?table-row>\n/; s/<.*?>/ /g;' content.xml > myfile.txt

That will preserve row breaks too.

:-)

Cheers,
Daniel.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to