Skip to content

fortesp/xsd2xml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xsd2xml

Generates XML based on XSD schema

Dependencies

  • rstr
  • xmlschema

Usage:

xmlgenerator = XmlGenerator('pain.001.001.09.xsd', True)
print(xmlgenerator.execute()) # Output to console
xmlgenerator.write('filename.xml') # Output to file

File output:

<?xml version='1.0' encoding='utf-8'?>
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.09"><CstmrCdtTrfInitn><GrpHdr><MsgId>AAZ77RS1SXTE</MsgId>
<CreDtTm>2020-02-26T22:30:58.344547</CreDtTm><NbOfTxs>464</NbOfTxs><InitgPty /></GrpHdr><PmtInf><PmtInfId>KA4EF9</PmtInfId>
<PmtMtd>CHK</PmtMtd><ReqdExctnDt><Dt>2020-02-26</Dt></ReqdExctnDt><Dbtr /><DbtrAcct><Id><IBAN>TN32RZ</IBAN></Id></DbtrAcct>
<DbtrAgt><FinInstnId /></DbtrAgt><CdtTrfTxInf><PmtId><EndToEndId>VJWELM</EndToEndId></PmtId><Amt><InstdAmt 
Ccy="AWR">5379.9</InstdAmt></Amt></CdtTrfTxInf></PmtInf></CstmrCdtTrfInitn></Document>

About

Python module that generates XML based on XSD schema

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published