PCDATA invalid Char value
See original GitHub issueHad this issue when running the parser and to solve is just add proper encoding on line 36 if anyone happens to face the same problem:
archive = etree.parse(filePath + "/" + filename,
etree.XMLParser(encoding='utf-8',
ns_clean=True,
recover=True))
should submit a PR?
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
elixir - Xml - PCDATA invalid Char value 2 - Stack Overflow
"PCDATA invalid Char value 2" error in XML file I generate using chrome. I would like to fix it, however I don't understand...
Read more >REST API Explorer - PCDATA invalid Char Value Error
The error message suggests the is an invalid character in the xml document. It's necessary to find the character and replace it. Another...
Read more >PCDATA invalid Char error - WordPress.org
Hello,. I am getting “error on line 16196 at column 11: PCDATA invalid Char value 16” since the last update. Can you help...
Read more >Error on line 84 at column 272: PCDATA invalid Char value 12
Hi, some of the submitted answers to my project show the error message like ''error on line 84 at column 272: PCDATA invalid...
Read more >Error: PCDATA invalid Char value · Issue #5 - GitHub
I got this fail in the .xml, but the config is good. The same config works with other collections, but with posts fails....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok, I guess we have to assume Facebook’s files may contain weird characters then.
I don’t see a better option than using
recover
, I added it in ed4ac96.Thanks for the report!
I had the same issue converting pulled data from ldap in json to xml cause of some special characters. Thanks for that recover option!