I have a stored procedure with a parameter in XML.
My problem is about the format of XML.
This solution its works:
<ROOT><ids><id>2013-01-01</id></ids><ids><id>2013-01-02</id></ids></ROOT>
SELECT * FROM OPENXML(@handle, '/ROOT/id') WITH (idDate Date)
Result: 2013-01-01 .. 2013-01-02
But the second solution not, why?
<ROOT><id>2013-01-01</id><id>2013-01-02</id></ROOT>
SELECT * FROM OPENXML(@handle, '/ROOT') WITH (idDate Date)
Result: Null
The XML is well formed, not?