If you want something that does not require python or the c compiler, and is synchronous, try node-xml-lite :
var parseXML = require('node-xml-lite').parseString; var webConfigDoc = parseXML(grunt.file.read('../web.config'));
The parsed document object may be a little complicated to work with, but the find * underline methods may help.
webXL source share