<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 2020-09-29, at 14:58, Weiwu Zhang <<a href="mailto:weiwu.zhang@alphawallet.com" class="">weiwu.zhang@alphawallet.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">I'll check the serialisation process instead of looking for clues with canonicalisation as you adviced.<br class=""></div></div></blockquote><div><br class=""></div><div>The serialisation code is all inside the JDK. I don't remember if it's pluggable or not, but I don't think it's really going to be practical for you to develop your own. The real issue is that when the XML file is parsed, the information about things like white space inside tags is <i class="">removed.</i></div><div><br class=""></div><blockquote type="cite" class=""><div class=""><div class="">One argument is you should debug your layout files before signing, but sometimes an elusive bug is reported at the receiving end of a signed XML.<br class=""></div></div></blockquote><div><br class=""></div><div>If all you care about is line numbers, then you may find that just removing newlines from inside tags makes them stable from input to output (modulo the  prelude).</div><div><br class=""></div><blockquote type="cite" class=""><div class=""><div class="">Does this explanation justify this wishlist item for you?<br class=""></div></div></blockquote><div><br class=""></div><div>I understand why you want it for <i class="">your</i><span style="font-style: normal;" class=""> use case and you should feel free to open a JIRA issue</span>. I have to reiterate, though, that given that this sounds like a very non-trivial piece of development, we're not likely to ever address this issue in xmlsectool unless it turns out to matter to our consortium members, i.e., the people who actually fund development.</div><div><br class=""></div></div><div class=""><span class="Apple-style-span" style="border-collapse: separate; font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; line-height: normal; border-spacing: 0px; -webkit-text-decorations-in-effect: none;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div class="">    -- Ian<br class=""></div><div class=""><br class=""></div></span></div></span></div><div class=""><br class="webkit-block-placeholder"></div></body></html>