selectAttribute

View: New views
1 Messages — Rating Filter:   Alert me  

selectAttribute

by Grant Edwards-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Mabye its late, mabye I am a bit slow but either way I need a bit of help.


xmlbeans-2.3.0



RoomRates roomRates = roomStayArray[i].getRoomRates();


If I have a look at the contents of roomRates it looks something like
the following bit of xml:



<RoomRate RoomTypeCode="B" RatePlanCode="Rack" NumberOfUnits="6"
RatePlanType="13" xmlns="http://www.opentravel.org/OTA/2003/05"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Rates>
  <Rate UnitMultiplier="1" RateTimeUnit="Day">
      .......................
  </Rate>
</Rates>
</RoomRate>



I am trying to get hold of the attributes of RoomRate and their
associated value, for example RoomTypeCode="B".



The code below returns a null, why?

XmlObject roomTypeCode = roomRates.selectAttribute("", "RoomTypeCode");


Any help would be appreciated.


Kind regards

Grant Edwards

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...

LightInTheBox - Buy quality products at wholesale price