I\'m signing part of an XML document using the Java XML DSig api. I\'m trying to understand how it is arriving at the Digest value.
My document is:
Following an example at: http://markmail.org/message/tdgioazns7l4yg6d#query:java%20xpath%20xml%20dsig%20bug+page:1+mid:tgw5kr7uscwkcran+state:results, I found that I needed to change the XPathType.Filter.UNION
to XPathType.FILTER.INTERSECT
. That seems to have solved my problem. The XML DSig library is now using the correct value that I expected.