Build dependency from XML

Hi In my project I control the dependencies using plugin. The project that is getting build passes certain information to the plugin , based on which the plugin dynamically adds the dependencies.

Now , I want to read a XML file from the project and pass it to the plugin. Is it possible to pass a XML file to a custom plug in ?