reading namespaced attributes with jquery
<p>Given a document like this:</p>

<pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de"&gt;
&lt;body&gt;
    ...
&lt;/body&gt;
</code></pre>

<p>How can I read the <code>xml:lang</code> attribute using jquery?  I can query for elements that have <code>xml:lang</code> like this:</p>

<pre><code>$('[xml\\:lang]')
</code></pre>

<p>but I don't know how to get the attribute itself.  <code>attr('lang')</code> and <code>attr('xml\\:lang')</code> don't work.  I've a jsfiddle showing this <a href="http://jsfiddle.net/paleozogt/HRL7E/" rel="nofollow">here</a>.</p>
