Hey,
is there any way I can jump to the root node of my xml document?
eg:
XmlNode mynode = mydoc.getRootNode
Thanx in advance,
Stephan
Printable View
Hey,
is there any way I can jump to the root node of my xml document?
eg:
XmlNode mynode = mydoc.getRootNode
Thanx in advance,
Stephan
Try populating a dataset from your XML File , then the first table is the root of that file .
First of all thanx for your help, but never had to work with a dataset up till now.Do you have an example?
Thanx,
Stephan
Sure ,
This is very simple example to work with Dataset . It loads columns of XML File into a combobox .
I almost forgot the attatchment .
BTW , it's C#.NET 2003 . You may need to convert it with the tool under my sig .
WOW, this is Cool,
Thanx for that piece of code! No need to convert, I am on 2003 too. Thats pretty need to play around with. Even thogh I just found found another alternative.
It was right in front of my eyes and I just couldnt see it.
Heres what I did:
So mynode is now my rootnode! God I am so "codeblind" today!Code:XmlDocument compare = new XmlDocument(); //new Instance of xml-Document
compare.Load(path); // select the xml source
XmlNode mynode = compare.DocumentElement; // new Instance of Node
But thanx anyways, cause your example is sth I can use too!
Hope you have a better "coding day" than I have.
CU,
Stephan
You need off days :D .
Glad you got it working .:)