Click here to Skip to main content
15,888,454 members
Home / Discussions / C#
   

C#

 
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 
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 
Hi again,

The xml was missing some end tags so I added them to test this case. When I added a name alias on xmlns attributes it began to work. Here's the code I used. Note the aliases!
string testText = "<?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:<big>Alias1</big>=\"http://www.microsoft.com/GroupPolicy/Settings\"> <Identifier> <Identifier xmlns:<big>Alias2</big>=\"http://www.microsoft.com/GroupPolicy/Types\">{89AEAFFE-E1F8-4786-8AF7-6BE2D991625E}</Identifier></Identifier></GPO>";<br />
<br />
System.Xml.XmlDocument xml = new System.Xml.XmlDocument();<br />
xml.LoadXml(testText);          <br />
System.Xml.XmlNode xmln = xml.SelectSingleNode("/GPO/Identifier/Identifier");<br />
string Identifier = xmln.InnerText.ToString();


Hope this helps you forward,

Mika

The need to optimize rises from a bad design.

My articles[^]

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 
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 

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.