Hi,
[snip]
i found the solution. just create a page in XWiki.MyPage in which you
include a velocity file(that contains your code)
#template("code.vm")
You could as well have put the velocity code right on your wiki page ;-)
Velocity code is interpreted on wiki pages, so there's basically very little
difference between using #template() and putting the code right into the
page.
Guillaume