> Looking at my document with kdiff3, I can see that only one line is
> different:
And there are no whitespace differences?
> The code for write out/read in is the following, although it should not
> matter:
>
> <write out>
> File file = new File(filename);
> FileOutputStream f = new FileOutputStream(file);
> TransformerFactory factory = TransformerFactory.newInstance();
> Transformer transformer = factory.newTransformer();
> transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION,
> "yes");
> transformer.setOutputProperty("indent", "yes");
Ummm....I'd say that's your problem right there. You can't pretty print signed
XML, not unless you print it first, parse it back in, then sign it.
-- Scott