- La première ligne du fichier CSV n'est pas transformée en fichier XML lors de l'exécution de l'utilitaire CSV2XML dans Windchill
- Quel sera le format CSV pour le chargement de plusieurs valeurs IBA pour WTDocument
- L'encodage du fichier CSV est UTF-8
- La première ligne n'est pas le commentaire qui commence par #
- Par exemple, voici le contenu du fichier CSV
BeginWTDocument,Doc1.txt,Doc1,DOC-000001,SubDoc,Document-Description,DESIGN,/Default,,,,INWORK,,A,1,
#IBAValue~définition~valeur1~valeur2~dependency_id
Valeur IBA,ts.centos.A1,2012-03-08 01:02:03.000000000,,
Valeur IBA,ts.centos.A1,2012-03-09 01:02:03.000000000,,
#EndWTDocument,type de contenu primaire,chemin,format,contdesc,parentContainerPath,,,,,,,,,,
EndWTDocument,ApplicationData,/Doc1.txt,,,,,,,,,,,,,
- -l'encodage utf8 est utilisé pour l'utilitaire CSV2XML
- Par exemple, après avoir exécuté la commande windchill wt.load.util.CSV2XML -input documents.csv -root /root/Documents/ -encoding utf8 pour le fichier CSV ci-dessus, le contenu suivant apparaît dans le fichier XML généré. Veuillez noter que le fichier XML ne contient pas de balise BeginWTDocument .
<?xml version="1.0" ?><!DOCTYPE NmLoader SYSTEM "standardX24.dtd">
<NmLoader>
<csvIBAValue handler="wt.iba.value.service.LoadValue.createIBAValue" >
<csvdefinition>ts.centos.A1</csvdefinition>
<csvvalue1>2012-03-08 01:02:03.000000000</csvvalue1>
<csvvalue2></csvvalue2>
<csvdependency_id></csvdependency_id>
</csvIBAValue>
<csvIBAValue handler="wt.iba.value.service.LoadValue.createIBAValue" >
<csvdefinition>ts.centos.A1</csvdefinition>
<csvvalue1>2012-03-09 01:02:03.000000000</csvvalue1>
<csvvalue2></csvvalue2>
<csvdependency_id></csvdependency_id>
</csvIBAValue>
<csvEndWTDocument handler="wt.doc.LoadDoc.endCreateWTDocument" >
<csvprimarycontenttype>Données d'application</csvprimarycontenttype>
<csvpath>/Doc1.txt</csvpath>
<csvformat></csvformat>
<csvcontdesc></csvcontdesc>
<csvparentContainerPath></csvparentContainerPath>
</csvEndWTDocument>
</NmLoader>