You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?xml version="1.0" encoding="UTF-8"?>
<!--
XML Security Library example: Original XML doc file for enc example.
-->
<Envelope>
<Data>Hello, World!</Data>
</Envelope>
When running the snippet above, I get:
Traceback (most recent call last):
File "encrypt.py", line 30, in <module>
enc_data = enc_ctx.encrypt_xml(enc_data, data)
File "src\lxml\public-api.pxi", line 29, in lxml.etree.elementFactory
File "src\lxml\etree.pyx", line 1629, in lxml.etree._elementFactory
File "src\lxml\classlookup.pxi", line 405, in lxml.etree._parser_class_lookup
File "src\lxml\classlookup.pxi", line 257, in lxml.etree._callLookupFallback
File "src\lxml\classlookup.pxi", line 336, in lxml.etree._lookupDefaultElementClass
AssertionError: Unknown node type: 3
For the second case, when modifying the xml content to:
<?xml version="1.0" encoding="UTF-8"?>
<!--
XML Security Library example: Original XML doc file for enc example.
-->
<Envelope>
<Data>
<Data2>Hello, World!</Data2>
</Data>
</Envelope>
I get a crash with no Traceback, eg the print statement at the end of the snippet is never even executed.
The text was updated successfully, but these errors were encountered:
Hello,
When trying out the "Encrypt" example found in:
https://xmlsec.readthedocs.io/en/stable/examples.html,
I get two errors, both using
xmlsec.constants.TypeEncContent
, eg with:enc1-doc.xml
are as found in https://github.com/xmlsec/python-xmlsec/tree/master/doc/source/examples:When running the snippet above, I get:
I get a crash with no Traceback, eg the print statement at the end of the snippet is never even executed.
The text was updated successfully, but these errors were encountered: