Click here to Skip to main content
15,911,142 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# XNA & and the dreaded Global Variables Pin
DaveyM6913-Nov-08 15:47
professionalDaveyM6913-Nov-08 15:47 
AnswerRe: C# XNA & and the dreaded Global Variables Pin
Mycroft Holmes13-Nov-08 16:49
professionalMycroft Holmes13-Nov-08 16:49 
QuestionRe: C# XNA & and the dreaded Global Variables Pin
Zircon14-Nov-08 1:53
Zircon14-Nov-08 1:53 
QuestionDataGridView <-> xml: can load but can´t save Pin
nelsonpaixao13-Nov-08 13:28
nelsonpaixao13-Nov-08 13:28 
QuestionSend http link to Asterisk server Pin
Kit Fisto13-Nov-08 13:24
Kit Fisto13-Nov-08 13:24 
Questioncall MFC-dialog from managed code Pin
Yevgen Lisovenko13-Nov-08 8:16
Yevgen Lisovenko13-Nov-08 8:16 
AnswerRe: call MFC-dialog from managed code Pin
Edmundpaida8-Oct-12 0:24
Edmundpaida8-Oct-12 0:24 
Questionreading XML Pin
Planker13-Nov-08 8:01
Planker13-Nov-08 8:01 
i am trying to read from an xml document but am not having any luck getting selectsinglenode to work

here is the code i am using

XmlDocument xml = new XmlDocument();
xml.Load(str); //str has the path to my XML doc
XmlNode xmln = xml.SelectSingleNode("/GPO/Identifier/Identifier");
//xmln is always null but xml has my xmldoc loaded in memory
string Identifier = xmln.InnerText.ToString(); //code bombs here cuz xmln is null...

here is the first few lines of the xml

<?xml version="1.0" encoding="utf-16" ?>
- <GPO xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.microsoft.com/GroupPolicy/Settings">
- <Identifier>
<Identifier xmlns="http://www.microsoft.com/GroupPolicy/Types">{89AEAFFE-E1F8-4786-8AF7-6BE2D991625E}</Identifier>

i have 20 XSD schema files that are related to the xml docs i am trying to parse but i'm new to xml and not clear on how to use the xsd's

help in either direction would be great!
AnswerRe: reading XML Pin
Ennis Ray Lynch, Jr.13-Nov-08 8:08
Ennis Ray Lynch, Jr.13-Nov-08 8:08 
GeneralRe: reading XML Pin
Planker13-Nov-08 8:26
Planker13-Nov-08 8:26 
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 
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 

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.