all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
15
Task/XML-Input/C-sharp/xml-input.cs
Normal file
15
Task/XML-Input/C-sharp/xml-input.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
XDocument xmlDoc = XDocument.Load("XMLFile1.xml");
|
||||
var query = from p in xmlDoc.Descendants("Student")
|
||||
select p.Attribute("Name");
|
||||
|
||||
foreach (var item in query)
|
||||
{
|
||||
Console.WriteLine(item.Value);
|
||||
}
|
||||
Console.ReadLine();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue