C# 请教高手,我想把txt文件转换成下面xml格式的文件,如何做啊?
TXT 文件:SP1 Long Wafer Summary
Session: incoming_gsmc.12um
Lot ID: A123123.1
Part ID: G0123123
Supplier: GSMC
OSF TTV
31 11
41 21
请教高手,我想把上面的txt文件转换成下面xml格式的文件,如何做啊?
<?xml version="1.0" encoding="UTF-8" ?>
<Shipment xmlns:xsi="http://www.
xsi:noNamespaceSchemaLocation="test.xsd"
PartID="G0123123"
Supplier="GSMC"
>
<RAWLOT LotID="A123123.1">
<OSF >
<RAW VALUE="31.0" />
<RAW VALUE="41.0" />
</OSF>
<TTV >
<RAW VALUE="11.0" />
<RAW VALUE="21.0" />
</TTV>
</RAWLOT>
</Shipment>