Hi All,
I am new to the ranch. I have been trying my best to resolve this issue but I am not able to figure out the issue. Here is what I am trying to do.
1.I have a landing page for my app called index.jsp.
2.I have a form with a text box named "cardname" with a submit button
3.When I click the submit button, an AJAX POST call is made to a
Servlet which returns an XML that has the payment details for the selected card.
4.The responseText coming back to the AJAX call shows the XML, however when I try responseXML I am getting a null. Here is what I have checked to make sure before opening up this question:
a. I have made sure there XML structure is fine (I think I am doing it right

)
b. I used the alert on the javascript to show the xml that came back on
responseText, it was fine
c. I used alert to show the XML that came back on the responseXML, but I got [object XML] message.
5. I could not attach the code, but the responseXML is below. Thanks for reading my post.
Here is the XML that the servlet returns. The XML is generated using JAXB inside the servlet.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<CardPayments>
<card>Amex</card>
<payments>
<payment>
<id>3</id>
<date>2012-09-06T00:00:00-04:00</date>
<amount>44.0</amount>
<cardType>Amex</cardType>
</payment>
<payment>
<id>4</id>
<date>2012-09-04T00:00:00-04:00</date>
<amount>12.0</amount>
<cardType>Amex</cardType>
</payment>
<payment>
<id>5</id>
<date>2012-09-04T00:00:00-04:00</date>
<amount>12.0</amount>
<cardType>Amex</cardType>
</payment>
<payment>
<id>6</id>
<date>2012-09-04T00:00:00-04:00</date>
<amount>12.0</amount>
<cardType>Amex</cardType>
</payment>
<payment>
<id>7</id>
<date>2012-09-05T00:00:00-04:00</date>
<amount>1.0</amount>
<cardType>Amex</cardType>
</payment>
<payment>
<id>8</id>
<date>2012-09-05T00:00:00-04:00</date>
<amount>1.0</amount>
<cardType>Amex</cardType>
</payment>
<payment>
<id>9</id>
<date>2012-09-05T00:00:00-04:00</date>
<amount>1.0</amount>
<cardType>Amex</cardType>
</payment>
<payment>
<id>10</id>
<date>2012-09-04T00:00:00-04:00</date>
<amount>89.0</amount>
<cardType>Amex</cardType>
</payment>
<payment>
<id>11</id>
<date>2012-09-04T00:00:00-04:00</date>
<amount>89.0</amount>
<cardType>Amex</cardType>
</payment>
<payment>
<id>12</id>
<date>2012-09-04T00:00:00-04:00</date>
<amount>12.0</amount>
<cardType>Amex</cardType>
</payment>
<payment>
<id>28</id>
<date>2012-09-13T00:00:00-04:00</date>
<amount>84375.34</amount>
<cardType>Amex</cardType>
</payment>
<payment>
<id>29</id>
<date>2012-09-13T00:00:00-04:00</date>
<amount>34.34</amount>
<cardType>Amex</cardType>
</payment>
<payment>
<id>33</id>
<date>2012-09-04T00:00:00-04:00</date>
<amount>23.42</amount>
<cardType>Amex</cardType>
</payment>
<payment>
<id>34</id>
<date>2012-09-04T00:00:00-04:00</date>
<amount>23.42</amount>
<cardType>Amex</cardType>
</payment>
<payment>
<id>35</id>
<date>2012-09-06T00:00:00-04:00</date>
<amount>34.0</amount>
<cardType>Amex</cardType>
</payment>
<payment>
<id>36</id>
<date>2012-09-06T00:00:00-04:00</date>
<amount>34.0</amount>
<cardType>Amex</cardType>
</payment>
<payment>
<id>37</id>
<date>2012-09-06T00:00:00-04:00</date>
<amount>34.0</amount>
<cardType>Amex</cardType>
</payment>
<payment>
<id>38</id>
<date>2012-09-06T00:00:00-04:00</date>
<amount>34.0</amount>
<cardType>Amex</cardType>
</payment>
<payment>
<id>39</id>
<date>2012-09-06T00:00:00-04:00</date>
<amount>2.0</amount>
<cardType>Amex</cardType>
</payment>
<payment>
<id>40</id>
<date>2012-09-06T00:00:00-04:00</date>
<amount>2.0</amount>
<cardType>Amex</cardType>
</payment>
</payments>
</CardPayments>