I have the following XML in my database:
<PENDING_MODS>
<DELETE TABLE="SOLUTION">
<COLUMN CLAUSE="WHERE" NAME="SOLUTION_CDE" VALUE="1" />
</DELETE>
<DELETE TABLE="SOL_USERS">
<COLUMN CLAUSE="WHERE" NAME="SOLUTION_CDE" VALUE="1" />
<COLUMN CLAUSE="WHERE" NAME="USERS_CDE" VALUE="52" />
</DELETE>
</PENDING_MODS>
And I want to Query out the NAME's and VALUES of all the COLUMNs. I've gotten this far:
select XML.query('/PENDING_MODS/DELETE/COLUMN[@CLAUSE="WHERE"][1]') from table where id=33
I can't find any information online on just getting attriubtes, though, only element values and actual XML. I could overhaul and go element centric, is that neccessary?