You would have to remove the target_transform and use the XML tree for your detection task.
Have a look at this tutorial 15.
While another dataset is used, it might be a good starter for your VOCDetection.