RLWB / jqueryjs

Automatically exported from code.google.com/p/jqueryjs
0 stars 0 forks source link

XML parsing using XPath expressions not working in 1.2.1 version #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. The code given below was working fine in JQuery 1.1.3.1 but not working
in 1.2.1 version
$.get("/TestingArea/loadXMLData.html",function(xml){
    $("OrderDocument/customers/customer", xml).each(function() {
        tableHtml += "<tr>";
        tableHtml += "<td>" + $("id", this).text() + "</td>"
        tableHtml += "<td>" + $("name", this).text() + "</td>"
        tableHtml += "<td>" + $("company", this).text() + "</td>"
        tableHtml += "</tr>";
    })
});

2. The response XML from Ajax is 
<OrderDocument>
  <customers>
    <customer>
      <id>1</id>
      <name>Dave Smith</name>
      <company>myParts.com</company>
    </customer>
    <customer>
      <id>2</id>
      <name>Patty Smith</name>
      <company>myParts.com</company>
    </customer>
  </customers>
</OrderDocument>

3.

What is the expected output? What do you see instead?
XML should be parsed and the table row should be populated

What version of the product are you using? On what operating system?
1.2.1

Please provide any additional information below.

Original issue reported on code.google.com by nagadaks...@gmail.com on 20 Sep 2007 at 2:32

GoogleCodeExporter commented 8 years ago
Thank you for writing up this problem.  Unfortunately we use a different bug 
tracking system at http://dev.jquery.com/ so this issue was just noticed.  In 
the 
future, please use that system for tracking issues.  We are going to check the 
current google issues and then close this issue database to help stop any 
confusion 
about which to use.

In jQuery 1.2 it was decided to move the XPath controls to a plugin.  Please 
read 
the following 1.2 release notes for details.

http://docs.jquery.com/Release:jQuery_1.2#XPath_Compatibility_Plugin

Thanks.

Original comment by davidser...@gmail.com on 11 Jan 2008 at 6:20