我想访问NumberOfUnits。我试过了
$finalbooking->HotelReservations->HotelReservation->RoomStays->RoomStay->RoomTypes{0}->{'@attributes'}->NumberOfUnits;
和
$finalbooking->HotelReservations->HotelReservation->RoomStays->RoomStay->RoomTypes->{'@attributes'}->NumberOfUnits;
但没有运气。任何帮助,将不胜感激。谢谢