Skip to content

Instantly share code, notes, and snippets.

@djangofan
Created December 22, 2011 20:33
Show Gist options
  • Save djangofan/1511742 to your computer and use it in GitHub Desktop.
Save djangofan/1511742 to your computer and use it in GitHub Desktop.
@ECHO off
SETLOCAL ENABLEDELAYEDEXPANSION
SET XMLFILE=plugins.xml
SET XMLBASE=//Config/Plugin
xmlstarlet.exe sel -t^
-c ^"%XMLBASE%/Instance/Project[@name='myapp']/DEBUG^" --nl^
-c ^"%XMLBASE%/Instance/Project[@name='myapp']/Company^" --nl^
-c ^"%XMLBASE%/Instance/Project[@name='myapp']/SaveOffline^" --nl^
-c ^"%XMLBASE%/Instance/Project[@name='myapp']/Client^" --nl^
-c ^"%XMLBASE%/Instance/Project[@name='myapp']/GPSDiscoverPort^" --nl^
-c ^"%XMLBASE%/Instance/Project[@name='myapp']/GPSEnabled^" --nl^
-c ^"%XMLBASE%/Instance/Project[@name='myapp']/AgencyName^" --nl^
-n %XMLFILE%
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment