I am new to xquery in SQL Server. This the value in ErrorXml column in ReponseRecord table. This is how the sample data for ErrorXML column.
Row1:
<Data>
<Error PropertyName="CaseDisplayID">
<ErrorMessage Type="Database">Claim is not in awaiting reprice response state. Current case state is ** Closed (Cancelled) **</ErrorMessage>
</Error>
</Data>
Row2:
<Data><Error PropertyName="CaseDisplayID" /></Data>
Row3:
<Data />
I want to read the value of Error here, if that attribute exists.