Click here to Skip to main content
15,892,059 members
Home / Discussions / XML / XSL
   

XML / XSL

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

i have the the Xml file that has lots of tags and I am intrested in retrieving the data in the first <id> tag.I used the XmlDataDocument class and the used the SelectSingleNode("//ID").

the whole code looks like this

StreamReader st= new StreamReader("c:\\temp\\abc.xml");

string xml=st.ReadToEnd();

XmlDataDocument xmlDoc=new XmlDataDocument();

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


It gives me an runtime error can any one ishhelp in this.


Thanking you in advance.

Satish
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 
GeneralXML Binding with Java Pin
qadirchalla@yahoo.com6-Jul-05 7:53
qadirchalla@yahoo.com6-Jul-05 7:53 
GeneralRe: XML Binding with Java Pin
DavidNohejl6-Jul-05 10:23
DavidNohejl6-Jul-05 10:23 
GeneralRe: XML Binding with Java Pin
qadirchalla@yahoo.com6-Jul-05 11:04
qadirchalla@yahoo.com6-Jul-05 11:04 
GeneralRendering xforms in xslt Pin
korayyersel6-Jul-05 0:03
korayyersel6-Jul-05 0:03 
GeneralXML relational data Pin
Member 17770424-Jul-05 10:51
Member 17770424-Jul-05 10:51 
GeneralRe: XML relational data Pin
toujin4-Jul-05 14:06
toujin4-Jul-05 14: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.