I have XML like this, stored in an XML field in sql server:
<TableSpec
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="custom_schema_name"
ID="66912703-1201-457C-A37B-84D446B6C043"
Name="Some name"
>
<Fields>
<ForeignKeyField Name="SOMETABLEID" Required="true" ForeignTable="SOMETABLE"/>
<GuidField Name="FIELD1" Required="true" />
<DateField Name="FIELD2" Required="true" />
</Fields>
</TableSpec>
I want to select the "Name" of every Field that is not a Foreign Key Field.
Given this example, I'd like my result set to be:
FIELD1
FIELD2
How can I do that?