question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PCDATA invalid Char value

See original GitHub issue

Had 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:closed
  • Created 6 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
MasterScratcommented, Jan 23, 2018

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!

0reactions
JccSanabriacommented, Jul 9, 2018

I had the same issue converting pulled data from ldap in json to xml cause of some special characters. Thanks for that recover option!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found