Hi Cal,
Okay, well that makes things a whole lot simpler. Why would you even bother with the DI API at all ?
As your end goal here is to create an xml file with order picking instructions, I warmly recommend using a plain old sql query and a .NET dataset and/or XmlWriter.
You should really use the DI API mostly only for writing data to the database.
Regards,
Johan