If you're using FS9, then you are limited to Arne Bartels traffic gauge, and you wont be able to modify it in XML. But it is worth looking at since some basic and limited traffic information can be accessed for use in your application, IIRC.
If FSX, then you can use the ITrafficInfo variables to get information about AI aircraft to create your own simple TCAS XML application.
Check out this resource,
http://www.robbiemcelrath.com/fs/guides/customdraw
and look at the chapters on ITrafficInfo and TCAS.
Finally, Doug Dawson updated Arne's original traffic gauge for use in FSX. Again, you are able to get some information about AI traffic from this module and may be able to use that for your purposes.
But, in my opinion, the most straight forward FSX solution may just be to understand the ITrafficInfo variables to make your simple TCAS.
Bob