I've also run into some problems with rexml/xpath.<br><br>Some one should track down what it is about your html page that is causing Rexml problems and then submit a bug report to the rexml project. When you get an Rexml bug number, it would hurt to include in a Jira/Watir bug report as well.
<br><br>My sense is that that using Rexml to parse tidied html is outlying use case for Rexml and that is why we are seeing these problems. I think the Rexml team will fix them, but they need to be isolated and reported.<br>
<br>Bret<br><br><div><span class="gmail_quote">On 6/30/06, <b class="gmail_sendername">NIcky Sandhu</b> <<a href="mailto:NSandhu@raleys.com">NSandhu@raleys.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div>
<div>
<div>
<div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2">>> require
'rexml/rexml'<br>require 'rexml/rexml'<br>=> true<br>>> print
REXML::Version<br>print REXML::Version<br>3.1.4=> nil<br>>>
</font></div><br>
<div dir="ltr" align="left" lang="en-us">
</div></div></div><div><span class="q">
<div> </div>
<div style="font-size: 7pt; color: gray; font-family: verdana;">
<font color="gray" size="1"><em>Warning: this e-mail may contain information proprietary to Raley's and is intended only for the use of the intended recipients. If the reader of this message is not an intended recipient, you are hereby notified that you have received this message in error and that any review, dissemination, distribution or copying of this message is strictly prohibited. If you have received this message in error, please notify the sender immediately.
</em></font><br></div>
</span></div><div><div style="font-size: 7pt; color: gray; font-family: verdana;"><br><div dir="ltr" align="left" lang="en-us"><hr></div><br><br><div dir="ltr" align="left" lang="en-us">
<font face="Tahoma" size="2"><b>From:</b> <a href="mailto:wtr-general-bounces@rubyforge.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">wtr-general-bounces@rubyforge.org</a>
[mailto:<a href="mailto:wtr-general-bounces@rubyforge.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">wtr-general-bounces@rubyforge.org</a>] <b>On Behalf Of </b>Angrez
Singh<br><b>Sent:</b> Thursday, June 29, 2006 8:08 PM<br><b>To:</b>
<a href="mailto:wtr-general@rubyforge.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">wtr-general@rubyforge.org</a><br><b>Subject:</b> Re: [Wtr-general] xpath
error<br></font><br></div></div><div><span class="q">
<div></div>Hi,<br><br>Are you using latest version of REXML i.e. 3.1.4 ? If not
install latest version of REXML and try XPath
again.<br><br>Regards,<br>Angrez<br><br>
<div><span class="gmail_quote">On 6/29/06, <b class="gmail_sendername">NIcky
Sandhu</b> <<a href="mailto:NSandhu@raleys.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">NSandhu@raleys.com</a>>
wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div>
<div>
<div>
<div>
<div><font face="Arial" size="2"><span>I got an error using the xpath feature with
watir 1.5.1.1045. </span></font></div>
<div><font face="Arial" size="2"><span>>>
ie.link(:xpath,'//a[contains(string(.),"Search
Now")]').click</span></font></div>
<div><font face="Arial" size="2"><span></span></font> </div>
<div><font face="Arial" size="2"><span>I have attached the error document and the
stack trace below.</span></font></div>
<div><font face="Arial" size="2"><span>The document seems to be valid xml and
other xpath tools work fine</span></font></div>
<div><font face="Arial" size="2"><span>REXML::ParseException:
#<Iconv::IllegalSequence: <<< see attached error.xml
>></span></font></div>
<div><font face="Arial" size="2"><span>....</span></font></div></div></div></div></div></div><br clear="all"></blockquote></div><br></span></div><div></div>
</div>
</div></div>
</div><br>_______________________________________________<br>Wtr-general mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Wtr-general@rubyforge.org">Wtr-general@rubyforge.org</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://rubyforge.org/mailman/listinfo/wtr-general" target="_blank">http://rubyforge.org/mailman/listinfo/wtr-general</a><br><br></blockquote></div><br>