As far as i know, you can't. Since the contents of a container is not located on the same place as the container.
What you can do instead is to place the spawner outside the container, and use the SETONNEARBY attribute. For more info on this attribute, check out the "nearbyboxes.xml" spawn file, located in the Spawns folder. Or you can check out some threads about it on this forum. Like the following one...
http://xmlspawner.15.forumer.com/index.php?showtopic=850
Hope this helps.