[jQuery] Don't quite get how to read XML document with $.get

[jQuery] Don't quite get how to read XML document with $.get

<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1255">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Calibri;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
text-align:right;
direction:rtl;
unicode-bidi:embed;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
pre
{margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
@page Section1
{size:595.3pt 841.9pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1 dir=RTL>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Hey
all,<o:p></o:p></span></font>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>I
Don't quite get how to use the XML document I fetch.<o:p></o:p></span></font>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>This
is the document I receive:<o:p></o:p></span></font>
<pre dir=LTR style='margin-left:36.0pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt'><JP c="8"><o:p></o:p></span></font></pre><pre
dir=LTR style='margin-left:36.0pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt'><j i="6" s="313465.531" d="0.0255" /><o:p></o:p></span></font></pre><pre
dir=LTR style='margin-left:36.0pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt'><j i="2" s="228106.59" d="0" /><o:p></o:p></span></font></pre><pre
dir=LTR style='margin-left:36.0pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt'><j i="110" s="113130.88" d="0" /><o:p></o:p></span></font></pre><pre
dir=LTR style='margin-left:36.0pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt'><j i="5" s="61749.584" d="0.012" /><o:p></o:p></span></font></pre><pre
dir=LTR style='margin-left:36.0pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt'><j i="3" s="37816.89" d="0" /><o:p></o:p></span></font></pre><pre
dir=LTR style='margin-left:36.0pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt'><j i="115" s="23914.95" d="0" /><o:p></o:p></span></font></pre><pre
dir=LTR style='margin-left:36.0pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt'><j i="4" s="9285.11" d="0" /><o:p></o:p></span></font></pre><pre
dir=LTR style='margin-left:36.0pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt'><j i="100" s="6979.64" d="0" /><o:p></o:p></span></font></pre><pre
dir=LTR style='margin-left:36.0pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt'></JP><o:p></o:p></span></font></pre>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>I
need to do a <b><span style='font-weight:bold'>for ( )</span></b> loop for each
of the <b><span style='font-weight:bold'>j</span></b>s in the <b><span
style='font-weight:bold'>JP</span></b> tag,<o:p></o:p></span></font>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>But
I don't understand how to make JQ to get what ever I need.<o:p></o:p></span></font>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></font>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>This
is the JS code:<o:p></o:p></span></font>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>           
$.post("get_.php",{'get':jpAddr},function (xml) {<o:p></o:p></span></font>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>           
            var
text=xml;</span></font><font size=2 face=Arial><span lang=HE dir=RTL
style='font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><span dir=LTR></span><font size=2 face=Arial><span style='font-size:
10.0pt;font-family:Arial'><span dir=LTR></span>           
           
$("#TopJackpots").html(text);</span></font><font size=2 face=Arial><span
lang=HE dir=RTL style='font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><span dir=LTR></span><font size=2 face=Arial><span style='font-size:
10.0pt;font-family:Arial'><span dir=LTR></span>           
            $("#TopJackpots").append(
html.DIV({'class':'normal'},$(xml).find("JP").get(0)) );</span></font><font
size=2 face=Arial><span lang=HE dir=RTL style='font-size:10.0pt;font-family:
Arial'><o:p></o:p></span></font>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><span dir=LTR></span><font size=2 face=Arial><span style='font-size:
10.0pt;font-family:Arial'><span dir=LTR></span>           
});</span></font><font size=2 face=Arial><span lang=HE dir=RTL
style='font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>As
you can see I've tried to use $(xml) and also tried xml.JP.j.s()<o:p></o:p></span></font>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>I
need to get the attributes of each <b><span style='font-weight:bold'>j</span></b>
and set them to some var.<o:p></o:p></span></font>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></font>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Thanks
for the help guys. <o:p></o:p></span></font>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><span dir=RTL></span><font size=2 color=navy face=Arial><span lang=HE
dir=RTL style='font-size:10.0pt;font-family:Arial;color:navy'><span dir=RTL></span> </span></font><span
lang=HE dir=RTL><o:p></o:p></span>
<div class=MsoNormal align=center dir=LTR style='text-align:center;direction:
ltr;unicode-bidi:embed'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>
<hr size=2 width="80%" align=center>
</span></font></div>
<div align=left dir=ltr>
<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width="100%"
style='width:100.0%;border-collapse:collapse'>
<tr>
<td width="35%" style='width:35.0%;padding:0cm 0cm 0cm 0cm'>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=1 color="#333333" face=Arial><span style='font-size:8.0pt;
font-family:Arial;color:#333333'>Best Regards,
Eli Sklar, <a href="http://www.k.co.il/" title="http://www.k.co.il/">www.K.co.il</a>
professional SEO<U5:P></U5:P></span></font><font color=black><span
style='color:black'><o:p></o:p></span></font>
</td>
<td style='padding:0cm 0cm 0cm 0cm'>
<p class=MsoNormal align=center dir=LTR style='text-align:center;direction:
ltr;unicode-bidi:embed'><font size=1 color="#333333" face=Arial><span
style='font-size:8.0pt;font-family:Arial;color:#333333'>050-225-3040 -
03-6500000
<a href="mailto:Eli@k.co.il" title="mailto:Eli@k.co.il">Eli@k.co.il</a><U5:P></U5:P></span></font><font
color=black><span style='color:black'><o:p></o:p></span></font>
</td>
<td width="35%" style='width:35.0%;padding:0cm 0cm 0cm 0cm'>
<p class=MsoNormal dir=RTL><font size=1 color="#333333" face=Arial><span
lang=HE style='font-size:8.0pt;font-family:Arial;color:#333333'>בברכה,
אלי סקלאר, <a href="http://www.k.co.il/" title="http://www.k.co.il/"><span
lang=EN-US dir=LTR><span title="http://www.k.co.il/">www.K.co.il</span></span></a><span
dir=RTL></span><span dir=RTL></span> קידום אתרים מקצועי</span></font><font
color=black><span dir=LTR style='color:black'><U5:P></U5:P><o:p></o:p></span></font>
</td>
</tr>
</table>
</div>
<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=3 face=Calibri><span style='font-size:12.0pt;font-family:
Calibri'><U5:P> </U5:P></span></font><font color=black><span
style='color:black'><o:p></o:p></span></font>
<p class=MsoNormal dir=RTL><font size=2 color=navy face=Arial><span dir=LTR
style='font-size:10.0pt;font-family:Arial;color:navy'><U5:P> </U5:P></span></font><span
dir=LTR><o:p></o:p></span>
<p class=MsoNormal dir=RTL><font size=3 face="Times New Roman"><span dir=LTR
style='font-size:12.0pt'><o:p> </o:p></span></font>
<p class=MsoNormal dir=RTL><font size=2 face=Arial><span dir=LTR
style='font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></font>
</div>
</body>
</html>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/