<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><FONT class="Apple-style-span" face="Courier New">get_xpath is wicked cool. :)</FONT><DIV><FONT class="Apple-style-span" face="Courier New"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New">j</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New">BEFORE:</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New"> } elsif ($message_type =~ /HotelResNotif/) {</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New"> my $HRs = $twig->first_child("HotelReservations");</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New"> goto BARF if (!$HRs);</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New"> my $HR = $HRs->first_child("HotelReservation");</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New"> goto BARF if (!$HR);</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New"> my $RSs = $HR->first_child("RoomStays");</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New"> goto BARF if (!$RSs);</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New"> my $RS = $RSs->first_child("RoomStay");</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New"> goto BARF if (!$RS);</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New"> my $BPI = $RS->first_child("BasicPropertyInfo");</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New"> goto BARF if (!$BPI);</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New"> $HotelCode = $BPI->att("HotelCode");</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New">AFTER:</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New"> } elsif ($message_type =~ /HotelResNotif/) {</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New"> my (@x) = $twig->get_xpath('HotelReservations/HotelReservation/RoomStays/RoomStay/BasicPropertyInfo');</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New"> $HotelCode = $x[0]->att("HotelCode") if ($x[0]);</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV></BODY></HTML>