Click here to Skip to main content
15,914,481 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralXML and &amp Pin
wopa12-Jul-05 5:33
wopa12-Jul-05 5:33 
GeneralRe: XML and &amp Pin
DavidNohejl12-Jul-05 6:38
DavidNohejl12-Jul-05 6:38 
GeneralRe: XML and & Pin
wopa12-Jul-05 19:53
wopa12-Jul-05 19:53 
GeneralRe: XML and & Pin
wopa12-Jul-05 20:02
wopa12-Jul-05 20:02 
GeneralRe: XML and & Pin
DavidNohejl13-Jul-05 2:07
DavidNohejl13-Jul-05 2:07 
GeneralRe: XML and & Pin
wopa13-Jul-05 2:46
wopa13-Jul-05 2:46 
GeneralRe: XML and & Pin
DavidNohejl13-Jul-05 3:14
DavidNohejl13-Jul-05 3:14 
GeneralHelp in Xpath Pin
12-Jul-05 4:16
suss12-Jul-05 4:16 
hi,

I am trying to use the XPath in XmlDocument object.The code is something like this

XmlDataDocument xmlDoc=new XmlDataDocument();

xmlDoc.LoadXml(xml);


XmlNode xn=xmlDoc.SelectSingleNode("//ID");
Console.WriteLine("the value of the book is:"+xmlDoc.InnerText);


and the xml file is like this
<FAX>
<JOBID>345679</JOBID>
<JOBNAME>Out1</JOBNAME>
<JOBSUBMITDATE>7/8/2005 4:27:03 PM</JOBSUBMITDATE>
<STATUS>
<ID>-1</ID>
<DESCRIPTION> Successfully Queued</DESCRIPTION>
</STATUS>
</FAX>

this is just part of the Xml their are few more tags above and below.I need only the the <ID> and <Description> values from these.

If I am coding as above then I am getting the run time error.

Can any one help me in this.

Thanking in advace,
Satish.
GeneralRe: Help in Xpath Pin
Christian Graus12-Jul-05 13:36
protectorChristian Graus12-Jul-05 13:36 
GeneralRe: Help in Xpath Pin
satishrg13-Jul-05 8:29
satishrg13-Jul-05 8:29 
GeneralRe: Help in Xpath Pin
Christian Graus13-Jul-05 12:25
protectorChristian Graus13-Jul-05 12:25 
GeneralProblem msxml4.dll in IIS6 in windows 2003 server Pin
manuel.alvarez11-Jul-05 21:26
manuel.alvarez11-Jul-05 21:26 
Generaltrouble in spreadsheetML Pin
firebolt7711-Jul-05 0:21
firebolt7711-Jul-05 0:21 
GeneralHelp in Xpath Pin
satishrg8-Jul-05 9:32
satishrg8-Jul-05 9:32 
GeneralRe: Help in Xpath Pin
Javier Lozano11-Jul-05 8:58
Javier Lozano11-Jul-05 8:58 
GeneralRe: Help in Xpath Pin
satishrg12-Jul-05 4:27
satishrg12-Jul-05 4:27 
GeneralRe: Help in Xpath Pin
Javier Lozano12-Jul-05 5:01
Javier Lozano12-Jul-05 5:01 
GeneralRe: Help in Xpath Pin
satishrg12-Jul-05 6:31
satishrg12-Jul-05 6:31 
GeneralRe: Help in Xpath Pin
DavidNohejl12-Jul-05 6:31
DavidNohejl12-Jul-05 6:31 
GeneralRe: Help in Xpath Pin
12-Jul-05 6:59
suss12-Jul-05 6:59 
Generaltroubles in making excel document using xml Pin
firebolt778-Jul-05 0:58
firebolt778-Jul-05 0:58 
GeneralUsing existing XSD with WebService Pin
Grimolfr7-Jul-05 15:49
Grimolfr7-Jul-05 15:49 
GeneralRe: Using existing XSD with WebService Pin
Javier Lozano11-Jul-05 9:02
Javier Lozano11-Jul-05 9:02 
GeneralRe: Using existing XSD with WebService Pin
Grimolfr12-Jul-05 6:12
Grimolfr12-Jul-05 6:12 
GeneralGetListItems in List web service and infopath Pin
Steven M Hunt7-Jul-05 3:45
Steven M Hunt7-Jul-05 3:45 

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.