Click here to Skip to main content
15,913,027 members
Home / Discussions / C#
   

C#

 
AnswerRe: fast search Pin
Wendelius10-Nov-08 6:29
mentorWendelius10-Nov-08 6:29 
AnswerRe: fast search Pin
riced10-Nov-08 7:22
riced10-Nov-08 7:22 
AnswerRe: fast search Pin
Pete O'Hanlon10-Nov-08 11:04
mvePete O'Hanlon10-Nov-08 11:04 
GeneralRe: fast search Pin
jas0n2310-Nov-08 22:23
jas0n2310-Nov-08 22:23 
AnswerRe: fast search Pin
Mark Churchill10-Nov-08 16:01
Mark Churchill10-Nov-08 16:01 
AnswerRe: fast search Pin
N a v a n e e t h10-Nov-08 16:31
N a v a n e e t h10-Nov-08 16:31 
AnswerRe: fast search Pin
Alan Balkany11-Nov-08 4:19
Alan Balkany11-Nov-08 4:19 
QuestionReading XML Pin
Planker10-Nov-08 2:56
Planker10-Nov-08 2:56 
here is the first part of an XML file I am trying to parse.

<?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--6BE2D991625E}</Identifier>
<Domain xmlns="http://www.microsoft.com/GroupPolicy/Types">FQDN of Domain</Domain>
</Identifier>
<Name>Citrix_policy</Name>
<CreatedTime>2008-03-06T23:08:05</CreatedTime>
<ModifiedTime>2008-08-27T20:49:49</ModifiedTime>
<ReadTime>2008-10-24T01:29:41.40625Z</ReadTime>
.....
</GPO>

I am trying to use XPathNavigator but the following code returns the whole xml document

XPathDocument document = new XPathDocument(stream);
XPathNavigator nav = document.CreateNavigator();
XPathNodeIterator node = nav.Select("/GPO/Identifier/Identifier");
string test = node.Current.InnerXml.ToString();
MessageBox.Show(test);

What am I doing wrong?
AnswerRe: Reading XML Pin
Wendelius10-Nov-08 6:39
mentorWendelius10-Nov-08 6:39 
GeneralRe: Reading XML Pin
Planker10-Nov-08 7:33
Planker10-Nov-08 7:33 
GeneralRe: Reading XML Pin
Wendelius10-Nov-08 7:39
mentorWendelius10-Nov-08 7:39 
GeneralRe: Reading XML Pin
Planker10-Nov-08 8:27
Planker10-Nov-08 8:27 
GeneralRe: Reading XML Pin
Wendelius10-Nov-08 8:41
mentorWendelius10-Nov-08 8:41 
GeneralRe: Reading XML Pin
Planker10-Nov-08 9:06
Planker10-Nov-08 9:06 
GeneralRe: Reading XML Pin
Wendelius10-Nov-08 9:13
mentorWendelius10-Nov-08 9:13 
QuestionLog4Net AsyncAppender Pin
fdbpro10-Nov-08 2:18
fdbpro10-Nov-08 2:18 
AnswerRe: Log4Net AsyncAppender Pin
Simon P Stevens10-Nov-08 2:54
Simon P Stevens10-Nov-08 2:54 
GeneralRe: Log4Net AsyncAppender Pin
fdbpro10-Nov-08 19:22
fdbpro10-Nov-08 19:22 
GeneralRe: Log4Net AsyncAppender Pin
Simon P Stevens10-Nov-08 21:44
Simon P Stevens10-Nov-08 21:44 
AnswerRe: Log4Net AsyncAppender Pin
Dave Kreskowiak10-Nov-08 3:51
mveDave Kreskowiak10-Nov-08 3:51 
GeneralRe: Log4Net AsyncAppender Pin
fdbpro10-Nov-08 19:14
fdbpro10-Nov-08 19:14 
GeneralRe: Log4Net AsyncAppender Pin
Simon P Stevens10-Nov-08 22:07
Simon P Stevens10-Nov-08 22:07 
GeneralRe: Log4Net AsyncAppender Pin
fdbpro10-Nov-08 23:35
fdbpro10-Nov-08 23:35 
Questionexport to bitmap Pin
vinay_K10-Nov-08 2:07
vinay_K10-Nov-08 2:07 
AnswerRe: export to bitmap Pin
Guffa10-Nov-08 3:25
Guffa10-Nov-08 3:25 

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.