<HotelProduct PricingSource="System" InventorySource="System" ExternalDetailsObtained="false" Code="IAI06" Category="4R" InstantPurchase="false"> <Description>Deluxe Guest Room</Description> <Supplier Type="Hotel" Code="LIAIS" City="WAS"/> <InventoryDetails Status="Available"> <ExtendedInventoryDetails MaximumAvailable="3"> <InventoryProduct Code="IAI06" City="WAS"/> </ExtendedInventoryDetails> </InventoryDetails> <PriceDetails PricingDuration="5" Price="765.00" IncludesBonusNights="false"/> <DescriptiveItineraryText> <Text Heading="true">Check In: 3:00 pm</Text> <Text/> <Text>Hotel is situated in the heart of the capital city the hotel is</Text> <Text>close to all of the city's major attractions. Centrally located</Text> <Text>on New Jersey Avenue close to nearby dining and shopping.</Text> </DescriptiveItineraryText> <DurationDetails MinimumDuration="1" MaximumDuration="99"/> <DateBands> <DateBand EffectiveToDate="2012-11-26" EffectiveFromDate="2012-11-16"> <Applicability SplitRates="true" BaseRates="false"/> <CheckOutDetails StandardCheckOutTime="12:00:00"/> <MealOptions> <MealOption Code="0"> <Description>No Meals Included</Description> </MealOption> </MealOptions> </DateBand> <DateBand EffectiveToDate="2013-02-10" EffectiveFromDate="2012-11-27"> <Applicability SplitRates="true" BaseRates="false"/> <CheckOutDetails StandardCheckOutTime="12:00:00"/> </DateBand> <DateBand EffectiveToDate="2013-02-25" EffectiveFromDate="2013-02-11"> <Applicability SplitRates="true" BaseRates="false"/> <CheckOutDetails StandardCheckOutTime="12:00:00"/> </DateBand> <DateBand EffectiveToDate="2013-02-27" EffectiveFromDate="2013-02-26"> <Applicability SplitRates="true" BaseRates="false"/> <CheckOutDetails StandardCheckOutTime="12:00:00"/> </DateBand> <DateBand EffectiveToDate="2013-03-17" EffectiveFromDate="2013-02-28"> <Applicability SplitRates="true" BaseRates="false"/> <CheckOutDetails StandardCheckOutTime="12:00:00"/> </DateBand> </DateBands> </HotelProduct>
IEnumerable<string> textSegs = from seg in _hotel.Descendants("DescriptiveItineraryText") from text in seg.Descendants("Text") select (string)text; string str = textSegs.Aggregate(new StringBuilder(), (sb, i) => sb.Append(i), sp => sp.ToString());
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)