求救!获取XML根结点名称
declare   @x   xml 
 set   @x   =    
  ' <Chicago>  
        <Area> A1 </Area>  
        <Group> 5 </Group>  
        <Question> Q1 </Question>  
  </Chicago>  '   
 如何使用SQL获得根结点的名称“Chicago”?
------解决方案--------------------declare @x xml 
 set @x =  
  ' <Chicago>  
    <Area> A1 </Area>  
    <Group> 5 </Group>  
    <Question> Q1 </Question>  
  </Chicago>  ' 
 SELECT @x.value( 'local-name(/*[1]) ', 'varchar(100) ')   
 -- 结果: Chicago