jquery – problems in locating elements bearing prefixes



hi there,

Pls help me with my issue-

I am not able to search an XML element as and when it holds a prefix.

For instance-

Here’s one instance from the jQuery.parseXML() page.

The just disparity amid the instance and the code underneath is that I've deployed the element as an alternative of . </p> <p>Though no errors in the browser, however I no results added on to #someElement.</p> <p>Whats missing here??</p> <p>Please help</p> <p>Thanks much!</p> <p><div class="geshifilter"><pre class="text geshifilter-text" style="font-family:monospace;"><!DOCTYPE html> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> </head> <body> <p id="someElement"></p> <p id="anotherElement"></p> <script> var xml = "<rss version='2.0' xmlns:foo='http://foobar.com'><channel>" + "<foo:title>RSS Title</foo:title></channel></rss>", xmlDoc = $.parseXML( xml ), $xml = $( xmlDoc ), $title = $xml.find( "title" ); /* append "RSS Title" to #someElement */ $( "#someElement" ).append( $title.text() ); /* change the title to "XML Title" */ $title.text( "XML Title" ); /* append "XML Title" to #anotherElement */ $( "#anotherElement" ).append( $title.text() ); </script> </body> </html></pre></div></p> </div> <div class="links"> <img style="width:30px;" src="files/default.gif" /> 39 weeks 3 days ago <a href="/taxonomy/term/"></a>   Tags: <ul class="links inline"><li class="first taxonomy_term_579"><a href="/element" rel="tag" title="" class="taxonomy_term_579">element</a></li> <li class="taxonomy_term_260"><a href="/jquery" rel="tag" title="" class="taxonomy_term_260">Jquery</a></li> <li class="taxonomy_term_984"><a href="/prefix" rel="tag" title="" class="taxonomy_term_984">prefix</a></li> <li class="last taxonomy_term_256"><a href="/taxonomy/term/256" rel="tag" title="" class="taxonomy_term_256">Search</a></li> </ul> <ul class="links inline"><li class="first last login_register"><span class="login_register"><a href="/user/login?destination=node/46937%2523nodecomment_form">login</a> or <a href="/user/register?destination=node/46937%2523nodecomment_form">register</a> to post comments</span></li> </ul> </div> </div> </div> <br /> <br /> <!-- end main content --> </div><!-- main --> </div> </div> </div> </div> </div><!-- wrapper --> <div class="clearing"></div> <hr class="hide" /> <!-- START: FOOTER--> <div id="footer" class="footer"> <a rel="nofollow" href="http://www.programmingbulls.com/privacy-policy"> Privacy Policy </a> | <a rel="nofollow" href="http://www.programmingbulls.com/feedback"> Contact Us</a> <SCRIPT charset="utf-8" type="text/javascript" src="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US&ID=V20070822/US/wwwdynamicbra-20/8005/e89b399e-818a-4812-acf7-c6c341c2eb66"> </SCRIPT> <NOSCRIPT><A HREF="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US&ID=V20070822%2FUS%2Fwwwdynamicbra-20%2F8005%2Fe89b399e-818a-4812-acf7-c6c341c2eb66&Operation=NoScript">Amazon.com Widgets</A></NOSCRIPT> <script type="text/javascript" src="http://www.google-analytics.com/urchin.js"></script><script type="text/javascript">_uacct = "UA-2200761-4";urchinTracker();</script><!-- END: FOOTER --> </body> </html>