Rename XML structs to use xml prefix.
Fix trimming API prefix for extensions.