How to produce XML signature with no whitespaces and line-breaks in Java?

前端 未结 8 1573
情话喂你
情话喂你 2020-12-17 00:51

I work with the brazilian \"Nota Fiscal Eletronica\" project, in which they define a standart way to sign XML documents.

Recently, they started to require that there

8条回答
  •  执笔经年
    2020-12-17 01:36

    You can try:

    System.setProperty("org.apache.xml.security.ignoreLineBreaks", "true");
    

提交回复
热议问题