Hello again.. I am starting to work with XML files and haven't ever really done this. I started searching on how to read through xml files but I can't quite grasp what I need to do. My goal is to write a new aspx page at runtime based on the values in the xml file
Here is the XML file minus some of the tests to save space
then after it reads it, i want the data displayed on an aspx page in tables w/ the associated controlsCode:<?xml version="1.0" encoding="utf-8"?> <HealthReport> <Test> <NumberOfResponses>5</NumberOfResponses> <TestSection>ServiceOverview</TestSection> <TestTitle></TestTitle> <TableData> <LeftColumnName>Service</LeftColumnName> <RightColumnName>Result</RightColumnName> </TableData> <Option> <TestText>ASP</TestText> <ResponeType>Radio</ResponeType> <CodeFileRef></CodeFileRef> </Option> <Option> <TestText>Games</TestText> <ResponeType>Radio</ResponeType> <CodeFileRef></CodeFileRef> </Option> <Option> <TestText>MSS</TestText> <ResponeType>Radio</ResponeType> <CodeFileRef></CodeFileRef> </Option> <Option> <TestText>Music</TestText> <ResponeType>Radio</ResponeType> <CodeFileRef></CodeFileRef> </Option> <Option> <TestText>MAPS</TestText> <ResponeType>Radio</ResponeType> <CodeFileRef></CodeFileRef> </Option> </Test> <Test> <NumberOfResponses>5</NumberOfResponses> <TestSection>Games</TestSection> <TestTitle>RealArcade Information</TestTitle> <URLText>source: http://www.realarcade.com/gameguide </URLText> <URL>http://www.realarcade.com/gameguide</URL> <URLText>source: http://www.realarcade.com/game pass Trial 1 </URLText> <URL>http://www.realarcade.com/gamepass?fg=true&tps=cj_&src=cj,2fg_,mcode_%zp%7C%za_</URL> <URLText>source: http://www.realarcade.c om/gamepass Trial 2 </URLText> <URL>http://www.realarcade.com/gamepass?gptype=trial&tps=cj_&src=cj,trial_,mcode_%zp%7C%za_</URL> <URLText>source: http://www.realarcade.com Mysteryville Promotion </URLText> <URL>http://www.realarcade.com/promoGamePass?gameid=mysteryville&tps=cj_&ptype=2t&src=cj,trial_,d2g_,mcode_%zp%7C%za_</URL> <URLText>source: http://www.realarcade.com Burger Rush Promotion </URLText> <URL>http://www.realarcade.com/promoGamePass?gameid=burgerrush&tps=cj_&ptype=2t&src=cj,trial_,d2g_,mcode_%zp%7C%za_</URL> <TableData> <LeftColumnName>Action</LeftColumnName> <RightColumnName>Result</RightColumnName> </TableData> <Option> <TestText>Open Client</TestText> <ResponeType>Radio</ResponeType> <CodeFileRef></CodeFileRef> </Option> <Option> <TestText>Sign In / Sign Out</TestText> <ResponeType>Radio</ResponeType> <CodeFileRef></CodeFileRef> </Option> <Option> <TestText>Download Game</TestText> <ResponeType>Radio</ResponeType> <CodeFileRef></CodeFileRef> </Option> <Option> <TestText>Launch Game</TestText> <ResponeType>Radio</ResponeType> <CodeFileRef></CodeFileRef> </Option> <Option> <TestText>Check Reference Links</TestText> <ResponeType>Radio</ResponeType> <CodeFileRef></CodeFileRef> </Option> </Test> <Test> <NumberOfResponses>5</NumberOfResponses> <TestSection></TestSection> <TestTitle>Superpass</TestTitle> <URLText>source: http://superpass.real.com </URLText> <URL>http://superpass.real.com</URL> <TableData> <LeftColumnName>Action</LeftColumnName> <RightColumnName>Result</RightColumnName> </TableData> <Option> <TestText>Download RealPlayer Client</TestText> <ResponeType>Radio</ResponeType> <CodeFileRef></CodeFileRef> </Option> <Option> <TestText>Open SP home</TestText> <ResponeType>Radio</ResponeType> <CodeFileRef></CodeFileRef> </Option> <Option> <TestText>Sign In / Sign Out</TestText> <ResponeType>Radio</ResponeType> <CodeFileRef></CodeFileRef> </Option> <Option> <TestText>Verify Slideshow</TestText> <ResponeType>Radio</ResponeType> <CodeFileRef></CodeFileRef> </Option> <Option> <TestText>Validate a 24/7 Stream</TestText> <ResponeType>Radio</ResponeType> <CodeFileRef></CodeFileRef> </Option> </Test> <!-- Next section to add is Rhapsody Direct - Sonos --> </HealthReport>
Code:<table class="vertical listing" border="1" style="width: 219px"><tbody><tr><td><p align="center" style="text-align: center;"><b>Service</b></p></td><td style="width: 157px"><p align="center" style="text-align: center;"><b>Result</b></p></td></tr><tr><td><p align="center">ASP</p></td><td style="width: 157px"> <asp:RadioButtonList ID="rbSOAsp" runat="server" Height="1px" RepeatDirection="Horizontal" Width="140px"> <asp:ListItem>Pass</asp:ListItem> <asp:ListItem>Fail</asp:ListItem> </asp:RadioButtonList> </td></tr><tr><td><p align="center">Games</p></td><td style="width: 157px"> <asp:RadioButtonList ID="rbSOGames" runat="server" Height="1px" RepeatDirection="Horizontal" Width="140px"> <asp:ListItem>Pass</asp:ListItem> <asp:ListItem>Fail</asp:ListItem> </asp:RadioButtonList> </td></tr><tr><td><p align="center">MS&S</p></td><td style="width: 157px"> <asp:RadioButtonList ID="rbSOMSS" runat="server" Height="1px" RepeatDirection="Horizontal" Width="140px"> <asp:ListItem>Pass</asp:ListItem> <asp:ListItem>Fail</asp:ListItem> </asp:RadioButtonList> </td></tr><tr><td><p align="center">Music</p></td><td style="width: 157px"> <asp:RadioButtonList ID="rbSOMusic" runat="server" Height="1px" RepeatDirection="Horizontal" Width="140px"> <asp:ListItem>Pass</asp:ListItem> <asp:ListItem>Fail</asp:ListItem> </asp:RadioButtonList></td></tr><tr><td> <p align="center">MAPS</p></td><td style="width: 157px"> <asp:RadioButtonList ID="rbSOMaps" runat="server" Height="1px" RepeatDirection="Horizontal" Width="140px"> <asp:ListItem>Pass</asp:ListItem> <asp:ListItem>Fail</asp:ListItem> </asp:RadioButtonList> </td></tr></tbody></table>




Reply With Quote