There are many Hebrew resources available in the mainstream world, i.e. Webster's, Google, etc.  Is the Hebrew used in the Tanakh/(other recognized Hebrew books, i.e. the Mishna, Rambam, etc.) considered to have the same vocab (word definitions, not necessarily grammar etc.) as what is commonly referred to as Hebrew nowadays? It is my understanding that it is, i.e. any English-Hebrew dictionary could be consulted to translate the texts for an English speaker, but how could this be verified? Is there some sort of official Rabbinical concordance of Hebrew?


Question: Jsoup can't read xml return file
Answer: Jsoup's primary focus is in dealing with HTML, and making sure that the returned document is well formed HTML. So by default it will always treat the input as HTML and will normalise the document. That's why you're getting a DOM like &lt;html&gt;&lt;head&gt;&lt;/head&gt;...&lt;xml&gt;...&lt;/html&gt;.

If you know the input you're giving it is actually XML, you can configure Jsoup to parse in XML mode. In that case it will not normalise to a HTML DOM, and it will not enforce any HTML spec rules.

As an example:

String url = "http://www.omdbapi.com/?i=tt1285016&amp;r=xml";
Document doc = Jsoup.connect(url)
    .parser(Parser.xmlParser())
    .get();

System.out.println(doc);


Compare that output with and without the Parser.xmlParser() configuration:

In XML mode:

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;root response="True"&gt;
 &lt;movie title="The Social Network" year="2010" {snip} /&gt;
&lt;/root&gt;


In HTML mode:

&lt;!--?xml version="1.0" encoding="UTF-8"?--&gt;
&lt;html&gt;
 &lt;head&gt;&lt;/head&gt;
 &lt;body&gt;
  &lt;root response="True"&gt;
   &lt;movie title="The Social Network" {snip} /&gt;
  &lt;/root&gt;
 &lt;/body&gt;
&lt;/html&gt;