Click here to Skip to main content
15,929,512 members
Home / Discussions / C#
   

C#

 
GeneralSocks Tunneling Pin
Hadi Fakhreddine1-Aug-05 3:34
Hadi Fakhreddine1-Aug-05 3:34 
GeneralALT + SHIFT Effect Programatically Pin
Ali Beirami1-Aug-05 3:29
Ali Beirami1-Aug-05 3:29 
GeneralRe: ALT + SHIFT Effect Programatically Pin
Mohamad Al Husseiny1-Aug-05 4:38
Mohamad Al Husseiny1-Aug-05 4:38 
GeneralRSS related question Pin
profoundwhispers1-Aug-05 3:16
profoundwhispers1-Aug-05 3:16 
GeneralRe: RSS related question Pin
S. Senthil Kumar1-Aug-05 7:21
S. Senthil Kumar1-Aug-05 7:21 
GeneralParsing XML Pin
Neel071-Aug-05 2:30
Neel071-Aug-05 2:30 
GeneralRe: Parsing XML Pin
Lars Niedziolka1-Aug-05 14:16
Lars Niedziolka1-Aug-05 14:16 
GeneralRe: Parsing XML Pin
Neel071-Aug-05 23:34
Neel071-Aug-05 23:34 
Thanks a lot

I have found the solution and you are right we should mention only "OrigoNS" as namespace prefix. Also it should call the 1st overloaded method of SelectSingleNode passing the XmlNamespaceManager object in the 2nd parameter.

Corrected code
XmlDocument objXmlDoc = new XmlDocument();
objXmlDoc.Load("C:\\abc.xml");
objRoot=objXmlDoc.DocumentElement;

XmlNamespaceManager objXmlNS = new XmlNamespaceManager(objXmlDoc.NameTable);
objXmlNS.AddNamespace("OrigoNS","http://www.origoservices.com");

XmlNode objRoot;
string MsgID=objRoot.SelectSingleNode("//OrigoNS:message_id",objXmlNS).InnerText;

Share knowledge to enhance your learning
GeneralError message with AutoNumber column issue- update DB Pin
sea#1-Aug-05 2:16
sea#1-Aug-05 2:16 
Generalhelp required regarding displaying JPEGs Pin
arusmemon1-Aug-05 1:19
arusmemon1-Aug-05 1:19 
Generalwebconfig Pin
Brendan Vogt1-Aug-05 1:06
Brendan Vogt1-Aug-05 1:06 
GeneralRe: webconfig Pin
User 16732522-Aug-05 3:08
User 16732522-Aug-05 3:08 
GeneralRe: webconfig Pin
Brendan Vogt2-Aug-05 3:18
Brendan Vogt2-Aug-05 3:18 
GeneralRe: webconfig Pin
User 16732522-Aug-05 20:35
User 16732522-Aug-05 20:35 
Generalworking with greyscale tiff 16bpp!! Pin
Niles Davis1-Aug-05 0:46
Niles Davis1-Aug-05 0:46 
QuestionSet Statusbar panels forecolor ? Pin
fracalifa1-Aug-05 0:07
fracalifa1-Aug-05 0:07 
AnswerRe: Set Statusbar panels forecolor ? Pin
Mohamad Al Husseiny1-Aug-05 9:55
Mohamad Al Husseiny1-Aug-05 9:55 
Generalgive a name to a dialog box Pin
nidhelp1-Aug-05 0:04
nidhelp1-Aug-05 0:04 
GeneralRe: give a name to a dialog box Pin
Rick Beideman1-Aug-05 4:15
Rick Beideman1-Aug-05 4:15 
QuestionHow should I store my Data? Pin
J. Holzer31-Jul-05 23:15
J. Holzer31-Jul-05 23:15 
AnswerRe: How should I store my Data? Pin
Alomgir Miah1-Aug-05 4:45
Alomgir Miah1-Aug-05 4:45 
AnswerRe: How should I store my Data? Pin
HumanOsc1-Aug-05 6:25
HumanOsc1-Aug-05 6:25 
AnswerRe: How should I store my Data? Pin
DavidNohejl1-Aug-05 7:16
DavidNohejl1-Aug-05 7:16 
GeneralRe: How should I store my Data? Pin
Anonymous1-Aug-05 10:30
Anonymous1-Aug-05 10:30 
GeneralDataRow vs BusinessObject Pin
WDI31-Jul-05 22:20
WDI31-Jul-05 22:20 

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.