I have the following xml in a variable called newAvail:
<?xml version="1.0" encoding="UTF-8"?>
<Response ResponseReference="REF_D_010_1152-1322142921212">
<ResponseDetails Language="en">
<SearchHotelPriceResponse>
<HotelDetails>
<Hotel HasExtraInfo="true" HasMap="true" HasPictures="true">
<City Code="ROM"><![CDATA[Rome]]></City>
<Item Supp="1" Category="First Class Modern Hotel" Img="http://images.gta-travel.com/HH/Images/I/ROMth/ROM-ART4-1.jpg" Code="ART4"><![CDATA[Artis]]></Item>
<LocationDetails>
<Location Code="G8"><![CDATA[Suburbs]]></Location>
</LocationDetails>
<StarRating>4</StarRating>
<HotelRooms>
<HotelRoom Code="TB" NumberOfRooms="1"/>
</HotelRooms>
<RoomCategories>
<RoomCategory Id="001:ART5">
<Description><![CDATA[Standard]]></Description>
<ItemPrice Currency="EUR">141.00</ItemPrice>
<Confirmation Code="IM"><![CDATA[AVAILABLE]]></Confirmation>
<Meals>
<Basis Code="B"><![CDATA[Breakfast]]></Basis>
<Breakfast Code="B"><![CDATA[Buffet]]></Breakfast>
</Meals>
<HotelRoomPrices>
<HotelRoom Code="TB">
<RoomPrice Gross="141.00"/>
<PriceRanges>
<PriceRange>
<DateRange>
<FromDate>2011-11-27</FromDate>
<ToDate>2011-11-29</ToDate>
</DateRange>
<Price Gross="47.00" Nights="3"/>
</PriceRange>
</PriceRanges>
</HotelRoom>
</HotelRoomPrices>
</RoomCategory>
<RoomCategory Id="001:ART4">
<Description><![CDATA[Standard]]></Description>
<ItemPrice Currency="EUR">156.00</ItemPrice>
<Confirmation Code="IM"><![CDATA[AVAILABLE]]></Confirmation>
<Meals>
<Basis Code="B"><![CDATA[Breakfast]]></Basis>
<Breakfast Code="B"><![CDATA[Buffet]]></Breakfast>
</Meals>
<HotelRoomPrices>
<HotelRoom Code="TB">
<RoomPrice Gross="156.00"/>
<PriceRanges>
<PriceRange>
<DateRange>
<FromDate>2011-11-27</FromDate>
<ToDate>2011-11-29</ToDate>
</DateRange>
<Price Gross="52.00" Nights="3"/>
</PriceRange>
</PriceRanges>
</HotelRoom>
</HotelRoomPrices>
</RoomCategory>
</RoomCategories>
</Hotel>
</HotelDetails>
</SearchHotelPriceResponse>
</ResponseDetails>
</Response>
The following statement works fine in FF but dies silently in IE9. Used to work in IE7.
tmproomsuppnightprice = newAvail.doXPath("//RoomCategory[@Id='001:ART5']/HotelRoomPrices/HotelRoom[@Code='TB']/PriceRanges/PriceRange[1]/Price")[0].getAttribute('Gross');
Please can you help urgently as this is on a production system.
Thanks
Purvez