Changed raise and trigger event syntax, to use XML attributes.