1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Problem parsing XML using VBScript

Discussion in 'C#' started by rooneydavid, Oct 25, 2006.

  1. #1
    Im trying to parse the following xml with VBScript
      <HotelRoomAvailabilityResult>
        <RateInfo>
          <displayCurrencyCode>USD</displayCurrencyCode>
          <DisplayNightlyRates size='2'>
            <displayNightlyRate>255.0</displayNightlyRate>
            <displayNightlyRate>305.0</displayNightlyRate>
          </DisplayNightlyRates>
          <displayRoomRate>656.15</displayRoomRate>
          <chargeableRoomRateTotal>656.15</chargeableRoomRateTotal>
          <chargeableRoomRateTaxesAndFees>96.15</chargeableRoomRateTaxesAndFees>
          <nativeCurrencyCode>USD</nativeCurrencyCode>
          <NativeNightlyRates size='2'>
            <nativeNightlyRate>255.0</nativeNightlyRate>
            <nativeNightlyRate>305.0</nativeNightlyRate>
          </NativeNightlyRates>
          <nativeRoomRate>656.15</nativeRoomRate>
          <rateFrequency>B</rateFrequency>
        </RateInfo>
      </HotelRoomAvailabilityResult>
    Code (markup):
    Im trying to get each displayNightlyRate value. Does anyone know how I would go about this???? I have tryed to loop through each HotelRoomAvailabilityResult and then loop through the displayNightlyRate but its not returning a value!
     
    rooneydavid, Oct 25, 2006 IP
  2. DatR

    DatR Peon

    Messages:
    210
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    post your code on how your looping through the HotelRoomAvailabilityResult and maybe someone will see the error... i'll take a look at that when you post up some code
     
    DatR, Oct 29, 2006 IP