How to make a xml file in php

Here is the PHP code you can customize it according to your requirements.

<&#63php
$xml = new SimpleXMLElement('<root/>');

$track = $xml->addChild('track');

$track->addChild('fieldName1','fieldValue');

$track->addChild('fieldName2','fieldValue');

$track->addChild('fieldName3','fieldValue');

$track->addChild('fieldName4','fieldValue');

Header('Content-type: text/xml');

print($xml->asXML());

&#63>
Enjoy Coding ..!!

Form validation in Magento

As we know that Magento use Prototype.js as javascript library. It provides a simple way to validate html form values. Below is an example:


How to Override/Overwrite Core Class In Magento ?


There are many reasons and it’s a bad habit and bad programming if core files are modified and it’s not recommended at all. Therefore Magento brought in an excellent way how to override/overwrite those files.In  this post we learn how to override product Model class.This module we will change   first character of product name in uppercase.

 Override/Overwrite Magento Model Class.

How to make an Observer in Magento ?


 Today i am going to show how to make an observers in Magento. 

In this module we are going to make _load_after event to suffix something with product name in front-end area.In same way you can make any observer.

How to make Paypal Recurring system for any site.


Hello every one today i am going to tell you how to make paypal recurring method for any site you can easily iterated this method to any website.