<br>Whenever I try to use EvaluateXPathExpression, I wind up with a SIGSEGV. I have done my homework and there is a similar report from 2007, [<a href="http://community.freepascal.org:10000/bboards/message?message_id=242871&forum_id=24082">http://community.freepascal.org:10000/bboards/message?message_id=242871&forum_id=24082</a><br>
<br>Are there some examples of its use out there? Googling has not shown any.<br>I don't mind some other libraries if they are more uptodate. The dates in the xpath source go back to 2003, but I can't be sure if there have been some updates over the years.<br>
<br>procedure TutilitiesInterfaceForm.btnTestXPathClick(Sender: TObject);<br>var<br> XML: TXMLDocument;<br> pathString: string;<br> xpathValue: TXPathVariable;<br> strStream: TStringStream;<br>begin<br> strStream := TStringStream.Create(mmoXML.Text);<br>
ReadXMLFile(XML, strStream);<br> pathString := edtXPath.Text;<br> //xpathValue := TXPathVariable.Create;<br> xpathValue := EvaluateXPathExpression(pathString, XML);<br> edtXPathResult.Text := xpathValue.AsText;<br>end; <br>
<br clear="all"><br>-- <br>Frank Church<br><br>=======================<br><a href="http://devblog.brahmancreations.com">http://devblog.brahmancreations.com</a><br>