Display Magento cart total Block in custom pages or XML

There is a two way to display checkout cart total block to any page.

1. Through .phtml

<?php
    // Method 1: 
              echo $this->getLayout()->createBlock('checkout/cart_totals')
                                     ->setTemplate('checkout/cart/totals.phtml')->toHtml();

    // Method 2: 
               $layout = $this->getLayout();
               $layout->getUpdate()
                      ->addHandle('default')
                      ->addHandle('checkout_cart_index')
                      ->load();
               $layout->generateXml()->generateBlocks();
               $total_html = $layout->getBlock('checkout.cart.totals')->toHtml();
               echo $total_html;
?>

2. Through xml

<reference name="content">
    <block type="checkout/cart_totals" name="custom.cart.total" template="checkout/cart/totals.phtml" />
</reference>