node-saml / xml-crypto

Xml digital signature and encryption library for Node.js
MIT License
198 stars 173 forks source link

Invalid Signature when i add a xmlns:xsi attribute #222

Open SeniorDev1122 opened 3 years ago

SeniorDev1122 commented 3 years ago

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');

clucher91 commented 2 years ago

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

cjbarth commented 1 year ago

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