I have the following:
DECLARE @XML XML
SET @XML = '<?xml version="1.0" encoding="utf-8"?>
<member xmlns="http:...xsd" xmlns:xsi="http:...XMLSchema-instance">
<Person>
<Name>Jorge</Name>
<LastName>Bond</LastName>
</Person>
<Person>
<Name>Jorge</Name>
<LastName>Bond</LastName>
</Person>
</member>
I have a table with the following columns:
- Member
- Person
- Name
- LastName
How do I go about adding the values from the XML to my table?
If I'm not mistaken I'd have to do a CROSS APPLY but im not sure how to do this.