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
/usr/lib/ruby/2.3.0/rexml/parsers/baseparser.rb:362:in `pull_event': Declarations can only occur in the doctype declaration. (REXML::ParseException)
Line: 1
Position: 2815
Last 80 unconsumed characters:
<!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd"><en-note><ol><li
from /usr/lib/ruby/2.3.0/rexml/parsers/baseparser.rb:185:in `pull'
from /usr/lib/ruby/2.3.0/rexml/parsers/treeparser.rb:23:in `parse'
from /usr/lib/ruby/2.3.0/rexml/document.rb:288:in `build'
from /usr/lib/ruby/2.3.0/rexml/document.rb:45:in `initialize'
from /var/lib/gems/2.3.0/gems/ever2boost-0.1.5/lib/ever2boost/md_converter.rb:15:in `new'
from /var/lib/gems/2.3.0/gems/ever2boost-0.1.5/lib/ever2boost/md_converter.rb:15:in `convert'
from /var/lib/gems/2.3.0/gems/ever2boost-0.1.5/lib/ever2boost/note.rb:9:in `initialize'
from /var/lib/gems/2.3.0/gems/ever2boost-0.1.5/lib/ever2boost/enex_converter.rb:30:in `new'
from /var/lib/gems/2.3.0/gems/ever2boost-0.1.5/lib/ever2boost/enex_converter.rb:30:in `block in parse_plural_notes'
from /usr/lib/ruby/2.3.0/rexml/parent.rb:40:in `each'
from /usr/lib/ruby/2.3.0/rexml/parent.rb:40:in `each'
from /var/lib/gems/2.3.0/gems/ever2boost-0.1.5/lib/ever2boost/enex_converter.rb:27:in `map'
from /var/lib/gems/2.3.0/gems/ever2boost-0.1.5/lib/ever2boost/enex_converter.rb:27:in `parse_plural_notes'
from /var/lib/gems/2.3.0/gems/ever2boost-0.1.5/lib/ever2boost/enex_converter.rb:9:in `convert'
from /var/lib/gems/2.3.0/gems/ever2boost-0.1.5/lib/ever2boost/cli.rb:26:in `convert'
from /var/lib/gems/2.3.0/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
from /var/lib/gems/2.3.0/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
from /var/lib/gems/2.3.0/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch'
from /var/lib/gems/2.3.0/gems/thor-0.20.0/lib/thor/base.rb:466:in `start'
from /var/lib/gems/2.3.0/gems/ever2boost-0.1.5/exe/ever2boost:4:in `<top (required)>'
from /usr/local/bin/ever2boost:23:in `load'
from /usr/local/bin/ever2boost:23:in `<main>'
Deleting every instance of <!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd"> in the Evernote export will allow the script to run without error.
I exported a notebook containing 52 notes. I had to delete 52 doctypes embedded in CDATA as a result.
Even then, the resulting output was less than ideal. Every note has <?xml version="1.0" encoding="UTF-8" standalone="no"?> still embedded in it. The Evernote formatting was also completely lost.
Overall I think there's a lot of work to be done here to make this migration path viable.
Activity
drkrthj commentedon Dec 30, 2017
same problem under macOS 10.13.2
ever2boost version: 0.1.5
iam-bartl commentedon Feb 12, 2018
same problem. are there any solutions?
narukami894 commentedon Feb 27, 2018
I occured same problem, solved adding some xml options to .enex file like this;
KennyMonster commentedon Mar 7, 2018
Deleting every instance of
<!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd">in the Evernote export will allow the script to run without error.I exported a notebook containing 52 notes. I had to delete 52 doctypes embedded in CDATA as a result.
Even then, the resulting output was less than ideal. Every note has
<?xml version="1.0" encoding="UTF-8" standalone="no"?>still embedded in it. The Evernote formatting was also completely lost.Overall I think there's a lot of work to be done here to make this migration path viable.
muhammad-saleh commentedon Apr 9, 2018
Guys, I've created this:
give it a shot if you want
https://github.com/muhammad-saleh/evernote2boostnote
gaui commentedon Dec 12, 2018
Stupid hack with GNU utility
sed: