日期:2014-05-19  浏览次数:20402 次

C#中如何读取这样的XML
<xml   xmlns:s= 'uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882 '
xmlns:dt= 'uuid:C2F41010-65B3-11d1-A29F-00AA00C14882 '
xmlns:rs= 'urn:schemas-microsoft-com:rowset '
xmlns:z= '#RowsetSchema '>
<s:Schema   id= 'RowsetSchema '>
<s:ElementType   name= 'row '   content= 'eltOnly '   rs:updatable= 'true '>
<s:AttributeType   name= 'tname '   rs:number= '1 '   rs:nullable= 'true '   rs:writeunknown= 'true '   rs:basecatalog= 'p9_z4 '
  rs:basetable= 't_rbshlib '   rs:basecolumn= 'tname '>
<s:datatype   dt:type= 'string '   rs:dbtype= 'str '   dt:maxLength= '50 '/>
</s:AttributeType>
<s:AttributeType   name= 'sex '   rs:number= '2 '   rs:nullable= 'true '   rs:writeunknown= 'true '   rs:basecatalog= 'p9_z4 '
  rs:basetable= 't_rbshlib '   rs:basecolumn= 'sex '>
<s:datatype   dt:type= 'ui1 '   dt:maxLength= '1 '   rs:precision= '3 '   rs:fixedlength= 'true '/>
</s:AttributeType>
<s:AttributeType   name= 'tcode '   rs:number= '3 '   rs:nullable= 'true '   rs:writeunknown= 'true '   rs:basecatalog= 'p9_z4 '
  rs:basetable= 't_rbshlib '   rs:basecolumn= 'tcode '>
<s:datatype   dt:type= 'string '   rs:dbtype= 'str '   dt:maxLength= '50 '/>
</s:AttributeType>
<s:AttributeType   name= 'TID '   rs:number= '4 '   rs:writeunknown= 'true '   rs:basecatalog= 'p9_z4 '   rs:basetable= 't_rbshlib '
  rs:basecolumn= 'TID '   rs:keycolumn= 'true '   rs:hidden= 'true '>
<s:datatype   dt:type= 'i8 '   dt:maxLength= '8 '   rs:precision= '19 '   rs:fixedlength= 'true '   rs:maybenull= 'false '/>
</s:AttributeType>
<s:extends   type= 'rs:rowbase '/>
</s:ElementType>
</s:Schema>
<rs:data>
<z:row   tname= '陈xx '   sex= '1 '   tcode= '006 '   TID= '4087 '/>
<z:row   tname= '马xx '   sex= '1 '   tcode= '002 '   TID= '4800 '/>
<z:row   tname= '王xx '   sex= '1 '   tcode= '003 '   TID= '4801 '/>
<z:row   tname= '赵xx '   sex= '1 '   tcode= '001 '   TID= '4802 '/>
<z:row   tname= '耿x '   sex= '1 '   tcode= '005 '   TID= '4803 '/>
<z:row   tname= '李x '   sex= '1 '   tcode= '014 '   TID= '4804 '/>
<z:row   tname= '车x '   sex= '1 '   tcode= '007 '   TID= '4805 '/>
<z:row   tname= '付x '   sex= '0 '   tcode= '008 '   TID= '4806 '/>
<z:row   tname= '徐x '   sex= '1 '   tcode= '009 '   TID= '4807 '/>
<z:row   tname= '王x '   sex= '1 '   tcode= '010 '   TID= '4808 '/&