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

C#

 
GeneralRe: Finding a Number in a string Pin
alvinjv11-Jan-06 5:10
alvinjv11-Jan-06 5:10 
GeneralRe: Finding a Number in a string Pin
User 665811-Jan-06 7:15
User 665811-Jan-06 7:15 
QuestionWorker Threads Pin
akshayswaroop11-Jan-06 2:50
akshayswaroop11-Jan-06 2:50 
AnswerRe: Worker Threads Pin
lmoelleb11-Jan-06 3:09
lmoelleb11-Jan-06 3:09 
GeneralRe: Worker Threads Pin
akshayswaroop11-Jan-06 20:31
akshayswaroop11-Jan-06 20:31 
GeneralRe: Worker Threads Pin
lmoelleb11-Jan-06 20:54
lmoelleb11-Jan-06 20:54 
GeneralRe: Worker Threads Pin
akshayswaroop12-Jan-06 3:09
akshayswaroop12-Jan-06 3:09 
QuestionUnable to Load XML Pin
Samy Lahur11-Jan-06 2:32
Samy Lahur11-Jan-06 2:32 
Hi,

I am new to XML and C#. I want to load this XML via the below code to an XmlDocument but it returns an Error which I don't know how to handle it. Here is the XML:


<?xml version="1.0" encoding="UTF-8"?>
<epp xmlns="urn:iana:xml:ns:epp-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:iana:xml:ns:epp-1.0 epp-1.0.xsd">
<response>
<result code="1000">
<msg lang="en-US">Command completed successfully</msg>
</result>
<resData>
<contact:creData>
<contact:id>Epp1464</contact:id>
</contact:creData>
</resData>
<trID>
<clTRID>CrtContact0031</clTRID>
<svTRID>CrtContact0031-OLNIC-SRV</svTRID>
</trID>
<chksum>979170f7c148e945e352c7d155da8ac2</chksum>
</response>
</epp>

And here is my code. Actually I need also to know how to get the <contact:id> and <result> node bvalue and attribue.

try
{
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.LoadXml(strXMLSrc);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}

Please help.
Samy


-- modified at 8:35 Wednesday 11th January, 2006
AnswerRe: Unable to Load XML Pin
lmoelleb11-Jan-06 3:14
lmoelleb11-Jan-06 3:14 
GeneralRe: Unable to Load XML Pin
Samy Lahur11-Jan-06 4:16
Samy Lahur11-Jan-06 4:16 
AnswerRe: Unable to Load XML Pin
KaptinKrunch11-Jan-06 3:15
KaptinKrunch11-Jan-06 3:15 
GeneralRe: Unable to Load XML Pin
Samy Lahur11-Jan-06 4:15
Samy Lahur11-Jan-06 4:15 
Question.parse vs casting Pin
fmardani11-Jan-06 2:27
fmardani11-Jan-06 2:27 
AnswerRe: .parse vs casting Pin
User 665811-Jan-06 3:03
User 665811-Jan-06 3:03 
AnswerRe: .parse vs casting Pin
Curtis Schlak.11-Jan-06 3:25
Curtis Schlak.11-Jan-06 3:25 
AnswerRe: .parse vs casting Pin
Guffa11-Jan-06 11:17
Guffa11-Jan-06 11:17 
QuestionHow to get the IP address of the current host? Pin
bouli11-Jan-06 1:13
bouli11-Jan-06 1:13 
AnswerRe: How to get the IP address of the current host? Pin
mikailcetinkaya11-Jan-06 9:09
mikailcetinkaya11-Jan-06 9:09 
GeneralRe: How to get the IP address of the current host? Pin
Dave Kreskowiak11-Jan-06 9:34
mveDave Kreskowiak11-Jan-06 9:34 
AnswerRe: How to get the IP address of the current host? Pin
Dave Kreskowiak11-Jan-06 9:32
mveDave Kreskowiak11-Jan-06 9:32 
GeneralRe: How to get the IP address of the current host? Pin
bouli11-Jan-06 10:15
bouli11-Jan-06 10:15 
GeneralRe: How to get the IP address of the current host? Pin
Dave Kreskowiak11-Jan-06 10:53
mveDave Kreskowiak11-Jan-06 10:53 
QuestionFinger print scanner Access in C# Pin
Ckhurana11-Jan-06 0:51
Ckhurana11-Jan-06 0:51 
AnswerRe: Finger print scanner Access in C# Pin
Dave Kreskowiak11-Jan-06 5:45
mveDave Kreskowiak11-Jan-06 5:45 
Questionobject initialization Pin
bidisha_tina11-Jan-06 0:06
bidisha_tina11-Jan-06 0:06 

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.