C# - Parsing XML - Best Approach

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
First time C# XML user VS 2010 - what would be the best approach to reading this "simple" XML file
<?xml version="1.0" encoding="utf-8" standalone="yes"?><br/>
<ProblemReport><br/>
<Project Name="TESTING <br/>
<Record><br/>
<FieldString Name="Title Testing XML file Parsing</FieldString><br/>
<FieldString Name="Stage New</FieldString><br/>
<FieldString Name="Problem Report ID OTT-588H</FieldString><br/>
<FieldString Name="Reported Date 01/21/2012</FieldString><br/>
<FieldString Name="Reported by Joe the Flipper</FieldString><br/>
<FieldString Name="Reply To Email FlipperJoe@gmail.com</FieldString><br/>
<FieldString Name="Company Joes Dinner</FieldString><br/>
<FieldString Name="Functional Area Flipping</FieldString><br/>
<FieldString Name="Version Found In 5.0.0.15</FieldString><br/>
<FieldString Name="Change Type Problem</FieldString><br/>
<FieldString Name="Severity High</FieldString><br/>
<FieldString Name="Program Cooking</FieldString><br/>
<FieldString Name="Client OS Win7 6.1.7601 SP1</FieldString><br/>
<FieldString Name="How Found Customer Reported</FieldString><br/>
<Location>Washington DC</Location><br/>
<FieldString Name="Description <![CDATA[Testing C# XML parsing for the JIRA bug entry system

TESTING V5.0.0.15 Program: Cooking<br/>
Functional Area: Flipping<br/>
Domain: JOE-PC User: Joes: JOE-PC<br/>
Operating System: Win7 6.1.7601 SP1<br/>
.NET Framework: V4.0.30319.239<br/>
Problem Report Utility V8.6.1.27267.NAK
Serial Number: 999990 System ID: <br/>
Reported by: Joe the Flipper Email: mailto:FlipperJoe@gmail.com
FlipperJoe@gmail.com <br/>
Phone: xxx-xxx-xxxx<br/>
Company: Joes Dinner Location: Washington DC<br/>
This report was originally addressed to C:tmp on Saturday, 21 January 2012.]]></FieldString><br/>
<AttachedFile Name="ScreenImage-1.png" /><br/>
<AttachedFile Name="RegionalSettingsRegistryValues.txt" /><br/>
<AttachedFile Name="CurrentUserRegistryValues.txt" /><br/>
<AttachedFile Name="LocalMachineRegistryValues.txt" /><br/>
<AttachedFile Name="Environment.txt" /><br/>
<AttachedFile Name="RunningProcesses.txt" /><br/>
<AttachedFile Name="InstalledApps.txt" /><br/>
<AttachedFile Name="SystemInfo.txt" /><br/>
<AttachedFile Name="the.log" /><br/>
<AttachedFile Name="DesignTime.log" /><br/>
<AttachedFile Name="gspopts32.log" /><br/>
<AttachedFile Name="gspsysinfo.txt" /><br/>
</Record><br/>
</Project><br/>
</ProblemReport>
My confusion is in reading the fields and getting to the attach file names.
Thanks in Advance


View the full article
 
Back
Top