[xmlsec] Can't get XPath to work
Hans-Juergen.Heinrich@de.gi-de.com
Hans-Juergen.Heinrich@de.gi-de.com
Wed, 5 Jun 2002 16:04:44 +0200
Hi,
Although there was already a recommendation on how to use
XPath, I can't get it to work in xmlsec.
I have the following XML-file:
<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<Letter>
Hello, World!
<Info>
<!-- Commentary -->
<Data1> Some data </Data1>
<Data2> More data </Data2>
</Info>
</Letter>
I create a reference node like this (assuming I only want to sign
the <Data1> node and its contents):
referenceNode =3D xmlSecSignedInfoAddReference(signedInfoNode,
"my-reference",
"<XPath> ancestor-or-self::Data1 </XPath>",
NULL);
This corresponds to the recommendation in one of the mails in the list.=
However, I always end up with:
warning: failed to load external entity "<XPath> ancestor-or-self::Data=
1
</XPath
>"
Error: signature failed
Any idea what's wrong?
Help appreciated
Hans-Juergen
----------------------------------
Dr. Hans-J=FCrgen Heinrich
System engineer, 4TE3
Giesecke & Devrient GmbH, Truderinger Stra=DFe 15, D-81607 M=FCnchen
Phone: +49 89 4119-2625, FAX: +49 89 4119-1629
mailto:hans-juergen.heinrich@de.gi-de.com
http://www.gieseckedevrient.com=