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

C#

 
GeneralRe: JPEG TO BITMAP Pin
Member 6910896-May-04 16:35
Member 6910896-May-04 16:35 
GeneralRe: JPEG TO BITMAP Pin
mikker_1237-May-04 9:16
mikker_1237-May-04 9:16 
Generalmouse related problem Pin
Zaffar Kamran5-May-04 13:52
Zaffar Kamran5-May-04 13:52 
GeneralRe: mouse related problem Pin
Heath Stewart5-May-04 14:12
protectorHeath Stewart5-May-04 14:12 
GeneralRe: mouse related problem Pin
Member 6910895-May-04 15:05
Member 6910895-May-04 15:05 
QuestionDatagrid Currency Column?? Pin
DougW485-May-04 12:55
DougW485-May-04 12:55 
AnswerRe: Datagrid Currency Column?? Pin
Heath Stewart5-May-04 14:10
protectorHeath Stewart5-May-04 14:10 
GeneralRe: Datagrid Currency Column?? Pin
DougW485-May-04 14:43
DougW485-May-04 14:43 
GeneralNewline in Label Text Pin
Okeno Palmer5-May-04 12:18
Okeno Palmer5-May-04 12:18 
GeneralRe: Newline in Label Text Pin
Heath Stewart5-May-04 14:07
protectorHeath Stewart5-May-04 14:07 
GeneralRe: Newline in Label Text Pin
Okeno Palmer5-May-04 14:51
Okeno Palmer5-May-04 14:51 
GeneralMore of column headers filters in custom lisview Pin
machocr5-May-04 10:58
machocr5-May-04 10:58 
GeneralRe: More of column headers filters in custom lisview Pin
Heath Stewart5-May-04 14:02
protectorHeath Stewart5-May-04 14:02 
Generalfish eye images converter Pin
doph5-May-04 8:34
doph5-May-04 8:34 
GeneralStrange TypeLoadException Pin
Broken God5-May-04 5:59
Broken God5-May-04 5:59 
GeneralRe: Strange TypeLoadException Pin
leppie5-May-04 6:52
leppie5-May-04 6:52 
GeneralRe: Strange TypeLoadException Pin
Anonymous5-May-04 7:47
Anonymous5-May-04 7:47 
GeneralRemoving event listeners on IHTMLDocument2 objects Pin
agking5-May-04 5:56
agking5-May-04 5:56 
GeneralDLL Help Pin
goldoche5-May-04 5:54
goldoche5-May-04 5:54 
GeneralRe: DLL Help Pin
Heath Stewart5-May-04 6:59
protectorHeath Stewart5-May-04 6:59 
GeneralXmlDocument, SOAP& Namespaces Pin
MrEyes5-May-04 5:40
MrEyes5-May-04 5:40 
GeneralRe: XmlDocument, SOAP& Namespaces Pin
Heath Stewart5-May-04 5:44
protectorHeath Stewart5-May-04 5:44 
GeneralRe: XmlDocument, SOAP& Namespaces Pin
MrEyes5-May-04 5:58
MrEyes5-May-04 5:58 
GeneralRe: XmlDocument, SOAP& Namespaces Pin
Heath Stewart5-May-04 7:10
protectorHeath Stewart5-May-04 7:10 
If you select a node using the XmlDocument instead of the DocumentElement, you must use a beginning "/" which uses a scope from the root element. The following sample works fine:
using System;
using System.Xml;

public class Test
{
  static void Main()
  {
    XmlDocument doc = new XmlDocument();
    doc.Load("Test.xml"); // Just a document with your data in my sample.

    XmlNamespaceManager nsmgr = new XmlNamespaceManager(doc.NameTable);
    nsmgr.AddNamespace("soap", "http://schemas.xmlsoap.org/soap/envelope/");
    nsmgr.AddNamespace("l", "http://www.domain.com/EP/");

    XmlNode logonNode = doc.SelectSingleNode(
      "/soap:Envelope/soap:Body/l:Logon", nsmgr);
    if (logonNode != null)
    {
      foreach (XmlNode child in logonNode.ChildNodes)
        Console.WriteLine("{0}: {1}", child.Name, child.InnerText);
    }
  }
}


 

Microsoft MVP, Visual C#
My Articles
GeneraldataGridTextBoxColumn textBox Pin
blankg5-May-04 5:16
blankg5-May-04 5:16 

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.