Jump to content

Welcome! You're currently a Guest.

If you'd like to join in the Discussion, or access additional features in our forums, please sign in with your Evernote Account here. Have an Evernote Account but forgot your password? Reset it! Don't have an account yet? Create One! You'll need to set your Display Name before your first post.

Photo

ENML format validation

enml

  • Please log in to reply
6 replies to this topic

#1 David Chevenement

David Chevenement

  • Pip
  • Title: Member
  • Group: Members
  • 47 posts

Posted 12 June 2012 - 03:16 PM

Dear Evernote team

We're currently doing some try and research using your API to export Beesy's notes to Evernote.

What we do is use the Beesy HTML export format to generate ENML for Evernote.
It's going quite OK except that we have some question regarding the ENML format validation scheme on you side.

Indeed, when using HTML, we did used standard and widely available HTML tags such as BR, B, TABLE and things like that.
We tend to use upper case strings in our code to distinguish HTML tags from the actual message we display.
Unfortunately, it looks like your ENML validation is waiting for lower case strings as ENML valid tags.

Could you confirm this is the case ?

If this is so, you should update the ENML page for valid tags and put lower case tags instead of upper case ones.

Thanks for your help,

Kind regards,
David

#2 AndyDent

AndyDent

  • PipPipPip
  • Title: Bushwhacker
  • Group: Members
  • 129 posts

Posted 12 June 2012 - 03:25 PM

Yes, that's a good suggestion, the uppercase tags on that page are a bit misleading.

As the ENML page says: ENML is formally defined in http://xml.evernote.com/pub/enml2.dtd which as you point out, uses lowercase tags.

#3 David Chevenement

David Chevenement

  • Pip
  • Title: Member
  • Group: Members
  • 47 posts

Posted 12 June 2012 - 03:52 PM

Thanks Andy.
Sure, that what we thought by having a look at it, but we weren't sure if there was any typo conversion in the process.
This should be stressed out in the docs as currently it's UPPER CASE mentioned :)

Anyhow, it's just a matter of not loosing time trying to discover how things are done behind the scene. :)

Also, it should be mentioned that you MUST close any OPENING TAG with a CLOSING TAG.
not so obvious when you're used to implement <BR> and <HR> for instance.

I just thought we might share the info if it can help some others and maybe update the doc on ENML.

#4 jefito

jefito

  • Title: Evernote Evangelist
  • Group: Evernote Evangelist
  • 8,143 posts

Posted 12 June 2012 - 04:11 PM

Also, it should be mentioned that you MUST close any OPENING TAG with a CLOSING TAG. not so obvious when you're used to implement <BR> and <HR> for instance.

ENML, being based on XHTML, rather than HTML, required tags to be closed.
~Jeff
EVERNOTE: Getting Started | Support Page | Knowledge Base | Support Requests
If someone helped you, or you like or agree with someone's post, let them (and us) know by clicking their post's "Like" button.

#5 David Chevenement

David Chevenement

  • Pip
  • Title: Member
  • Group: Members
  • 47 posts

Posted 12 June 2012 - 04:26 PM

Thanks Jeff for this precision.
No pb, just thought that we should share our early mistakes with XHTML validation and how it could differ from HTML for those of us less familiar with the first one. :)

Thanks to both of you for clearing this out anyhow.

David

#6 SethH

SethH

  • Title: Evernote Employee
  • Group: Evernote Employee
  • 683 posts

Posted 12 June 2012 - 05:04 PM

David, thanks for the feedback. I updated the capitalization in the list of permitted and prohibited items on the ENML page, and added a couple of notes at the top of the page. As the others have said, because ENML is based on XHTML, it's much more strict than, say, the HTML accepted by a browser.

#7 David Chevenement

David Chevenement

  • Pip
  • Title: Member
  • Group: Members
  • 47 posts

Posted 13 June 2012 - 08:07 AM

thank you for that, I was not that familiar with XHTML so spent some time with the validation process when posting notes.
Just thought might be worth sharing, thanks for the info and the update

David





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

Clip to Evernote