*/
public Cart getCart(Document doc)
{
Cart cart = new Cart("", "");
CartItem cartItem = null;
Item item = null;
NodeList nodes, kids1, kids2 = null;
Node node, kid1, kid2 = null;
int i, j, k = 0;
nodes = doc.getElementsByTagName("CartItem");
for(i = 0; i < nodes.getLength(); i++)
{
cartItem = new CartItem();
item = new Item();
node = nodes.item(i);
kids1 = node.getChildNodes();
for(j = 0; j < kids1.getLength(); j++)
{
kid1 = kids1.item(j);
if(kid1.getNodeName().equals("ASIN"))
{
item.setAsin(kid1.getTextContent());
}
if(kid1.getNodeName().equals("Title"))
{
item.setTitle(kid1.getTextContent());
}
if(kid1.getNodeName().equals("CartItemId"))
{
cartItem.setCartItemId(kid1.getTextContent());
}