Replies: 1 comment 1 reply
-
Hi,
I'm sorry but this library doesn't support generation of XML from schemas, because that topic is not strictly related to validation of the model (ModelVisitor class is the core of the model validation), and also because XML data generation is often a matter of choices and particular needs, that I don't know and neither I have similar needs.
No you don't, the xmlschema library has two alternatives:
Anyway these are non-standard procedure, the best option when your schemas are partitioned, is to build an XSD for your target namespace that define imports and includes of all other schemas. |
Beta Was this translation helpful? Give feedback.
-
Hello folks,
I have following WSDL https://wsg.isceco.admin.ch/Livestock/AnimalTracingWSDL/3 which contains several XML schemas and I would like to generate an XML string for specific XSD types, for example WriteSheepArrivalBatchNotificationV2
The XML to be generated for WriteSheepArrivalBatchNotificationV2 would be the following:
Can the xmlschema library be used for such XML generations?
If yes, could you give me some hints on how to actually do this?
Do I first need to create a single XSD with imports for sub-schemas before I can use the xmlschema library?
Thanks in advance
Tom
Beta Was this translation helpful? Give feedback.
All reactions