SQL Server 2012. Given the following XML:
<header>
<subheader>
<Problems>
<RAW VALUE="1" Sublot="abc"/>
<RAW VALUE="2" Sublot="def"/>
<RAW VALUE="3" Sublot="ghi"/>
</Problems>
</subheader>
</header>
how does one parse the XML in SQL Server? I an having problems dealing with "RAW VALUE" as a name, such that
SELECT *
FROM OPENXML (@docHandle, '/header/subheader/Problems', 1)
WITH (
'RAW VALUE' VARCHAR (100)
);
is invalid because of the quote around 'RAW VALUE'. Brackets don't work either. Is there a way to support the space in "RAW VALUE"?