> Hello Raul, > >> I supose that the original document has the PI, right?. > No, I don't have any additional PIs except this one: > > <?xml-stylesheet type="text/xsl" href="http://www.setcce.org"?> > > I've attached XML file with my previous post. > > Best regards, > Milan > > >
Ok, The error seems to be that as the PI is the first element before the document a leading #0A must be emited(in the example you send it isn't) <cite> # Processing Instruction (PI) Nodes- The opening PI symbol (<?), the PI target name of the node, a leading space and the string value if it is not empty, and the closing PI symbol (?>). If the string value is empty, then the leading space is not added. Also, a trailing #xA is rendered after the closing PI symbol for PI children of the root node with a lesser document order than the document element, and a leading #xA is rendered before the opening PI symbol of PI children of the root node with a greater document order than the document element. </cite> The code in CVS of c14n in java and c++ looks good enouth. So I need to know what version of the Java library are you using, and it will be good to have the code that generated the signature(Better just the DOM instractions). Thanks, Raul
