when using REXML as query driver there is a problem when using #to_s on an element returned by an XPath with text() like ./ns:Element/text() since the returned REXML element is of type REXML::Text which does not have a #text method. However, the text value can be returned by using the #value method. So an additional check for the REXML::Text element is needed.
Hi,
when using REXML as query driver there is a problem when using
#to_s
on an element returned by an XPath withtext()
like./ns:Element/text()
since the returned REXML element is of type REXML::Text which does not have a#text
method. However, the text value can be returned by using the#value
method. So an additional check for the REXML::Text element is needed.Best regards, Thomas