[jQuery] Re: how to parse tags with the name of ?</span></a></span> </h1> <p class="darkgray font13"> <span class="sender pipe"><a href="/search?l=jquery-en@googlegroups.com&q=from:%22AlexC%22" rel="nofollow"><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">AlexC</span></span></a></span> <span class="date"><a href="/search?l=jquery-en@googlegroups.com&q=date:20081104" rel="nofollow">Tue, 04 Nov 2008 09:00:59 -0800</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <pre> Sure - the steps I did are ... I'm following the tutorial at : <a rel="nofollow" href="http://www.webmonkey.com/tutorial/Easy_XML_Consumption_using_jQuery?oldid=20032">http://www.webmonkey.com/tutorial/Easy_XML_Consumption_using_jQuery?oldid=20032</a></pre><pre> Firstly without any modifications the tutorial works as expected, no probs... 1 - download and unzip the 'Example_Files.zip' file from the Getting Started section of the tutorial. 2 - open the 'students.xml' file and change every tag name of <name> to <title> 3 - change the readXML.js file on lines 17 and 21 so they are looking for "title" rather than "name" ie .. studentName = $(this).find("title").text(); and studentPost = $(this).find("title").attr("post"); When I run it, it doesn't 'find' the students name (now with a tag of title) from the xml file. Rgds, Alex </pre> </div> <div class="msgButtons margintopdouble"> <ul class="overflow"> <li class="msgButtonItems"><a class="button buttonleft " accesskey="p" href="msg50449.html">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="index.html#50463">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="maillist.html#50463">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg50521.html">Next message</a></li> </ul> </div> <a name="tslice"></a> <div class="tSliceList margintopdouble"> <ul class="icons monospace"> <li class="icons-email"><span class="subject"><a href="msg50520.html">[jQuery] how to parse tags with the name of <title> ?</a></span> <span class="sender italic">AlexC</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg50419.html">[jQuery] Re: how to parse tags with the name of <tit...</a></span> <span class="sender italic">Klaus Hartl</span></li> <li class="icons-email"><span class="subject"><a href="msg50449.html">[jQuery] Re: how to parse tags with the name of <tit...</a></span> <span class="sender italic">Ariel Flesler</span></li> <li><ul> <li class="icons-email tSliceCur"><span class="subject">[jQuery] Re: how to parse tags with the name of <...</span> <span class="sender italic">AlexC</span></li> </ul> </ul> </ul> </div> <div class="overflow msgActions margintopdouble"> <div class="msgReply" > <h2> Reply via email to </h2> <form method="POST" action="/mailto.php"> <input type="hidden" name="subject" value="[jQuery] Re: how to parse tags with the name of <title> ?"> <input type="hidden" name="msgid" value="8c0386a4-0e87-414b-8e1c-e3706976c57f@v16g2000prc.googlegroups.com"> <input type="hidden" name="relpath" value="jquery-en@googlegroups.com/msg50463.html"> <input type="submit" value=" AlexC "> </form> </div> </div> </div> <div class="aside" role="complementary"> <div class="logo"> <a href="/"><img src="/logo.png" width=247 height=88 alt="The Mail Archive"></a> </div> <form class="overflow" action="/search" method="get"> <input type="hidden" name="l" value="jquery-en@googlegroups.com"> <label class="hidden" for="q">Search the site</label> <input class="submittext" type="text" id="q" name="q" placeholder="Search jquery-en"> <input class="submitbutton" name="submit" type="image" src="/submit.png" alt="Submit"> </form> <div class="nav margintop" id="nav" role="navigation"> <ul class="icons font16"> <li class="icons-home"><a href="/">The Mail Archive home</a></li> <li class="icons-list"><a href="/jquery-en@googlegroups.com/">jquery-en - all messages</a></li> <li class="icons-about"><a href="/jquery-en@googlegroups.com/info.html">jquery-en - about the list</a></li> <li class="icons-expand"><a href="/search?l=jquery-en@googlegroups.com&q=subject:%22%5C%5BjQuery%5C%5D+Re%5C%3A+how+to+parse+tags+with+the+name+of+%3Ctitle%3E+%5C%3F%22&o=newest&f=1" title="e" id="e">Expand</a></li> <li class="icons-prev"><a href="msg50449.html" title="p">Previous message</a></li> <li class="icons-next"><a href="msg50521.html" title="n">Next message</a></li> </ul> </div> <div class="listlogo margintopdouble"> <a href="#"><img src="/jquery-en@googlegroups.com/logo.png" alt="jquery-en"></a> </div> <div class="margintopdouble"> </div> </div> </div> <div class="footer" role="contentinfo"> <ul> <li><a href="/">The Mail Archive home</a></li> <li><a href="/faq.html#newlist">Add your mailing list</a></li> <li><a href="/faq.html">FAQ</a></li> <li><a href="/faq.html#support">Support</a></li> <li><a href="/faq.html#privacy">Privacy</a></li> <li class="darkgray">8c0386a4-0e87-414b-8e1c-e3706976c57f@v16g2000prc.googlegroups.com</li> </ul> </div> </body> </html>