Follow the link - it has a section on XMLConfig. I haven't used it much beyond exporting the settings from one server to update a second server. It should be able to create a DataSource, as long as you get the syntax right. XML can be very stubborn in this regard.
Good luck, Einstein47
(Love is like PI - natural, irrational, endless, and very important.)