4
Answers

query to find minimum node value in xml

khalid taha

khalid taha

11y
2.7k
1
i have an xml in below format<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Body>
    <GetFlightsResponse>
      <GetFlightsResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
        <Flight>
          <Airlines>AF</Airlines>
          <ArrivalCity>Frankfurt</ArrivalCity>
          <ArrivalTime>02:53 PM</ArrivalTime>
          <DepartureCity>Denver</DepartureCity>
          <DepartureTime>02:09 PM</DepartureTime>
          <FlightNumber>13628</FlightNumber>
          <Price>124.8</Price>
        </Flight>
        <Flight>
          <Airlines>LH</Airlines>
          <ArrivalCity>Frankfurt</ArrivalCity>
          <ArrivalTime>11:17 AM</ArrivalTime>
          <DepartureCity>Denver</DepartureCity>
          <DepartureTime>10:33 AM</DepartureTime>
          <FlightNumber>13634</FlightNumber>
          <Price>123.2</Price>
        </Flight>
        <Flight>
          <Airlines>BA</Airlines>
          <ArrivalCity>Frankfurt</ArrivalCity>
          <ArrivalTime>08:53 AM</ArrivalTime>
          <DepartureCity>Denver</DepartureCity>
          <DepartureTime>08:09 AM</DepartureTime>
          <FlightNumber>14021</FlightNumber>
          <Price>109.2</Price>
        </Flight>
      
      </GetFlightsResult>
    </GetFlightsResponse>
  </s:Body>
</s:Envelope>
 
i need to find the Flight number whose price is minimum .How to go about this
Answers (4)
0
karthick t

karthick t

NA 2 0 9y
Hi,
   I have one doubt in export pdf in ASP.net c#.I do not know how to export textbox,label,gridview controls  in pdf format with different alignment.i tried to bind all controls in pdf but i cannot  arrange the controls in pdf format  when am i using gridview. can you give code for that.
0
Sanjeeb Lenka

Sanjeeb Lenka

NA 22.1k 1.3m 11y
Hi,

Take a table and put the controls within that in two columns.

try this sample:

<table>
            <tr>
                <td colspan="3" align="right">
                    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="width: 184px;">
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                </td>
                <td rowspan="2" align="right">
                    <asp:Image ID="Image1" runat="server" Height="42px" Width="62px" />
                </td>
                <td style="width: 64px;">
                </td>
            </tr>
            <tr>
                <td style="width: 184px;">
                    <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                </td>
                <td style="width: 64px;">
                </td>
            </tr>
            <tr>
                <td style="width: 184px;">
                    <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
                </td>
                <td>
                    <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
                </td>
                <td style="width: 64px;">
                </td>
            </tr>
            <tr>
                <td style="width: 184px;">
                    <asp:TextBox ID="TextBox7" runat="server"></asp:TextBox>
                </td>
                <td>
                    <asp:TextBox ID="TextBox8" runat="server"></asp:TextBox>
                </td>
                <td style="width: 64px;">
                </td>
            </tr>
            <tr>
                <td style="width: 184px;">
                    <asp:TextBox ID="TextBox9" runat="server"></asp:TextBox>
                </td>
                <td>
                    <asp:TextBox ID="TextBox10" runat="server"></asp:TextBox>
                </td>
                <td style="width: 64px;">
                </td>
            </tr>
        </table>

Any problem reply