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('/abc/@id', doc);

  WriteLn(TP.AsText);

  doc.Destroy;
end.

------

Can anyone offer advise on how to make this work?

Thank you,

Jeremy

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to