-3
我有一個XML文件,我想製作一個或多個類從XML file.How我可以做什麼呢? 示例XML文件
<transfer>
<sourceGLN>8680001080359</sourceGLN>
<destinationGLN>8680001404780</destinationGLN>
<actionType>S</actionType>
<shipTo></shipTo>
<documentNumber>265561</documentNumber>
<documentDate>2012-06-07</documentDate>
<note></note>
<version>1.4</version>
<carrier carrierLabel="1">
<productList GTIN="08699516355616" lotNumber="CH4257" expirationDate="2015-03-31">
<serialNumber>00000011214455</serialNumber>
<serialNumber>00000011214456</serialNumber>
<serialNumber>00000011214457</serialNumber>
<serialNumber>00000011214458</serialNumber>
<serialNumber>00000011214459</serialNumber>
<serialNumber>00000011214460</serialNumber>
</productList>
</transfer>
謝謝...
的http:// www.switchonthecode.com/tutorials/csharp-tutorial-xml-serialization – 2012-07-12 07:48:57