Hi,
With the install, when you do a full install, of logparser using the default install directory, it creates a directory C:\Program Files\Log Parser 2.2\Samples\XML
In this directory you will find a readme document, this does exactly what you are asking for.
When in doubt, refer to the logparser.chm help file for explanations, syntax and examples.
Good luck.
Cheers, Dave