假设我有一个正规的XML档案,用来储存程式的设定。
类似如下:
<configuration>
     <WebPage>
    <Yahoo URL="http:tw.yahoo.com" TWName="雅虎台湾" ENName="Yahoo"/>
    <Google URL="http:www.google.com" TWName="谷歌" ENName="Google"/>
     </WebPage>
   <Data>
      .....想在Data的Tag中塞入DataTable的Schema......
     </Data>
</configuration>
但是DataTable转出的XML Schema长类似以下这样,
请问要我要
1. 如何写入Data的Tag中呢?
2. 要如何从Data的Tag中取出呢?
<?xml version="1.0" encoding="utf-16"?>
<xs:schema id="NewDataSet" xmlns=""
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
  <xs:element name="NewDataSet" msdata:IsDataSet="true"
msdata:MainDataTable="resultTable" msdata:UseCurrentLocale="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="resultTable">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Id" type="xs:string" minOccurs="0" />
              <xs:element name="Modified" type="xs:dateTime" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>
<DocumentElement>
  <resultTable>
    <Id>Y7T87N2PH53NTSYY</Id>
    <Modified>2010-12-09T09:06:21.727+11:00</Modified>
  </resultTable>
  <resultTable>
    <Id>EYUY75VHHTT5YOZ6</Id>
    <Modified>2010-12-09T09:06:22.38+11:00</Modified>
  </resultTable>
</DocumentElement>