xml-crypto icon indicating copy to clipboard operation
xml-crypto copied to clipboard

Invalid Signature when i add a xmlns:xsi attribute

Open SeniorDev1122 opened this issue 4 years ago • 2 comments

Verify is true when i use this root Element in xml. var xml = builder.create('EnvioDTE', { encoding: 'ISO-8859-1' }) .att('version', '1.0') .att('xmlns', 'http://www.sii.cl/SiiDte')

but not true when i use this root Element in xml var xml = builder.create('EnvioDTE', { encoding: 'ISO-8859-1' }) .att('version', '1.0') .att('xmlns', 'http://www.sii.cl/SiiDte') .att('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance'); .att('xsi:schemaLocation', 'http://www.sii.cl/SiiDteEnvioDTE_v10.xsd');

SeniorDev1122 avatar Feb 17 '21 17:02 SeniorDev1122

can you solve that? I have same problem with SII @IT222222

clucher91 avatar Oct 03 '22 01:10 clucher91

@IT222222 , @clucher91 , we'd welcome a PR with a test suite to address this problem. Please consider contributing to the community by creating one.

cjbarth avatar May 29 '23 21:05 cjbarth