SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 176 | Next

Scott Klein

"Professional LINQ"

Create a directory called Wrox in the root
of your C drive, for example, and in your favorite text editor program, type the following, saving it as
Employees.xml:



Steve Kent
99
Part II: LINQ to XML
Mr. SciFi
Gaming
04/17/92
M
M


Scott Klein
Geek
All things technical
02/05/94
M
M


The following code loads Employees.xml using the Load method of the XElement class. The results of
Load are then used to create and populate an XML tree, while adding two more elements to the tree.
XElement employees = XElement.Load(@"C:\Wrox\Employees.xml");
XElement tree = new XElement("Root",
new XElement("Manager", "Dave"),
new XElement("BirthDate", "01/01/1970"),
from el in employees.Elements()
select el);
textBox1.


Pages:
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6