You can use xml data type as parameter in the sp.
.AddParam("Name ofParameter",size,me.xml("className")) // from backgroun coding
declare @handle int
declare @XML xml = '2013-01-012013-01-02'
exec sp_xml_preparedocument @handle out, @XML
select * from openxml(@handle, '/ROOT/ids', 2) with (id Date)
exec sp_xml_removedocument @handle