Converting Catch CSV to Catch XML so Clevernote import works

16 views
Skip to first unread message

glen...@gmail.com

unread,
Feb 22, 2014, 9:48:49 AM2/22/14
to cleve...@googlegroups.com
Howdy,

I missed the Catch.com export window to generate an XML export. However, I am pretty good at slinging Perl. Obviously, you folks know the import XML format. If you can share the XML format specification, I'd be willing to try generating a converter, put it up on my persomal web site as a service or even donate it to Clevernote to host.

Thanks in advance,
Rick

sup...@clevernote.co

unread,
Feb 23, 2014, 11:55:09 PM2/23/14
to cleve...@googlegroups.com
Here is a simple XML file you can use as a template

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE en-export SYSTEM "http://xml.evernote.com/pub/evernote-export2.dtd">
<en-export export-date="20130625T235108Z" application="Catch" version="">
   <note>
      <title>Thanks for creating an account o...</title>
      <content><![CDATA[<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd"><en-note style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Thanks for creating an account on Catch.com!</div><div><br/></div><div>Tags are labels for your notes. Type # followed by a keyword to make a new tag, for example:  #todo #work #recipe #music #shopping</div><div><br/></div><div>Spaces are private or collaborative places to collect related things, similar to folders or notebooks.</div><div><br/></div><div>You can invite friends or coworkers to share your spaces, but the My Ideas space is always 100% private and cannot be shared.</div><div><br/></div><div>You can keep your notes with you wherever you go by using our Android or iOS apps.  Just sign all your devices into the same account and they will automatically "sync" your notes.</div></en-note>]]></content>
      <created>20120921T062610Z</created>
      <updated>20120921T062610Z</updated>
      <note-attributes>
         <author>memyselfi</author>
      </note-attributes>
   </note>
</en-export>

This is loosely based on the more detailed DTD at http://xml.evernote.com/pub/evernote-export3.dtd

Catch.com cut a corner with their export by not explicitly exporting tags. So, provided your enex file specifies 'application="Catch"', we will try to parse any #words into tags. If you're writing your own CSV->Enex converter, you might want to consider doing your own tagging and include the appropriate <tag> elements nested within each <note> element.


We are currently working on our web site in preparation for Beta 3, so would be happy to host your perl script in a user-contributions section.

kind regards
Lyn
Reply all
Reply to author
Forward
0 new messages