lonekorean / wordpress-export-to-markdown

Converts a WordPress export XML file into Markdown files.
MIT License
1.09k stars 222 forks source link

One more error... #22

Closed kapsoft closed 4 years ago

kapsoft commented 4 years ago

Sorry for the trouble. Thx for last quick update. I upgraded node.

Now I'm getting a new error:

Parsing...

Something went wrong, execution halted early. Error: Inappropriately located doctype declaration Line: 3876 Column: 14 Char: E at error (/Users/kapsoft/Deanonsoftware/wordpress-export-to-markdown/node_modules/sax/lib/sax.js:651:10) at strictFail (/Users/kapsoft/Deanonsoftware/wordpress-export-to-markdown/node_modules/sax/lib/sax.js:677:7) at SAXParser.write (/Users/kapsoft/Deanonsoftware/wordpress-export-to-markdown/node_modules/sax/lib/sax.js:1104:15) at Parser.exports.Parser.Parser.parseString (/Users/kapsoft/Deanonsoftware/wordpress-export-to-markdown/node_modules/xml2js/lib/parser.js:325:31) at /Users/kapsoft/Deanonsoftware/wordpress-export-to-markdown/node_modules/xml2js/lib/parser.js:5:59 at internal/util.js:278:30 at new Promise () at internal/util.js:277:12 at Parser.exports.Parser.Parser.parseStringPromise (/Users/kapsoft/Deanonsoftware/wordpress-export-to-markdown/node_modules/xml2js/lib/parser.js:338:41) at Parser.parseStringPromise (/Users/kapsoft/Deanonsoftware/wordpress-export-to-markdown/node_modules/xml2js/lib/parser.js:5:59)

DJK

lonekorean commented 4 years ago

This is an error from the 3rd party parsing package that my script uses internally. I would check that location (line 3876 column 14) and see if your export XML looks funky there.

It's hard for me to diagnose any further without seeing the export file you're using. If it doesn't contain sensitive information and you're ok with me seeing it, you can email it to me directly and I can take a look.

kapsoft commented 4 years ago

I looked at one of ur closed posts and took a suggestion to run it through the XML validator. Not valid.

This is produced through wordpress "all" on export. Not much control over that.

I will send over....

thx

DJK