Click here to Skip to main content
16,004,887 members
Home / Discussions / C#
   

C#

 
GeneralRe: reading XML Pin
Ennis Ray Lynch, Jr.13-Nov-08 8:36
Ennis Ray Lynch, Jr.13-Nov-08 8:36 
GeneralRe: reading XML Pin
Planker13-Nov-08 8:46
Planker13-Nov-08 8:46 
AnswerRe: reading XML Pin
Wendelius13-Nov-08 8:40
mentorWendelius13-Nov-08 8:40 
GeneralRe: reading XML Pin
Planker13-Nov-08 9:12
Planker13-Nov-08 9:12 
GeneralRe: reading XML Pin
Wendelius13-Nov-08 9:21
mentorWendelius13-Nov-08 9:21 
AnswerRe: reading XML Pin
netJP12L13-Nov-08 8:48
netJP12L13-Nov-08 8:48 
AnswerRe: reading XML Pin
sph3rex13-Nov-08 8:50
sph3rex13-Nov-08 8:50 
AnswerRe: reading XML [modified] Pin
Planker13-Nov-08 9:33
Planker13-Nov-08 9:33 
thanks, i just tried this and making some progress now

here is what i have to get the text of the whole node and the first child

XmlDocument xml = new XmlDocument();
xml.Load(str);
XmlNamespaceManager NSM = new XmlNamespaceManager(xml.NameTable);
NSM.AddNamespace("abcd", "http://www.microsoft.com/GroupPolicy/Settings");
XmlNode xmln = xml.SelectSingleNode("//abcd:Identifier", NSM);
if (xmln.HasChildNodes == true)
{
if (xmln.FirstChild.Name == "Identifier")
{
this.textBox2.Text = xmln.FirstChild.InnerText.ToString();
}
}
this.textBox1.Text = xmln.InnerText.ToString();

is there a better way to do this or should i get coding?

and thanks to everyone!!!

modified on Thursday, November 13, 2008 4:15 PM

GeneralRe: reading XML Pin
sph3rex13-Nov-08 10:45
sph3rex13-Nov-08 10:45 
GeneralRe: reading XML Pin
Planker14-Nov-08 6:43
Planker14-Nov-08 6:43 
AnswerRe: reading XML Pin
Planker14-Nov-08 10:12
Planker14-Nov-08 10:12 
Questionhelp with data reader Pin
Melanie Booysen13-Nov-08 7:47
Melanie Booysen13-Nov-08 7:47 
AnswerRe: help with data reader Pin
Ennis Ray Lynch, Jr.13-Nov-08 8:07
Ennis Ray Lynch, Jr.13-Nov-08 8:07 
AnswerRe: help with data reader Pin
Giorgi Dalakishvili13-Nov-08 8:17
mentorGiorgi Dalakishvili13-Nov-08 8:17 
AnswerRe: help with data reader Pin
PIEBALDconsult13-Nov-08 12:59
mvePIEBALDconsult13-Nov-08 12:59 
QuestionGet Website information from IIS Pin
Pr@teek B@h!13-Nov-08 7:44
Pr@teek B@h!13-Nov-08 7:44 
AnswerRe: Get Website information from IIS Pin
Pr@teek B@h!13-Nov-08 9:45
Pr@teek B@h!13-Nov-08 9:45 
QuestionSearching the inbetweens? Pin
jas0n2313-Nov-08 6:52
jas0n2313-Nov-08 6:52 
AnswerRe: Searching the inbetweens? Pin
Ennis Ray Lynch, Jr.13-Nov-08 7:29
Ennis Ray Lynch, Jr.13-Nov-08 7:29 
AnswerRe: Searching the inbetweens? Pin
sph3rex13-Nov-08 7:49
sph3rex13-Nov-08 7:49 
GeneralRe: Searching the inbetweens? Pin
jas0n2313-Nov-08 18:27
jas0n2313-Nov-08 18:27 
GeneralRe: Searching the inbetweens? Pin
sph3rex13-Nov-08 22:51
sph3rex13-Nov-08 22:51 
Questionreading bits from a file and manipulate them Pin
arturw8213-Nov-08 6:51
arturw8213-Nov-08 6:51 
AnswerRe: reading bits from a file and manipulate them Pin
Mbah Dhaim13-Nov-08 7:16
Mbah Dhaim13-Nov-08 7:16 
GeneralRe: reading bits from a file and manipulate them Pin
arturw8213-Nov-08 10:18
arturw8213-Nov-08 10:18 

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.