pvdlg / enml4j Goto Github PK
View Code? Open in Web Editor NEWSimple utility to handle ENML (Evernote Markup Language) in Java.
Simple utility to handle ENML (Evernote Markup Language) in Java.
I am testing this component, it runs OK in the demo app. But once I put into webapp, I am keeping on getting this error:
java.lang.RuntimeException: [was class java.net.SocketTimeoutException] Timeout while fetching: http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent
at org.codehaus.stax2.ri.Stax2EventReaderImpl.throwUnchecked(Stax2EventReaderImpl.java:470)
at org.codehaus.stax2.ri.Stax2EventReaderImpl.next(Stax2EventReaderImpl.java:262)
at com.syncthemall.enml4j.ENMLProcessor.noteToHTML(ENMLProcessor.java:732)
at com.syncthemall.enml4j.ENMLProcessor.noteToHTML(ENMLProcessor.java:385)
Any idea to disable the resolver?
Thanks
In converting Notes to HTML, I noticed that any non-breaking spaces ( ), and just spaces that appear inline (as below) are converted to a question mark (?). Is that by design, or is there some way around it? Thanks!
Sample Input Note (notice the space after "Some"):
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd">
<en-note><div>Some <span><span style="font-size: 14pt;">Text</span></span></div></en-note>
Output (notice the "?" after "Some" and before "Text"):
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"></meta>
<meta content="ENML4J 1.1.0" name="exporter-version"></meta>
<meta content="0.000000" name="altitude"></meta>
<meta content="evernote127" name="author"></meta>
<meta content="Tue Sep 09 17:36:14 MDT 2014" name="created"></meta>
<meta content="0.000000" name="latitude"></meta>
<meta content="0.000000" name="longitude"></meta>
<meta content="Tue Sep 09 17:36:36 MDT 2014" name="updated"></meta>
<title>Non Breaking Space</title>
</head>
<body>
<div>Some?<span><span style="font-size: 14pt;">?Text</span></span></div>
</body>
</html>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.