SQL Server データベース内で XML のクエリを開始したところです。最も基本的なクエリに問題があります。簡単な例を次に示します。説明を返すにはどうすればよいですか? 以下の SELECT ステートメントは私が使用しているものですが、何も返しません。
SELECT Incidents.IncidentXML.query
('data(/dsIncident/IncidentInformation/Description)') AS Description
FROM Incidents
これは、私が使用している XML ファイルのスニペットです。
<dsIncident xmlns="http://tempuri.org/dsIncident.xsd">
<IncidentInformation>
<Description>This is the description.</Description>
<Country>Singapore</Country>
</IncidentInformation>
</dsIncident>