Yes, per new policy effected on Fe.1, 2005, she can apply within Canada as a visitor. But both sheand you must stay in Canada untill the case is processed.
Please refer http://www.cic.gc.ca/english/sponsor/faq-spouse.html for details.
Please refer http://www.cic.gc.ca/english/sponsor/faq-spouse.html for details.