Click here to Skip to main content
15,898,938 members
Home / Discussions / C#
   

C#

 
GeneralRe: Visual Studio Properties Window Pin
m@u16-Dec-07 21:20
m@u16-Dec-07 21:20 
GeneralRe: Visual Studio Properties Window Pin
half-life16-Dec-07 22:01
half-life16-Dec-07 22:01 
Questionhow to read and write RFID Card Pin
dipak.dipak16-Dec-07 20:36
dipak.dipak16-Dec-07 20:36 
GeneralRe: how to read and write RFID Card Pin
Malcolm Smart16-Dec-07 21:57
Malcolm Smart16-Dec-07 21:57 
GeneralRe: how to read and write RFID Card Pin
Vasudevan Deepak Kumar16-Dec-07 22:11
Vasudevan Deepak Kumar16-Dec-07 22:11 
GeneralActive directory Structure Pin
Satish - Developer16-Dec-07 20:14
Satish - Developer16-Dec-07 20:14 
GeneralRe: Active directory Structure Pin
Vasudevan Deepak Kumar16-Dec-07 22:14
Vasudevan Deepak Kumar16-Dec-07 22:14 
QuestionHow to read the node from xml file in C#? Pin
nicolus16-Dec-07 19:20
nicolus16-Dec-07 19:20 
i have an xml file in the following format i want to read a node's text in the following manner in C# but it is not giving any thing why? and how to do that? Pls help me.

Here is my xml file ("withNsxml.xml")content:
<md_metadata xmlns="http://www.isotc211.org/2005/gmd">
<md_identification>fgdfgdfgjkfjdg</md_identification>
</md_metadata>

This is the code snippet i am using to read the text in "MD_Identification" node

XmlDocument XDom = new XmlDocument();
XDom.Load(@"F:\withNsxml.xml");
XmlNamespaceManager XMLNSMgr = new XmlNamespaceManager(XDom.NameTable);
XMLNSMgr.AddNamespace(string.Empty, "http://www.isotc211.org/2005/gmd");
XmlNodeList nodes1 = XDom.SelectNodes("md_metadata/md_identification", XMLNSMgr);
foreach (XmlNode node in nodes1)
{
MessageBox.Show(node.InnerText );
}



Thanks in advance.
AnswerRe: How to read the node from xml file in C#? Pin
Abhijit Jana16-Dec-07 20:07
professionalAbhijit Jana16-Dec-07 20:07 
GeneralRe: How to read the node from xml file in C#? Pin
nicolus16-Dec-07 20:21
nicolus16-Dec-07 20:21 
AnswerRe: How to read the node from xml file in C#? Pin
N a v a n e e t h16-Dec-07 20:10
N a v a n e e t h16-Dec-07 20:10 
GeneralRe: How to read the node from xml file in C#? Pin
nicolus16-Dec-07 21:32
nicolus16-Dec-07 21:32 
AnswerRe: How to read the node from xml file in C#? Pin
Malcolm Smart16-Dec-07 21:20
Malcolm Smart16-Dec-07 21:20 
QuestionHow we assing Transaction to DataAdaptor ? Pin
pekhaleyogesh16-Dec-07 18:12
pekhaleyogesh16-Dec-07 18:12 
GeneralNeed help to convert vb module into c# Pin
tasumisra16-Dec-07 17:36
tasumisra16-Dec-07 17:36 
GeneralRe: Need help to convert vb module into c# Pin
Yitzchok Dev16-Dec-07 18:16
Yitzchok Dev16-Dec-07 18:16 
GeneralRe: Need help to convert vb module into c# Pin
tasumisra16-Dec-07 18:38
tasumisra16-Dec-07 18:38 
GeneralRe: Need help to convert vb module into c# Pin
Yitzchok Dev16-Dec-07 18:40
Yitzchok Dev16-Dec-07 18:40 
GeneralRe: Need help to convert vb module into c# Pin
tasumisra16-Dec-07 18:51
tasumisra16-Dec-07 18:51 
GeneralRe: Need help to convert vb module into c# Pin
That's Aragon16-Dec-07 19:54
That's Aragon16-Dec-07 19:54 
GeneralRe: Need help to convert vb module into c# Pin
tasumisra16-Dec-07 20:02
tasumisra16-Dec-07 20:02 
GeneralBeginner array program, need help!!! Pin
cmh62316-Dec-07 17:17
cmh62316-Dec-07 17:17 
GeneralRe: Beginner array program, need help!!! Pin
CKnig16-Dec-07 18:20
CKnig16-Dec-07 18:20 
GeneralRe: Beginner array program, need help!!! Pin
Yitzchok Dev16-Dec-07 18:26
Yitzchok Dev16-Dec-07 18:26 
GeneralRe: Beginner array program, need help!!! Pin
cmh62316-Dec-07 18:38
cmh62316-Dec-07 18:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.