|
-
Sep 6th, 2006, 03:56 PM
#1
Thread Starter
Hyperactive Member
[2.0] Not able to read the nodes in an xml file
I can't some how see nodes in my xmldocument.
Its very very bizarre and freaking me out. works fine on XP box and same code doesn't run on windows 2003 box. Is there any setting on IIS server that should be made? the form.aspx is in virtual directory..
Any ideas are greatly appreciated.
thanks
XmlDocument xxdoc = new XmlDocument();
xxdoc.Load(@"c:\web.config");
XmlNodeList collectionNodeList = xxdoc.SelectNodes(@"/configuration/appSettings");
foreach (XmlNode ff in collectionNodeList)
{
Console.WriteLine(ff.Name, ff.Value);
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|