Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2006-10

XPath Problem?

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Jeremy Cowgar

Hello, I am trying to use the xpath unit... I am getting an

An unhandled exception occurred at $000E4268 :
EAccessViolation : Access violation
$000E4268

Via gdb, I can see the place it's happening is xpath.pp:2470. Here is my simple test program:

program xpathtest;
uses dom, xpath;
var
   doc : TXMLDocument;
   root : TDOMElement;
   TP : TXPathVariable;
begin
   doc := TXMLDocument.Create;
   root := doc.CreateElement('abc');
   root.SetAttribute('id', '10');
   doc.AppendChild(root);
   TP := EvaluateXPathExpression('', doc);
   WriteLn(TP.AsText);
   doc.Destroy;
end.

------

Can anyone offer advise on how to make this work?

Thank you,

Jeremy