PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2025 → Création .xml avec .xsd
Création .xml avec .xsd
Iniciado por Alain LACLEF, 25,nov. 2018 08:16 - 3 respuestas
Miembro registrado
82 mensajes
Publicado el 25,noviembre 2018 - 08:16
Bonjour à tous

j'essaye d'intégrer des descriptions XSD à mon projet.
Ça fait planter Windev (20 et 23 Express)
J"en ai besoin pour Chorus.
Les XSD sont là :
http://docs.oasis-open.org/ubl/os-UBL-2.1/xsd/

Une idée ?
Miembro registrado
953 mensajes
Publicado el 26,noviembre 2018 - 09:34
Bonjour Alain,

malheureusement l'import de ces XSD ne fonctionnera pas sous Windev, j'ai eu le même soucis et fait remonter l'information au support.

voici la référence transmise par le support PCSoft : 87 357/204382


Après pour Chorus vous pouvez éventuellement générer les fichiers XML à "la main" , c'est pas top top mais çà devrait fonctionner ....

bon dèv
Publicado el 26,noviembre 2018 - 10:23
merci mais je ne connais pas bien xml
aurais tu un exemple ?
Miembro registrado
82 mensajes
Publicado el 26,noviembre 2018 - 10:34
Merci de ton aide
Je ne suis pas Kador en xml
Aurait un exemple windev de création de xml. Si c'est pour Chorus c'est Byzance!!!

Un exemple de XML à créer pour Chorus :
c'est pas simple !!!

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="" ?>
<Invoice xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2"
xmlns:ccts="urn:oasis:names:specification:ubl:schema:xsd:CoreComponentParameters-2"
xmlns:stat="urn:oasis:names:specification:ubl:schema:xsd:DocumentStatusCode-1.0"
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
xmlns:udt="urn:un:unece:uncefact:data:draft:UnqualifiedDataTypesSchemaModule:2"
xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"
xmlns:cec="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2"
xmlns:aife="urn:AIFE:Facture:Extension">
<cec:UBLExtensions>
<cec:UBLExtension>
<cec:ExtensionContent>
<CategoryCode>A1</CategoryCode>
</cec:ExtensionContent>
</cec:UBLExtension>
</cec:UBLExtensions>
<cbc:UBLVersionID>2.1</cbc:UBLVersionID>
<cbc:ID>TSTF1004_2016001</cbc:ID>
<cbc:IssueDate>2016-08-22</cbc:IssueDate>
<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
<cbc:DocumentCurrencyCode>USD</cbc:DocumentCurrencyCode>
<cac:AccountingSupplierParty>
<cac:Party>
<cac:PartyIdentification>
<cbc:ID schemeName="1">00000000009545</cbc:ID>
</cac:PartyIdentification>
<cac:PartyName>
<cbc:Name>FOURNISSEURTST070</cbc:Name>
</cac:PartyName>
<cac:PartyLegalEntity>
<cbc:RegistrationName>FOURNISSEURTST070</cbc:RegistrationName>
<cac:RegistrationAddress>
<cbc:StreetName>rue Tabaga</cbc:StreetName>
<cbc:CityName>Arnac La Poste</cbc:CityName>
<cbc:PostalZone>87016</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>FR</cbc:IdentificationCode>
</cac:Country>
</cac:RegistrationAddress>
</cac:PartyLegalEntity>
</cac:Party>
<cac:AccountingContact>
<cbc:Telefax>+33234567890</cbc:Telefax>
<cbc:ElectronicMail>00000000009545@cpp2017.fr</cbc:ElectronicMail>
</cac:AccountingContact>
</cac:AccountingSupplierParty>
<cac:AccountingCustomerParty>
<cac:Party>
<cac:PartyIdentification>
<cbc:ID schemeName="1">00000000009561</cbc:ID>
</cac:PartyIdentification>
<cac:PostalAddress>
<cbc:StreetName>1 rue Test</cbc:StreetName>
<cbc:CityName>Test</cbc:CityName>
<cbc:PostalZone>75000</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>FR</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
</cac:Party>
</cac:AccountingCustomerParty>
<cac:Delivery>
<cbc:ID>Z3247</cbc:ID>
<cac:DeliveryLocation>
<cbc:ID>Z3247</cbc:ID>
<cbc:Description>Site numéro 8</cbc:Description>
<cac:Address>
<cbc:StreetName>2 avenue Charles de Gaulle</cbc:StreetName>
<cbc:CityName>Paris</cbc:CityName>
<cbc:PostalZone>75008</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>FR</cbc:IdentificationCode>
</cac:Country>
</cac:Address>
</cac:DeliveryLocation>
</cac:Delivery>
<cac:PaymentMeans>
<cbc:PaymentMeansCode listID="UN/ECE 4461 Subset"
listAgencyID="NES" listAgencyName="Northern European Subset"
listName="Payment Means">31</cbc:PaymentMeansCode>
<cbc:PaymentDueDate>2016-09-21</cbc:PaymentDueDate>
</cac:PaymentMeans>
<cac:PaymentTerms>
<cbc:Note>En cas de retard de paiement, seront exigibles, conformément à l'article L 441-6 du code de commerce, une indemnité calculée sur la base de trois fois le taux de l'intérêt légal en vigueur ainsi qu'une indemnité forfaitaire pour frais de recouvrement de 40 euros</cbc:Note>
</cac:PaymentTerms>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="USD">16.68</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="USD">83.4000</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="USD">16.68</cbc:TaxAmount>
<cbc:Percent>20</cbc:Percent>
<cac:TaxCategory>
<cac:TaxScheme>
<cbc:TaxTypeCode>TVA DEBIT</cbc:TaxTypeCode>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:LegalMonetaryTotal>
<cbc:TaxExclusiveAmount currencyID="USD">83.4000</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID="USD">100.0800</cbc:TaxInclusiveAmount>
<cbc:PayableAmount currencyID="USD">100.0800</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
<cac:InvoiceLine>
<cbc:ID>1</cbc:ID>
<cbc:InvoicedQuantity unitCode="EA">1</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="USD">83.4000</cbc:LineExtensionAmount>
<cac:Delivery>
<cbc:ID>Z3247</cbc:ID>
<cbc:ActualDeliveryDate>2016-07-22</cbc:ActualDeliveryDate>
</cac:Delivery>
<cac:Item>
<cbc:Name>Prestation intellectuelle</cbc:Name>
<cac:StandardItemIdentification>
<cbc:ID>3243</cbc:ID>
</cac:StandardItemIdentification>
<cac:ClassifiedTaxCategory>
<cbc:Percent>20</cbc:Percent>
<cac:TaxScheme>
<cbc:TaxTypeCode>TVA DEBIT</cbc:TaxTypeCode>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="USD">83.4000</cbc:PriceAmount>
<cbc:BaseQuantity unitCode="EA">1</cbc:BaseQuantity>
</cac:Price>
</cac:InvoiceLine>
</Invoice>