input:

Declare @OUT xml
select @OUT = N'
&lt;row&gt;
  &lt;kind&gt;MainCat&lt;/kind&gt;
  &lt;sortid&gt;1&lt;/sortid&gt;
  &lt;kind_id&gt;1&lt;/kind_id&gt;
  &lt;PPoet&gt;حافظ&lt;/PPoet&gt;
  &lt;MTitle&gt;حافظ&lt;/MTitle&gt;
  &lt;Row&gt;1&lt;/Row&gt;
&lt;/row&gt;'


 

select T.X.value('@Kind', 'nvarchar(50)') as kind,
T.X.value('@sortid', 'int') as sortid
from @out.nodes('/row') as T(X)

this select return NULL!



Question: Can a PC have more than one Default Gateway?
Answer: On Windows (at least Vista), having multiple default routes on the same interface with different metrics is fine.  Windows will automatically switch to the route with the next highest metric if the lower metric router goes down.  If there are multiple default routes with the same metric, Windows randomly selects one to use.

This allows you to have redundant routers without configuring failover on the routers.

On Linux, this does not work.  You can have multiple default routes with different metrics, but currently the Linux kernel ignores the metric value.  If the default router with the lowest metric disappears, traffic will not flow.