3 Answers
3

Not sure what the CAML Query will return but an approach would be to have the CAML Query return the Doc Library containing the items. One then iterates through it by working with the Folders and Doc Sets prior to getting the document item itself. This example illustrates it - Working with SP 2010 Document Sets using the SP Object Model.