Also I noticed that you did not have the ; symbol after your echo statement. The ends a php command so you would have gotten a parse error with that as well.
'?>' also terminates a statement, so technically one does not need a terminating semi-colon just before it though I usually use one anyway, and it seems like good practice to do so.
Incidentally, '<?php' should be used instead of '<?' in view of possible problems when using XML, and also because the '<?php' version is guaranteed to exist.