![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | NAnt / <XMLPOKE> and xpath question ... Hi, I have a simple exe.config issue where I'd like to swap out the config file with NAnt/XMLPOKE. I just can't figure out the correct xpath to get to the "file=" attribute. I want to swap in "US, UK, ..." depending on the target regions. Thanks, Craig =========================== my exe.config file: <?xml version="1.0" encoding="utf-8"?> <configuration> <appSettings file="Dev_custom.config"> .... .... </appSettings> </configuration> =========================== XMLPOKE tasks that don't resolve to the "file=" attribute correctly <xmlpoke file="${configFile}" xpath="/configuration/appSettings[@file='incorrectFileName']/ @value" value="US.config" /> <xmlpoke file="${configFile}" xpath="/configuration/appSettings[@file=@value]" value="US.config" /> <xmlpoke file="${configFile}" xpath="/configuration/appSettings[@file]/@value" value="US.config" /> |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| XPath Query in Event Viewer | Vista performance & maintenance | |||