I'm a newbie trying to learning C#. I have been tasked with needing to read an XML file using C# in ASP.NET 2.0, My XML file looks something like this:
CODE
<?xml version="1.0" encoding="utf-8"?>
<table1>
<Detail_Collection>
<Detail Subject="ADS : Alcohol and Drug Studies" Course="ADS 102" Title="Drug Use and Addiction" Credits="3.00" Description="An examination of commonly abused drugs with emphasis on the physical, psychological and behavioral consequences of these drugs. Includes drug chemistry, physiological effects of drug use upon the body and specific treatment formats and techniques. [As Announced]" />
<Detail Subject="ADS : Alcohol and Drug Studies" Course="ADS 150" Title="Basic Counseling and Addiction" Credits="3.00" Description="Introduction to the theory and practice of addictions counseling. Students will examine various counseling theories and begin developing their own approach to addictions counseling. Students will participate in guided practice to facilitate skill development. [As Announced]" />
</Detail_Collection>
</table1>
I need to format each Subject, Course, Title, Credits, and Description. I'm not sure how to read/get each item, especially in this format. The XML file is created automatically on the server.
If someone could show me some code to get this going, I would be extremely greatful!