Friday, May 11, 2012

XPATH with namespace

In order to execute XPATH on XML file with namespace, I used following syntax while using nant's xmlpoke command

<xmlpoke file="myfile.xml" xpath="/x:Project/x:PropertyGroup/x:ApplicationVersion" value="1234" >
<namespace prefix="x" uri="" />

Thursday, May 10, 2012

Display batch file output on console and write to file simultaneously

In order to see output of DOS Batch file on console as well as log to file simultaneously, I used following syntax

executeme.bat > C:\log.txt && type C:\log.txt