6 public static void Main (string [] args
)
8 if (args
.Length
== 0) {
9 Console
.WriteLine ("pass path-to-web.config.");
12 XmlDocument doc
= new XmlDocument ();
14 XmlElement el
= doc
.SelectSingleNode ("/configuration/system.web/httpHandlers") as XmlElement
;
15 XmlElement old
= el
.SelectSingleNode ("add[@path='*.svc']") as XmlElement
;
16 XmlNode up
= doc
.ReadNode (new XmlTextReader ("fixup-config2.xml"));
19 el
.InsertAfter (up
, null);
20 XmlTextWriter w
= new XmlTextWriter (args
[0], null);
21 w
.Formatting
= Formatting
.Indented
;