Added XMLRDF mode to templates and samples
Added P tag to note template