アーティクル - CS178046
Windchill PDMLink 10.2 で CSV2XML ユーティリティを実行している場合、CSV ファイルの最初の行は XML ファイルに変換されません。
修正日: 02-Jun-2016
適用対象
- Windchill PDMLink 10.0 to 12.1
説明
- CSV ファイルの最初の行は、の実行時に XML ファイルに変換されません。 CSV2XML Windchill PDMLink 10.2 のユーティリティ
- CSV ファイルのエンコード方法はです。UTF-8
- 最初の行は not で開始されるコメント#
- たとえば、CSV ファイルの内容は次のようになります。
BeginWTDocument、Doc1、Doc1、DOC-000001、SubDoc、Document-Descriptioin、DESIGN、/Default,,,, IN WORK、, A, 1,
#IBAValue ~ 定義 ~ value1 ~ value2 ~ dependency_id
IBAValue、ts tos. A1、2012-03-08 01:02: 03.000000000、、
IBAValue, ts tos. A1, 2012-03-09 01:02: 03.000000000,,
#EndWTDocument、primarycontenttype、path、format、desc、parentContainerPath,,,,,,,,,,
EndWTDocument、ApplicationData、/Doc1.4 txt,,,,,,,,,,,,,
- -encoding utf8はに使用されます。 CSV2XML ユーティリティ
- たとえば、を実行した後 windchill wt.load.util.CSV2XML -input documents.csv -root /root/Documents/ -encoding utf8上記の CSV ファイルでは、生成された XML ファイルで以下の内容を取得します。注意してください。タグがありません BeginWTDocument XML ファイル内にあります。
<? xml バージョン = "1.0"? > <DOCTYPE NmLoader システム "standardX24. dtd" >
< NmLoader >
< csvIBAValue ハンドラ = "wt. iba. value. サービス. LoadValue. createIBAValue" >
< csvdefinition > ts tos </csvdefinition >
< csvvalue1 > 2012-03-08 01:02: 03.000000000 </csvvalue1 >
< csvvalue2 > </csvvalue2 >
< csvdependency_id > </csvdependency_id >
</csvibavalue >
< csvIBAValue ハンドラ = "wt. iba. value. サービス. LoadValue. createIBAValue" >
< csvdefinition > ts tos </csvdefinition >
< csvvalue1 > 2012-03-09 01:02: 03.000000000 </csvvalue1 >
< csvvalue2 > </csvvalue2 >
< csvdependency_id > </csvdependency_id >
</csvibavalue >
< csvEndWTDocument ハンドラ = "endCreateWTDocument" の >
< csvprimarycontenttype > ApplicationData </csvprimarycontenttype >
< csvpath >/Doc1.4 txt </csvpath >
< csvformat > </csvformat >
< csvcontdesc > </csvcontdesc >
< csvparentContainerPath > </csvparentContainerPath >
</csvEndWTDocument >
</NmLoader >
最新バージョンはこちらを参照ください CS178046