I have this code:
我有这个代码:
namespace ReadXMLfromFile
{
class Program
{
static void Main(string[] args)
{
string path = args[0];
Console.WriteLine("Looking in Directory: " + path);
Console.WriteLine("Files in Directory:");
string[] files = Directory.GetFiles(path, "*.xml");
foreach (string file in files)
{
Console.WriteLine(Path.GetFileName(file));
}
XDocument doc = XDocument.Load(???????);
var spec = doc.XPathSelectElement("project/triggers/hudson.triggers.TimerTrigger/spec").Value;
//Write to the console
Console.Write(spec);
....
namespace ReadXML