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
You can try:
System.setProperty("org.apache.xml.security.ignoreLineBreaks", "true");