[fpc-pascal] XPath Problem?
Jeremy Cowgar
jeremy at cowgar.com
Mon Oct 2 20:55:53 CEST 2006
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
More information about the fpc-pascal
mailing list