Après avoir converti un fichier XML fautif en utilisant regex, j'ai maintenant besoin de le changer encore une fois. Ce fichier sourceConvertir le fichier XML en CSV
<product>
<sku>SP00001</sku>
<PID_OWNER_SellerID>StoreName</PID_OWNER_SellerID>
<EANCode>8711983489813</EANCode>
<DeliveryDays>2</DeliveryDays>
</product>
doit devenir un fichier CSV, mais comme celui-ci:
sku field value
SP00001 PID_OWNER_SellerID StoreName
SP00001 EANCode 8711983489813
SP00001 DeliveryDays 2
Je suppose que c'est en dehors du champ d'application « regex et doit être fait avec XSL?
Vous cherchez un code pour résoudre ce problème? Ou, un outil existant pour convertir xml en csv? – geffchang
Découvrez cette question: http://stackoverflow.com/questions/365312/xml-to-csv-using-xslt – gooch
Quel (s) langage (s) de programmation voulez-vous ou avez-vous? Cela peut être fait via XSL, ou vous pouvez utiliser .NET ou d'autres langages pour cela. –