how to use xsd file?
hey guys. can smb explain how xsd files work? did i get it right? heres a fragment of my xsd file:
thanks in advance
5 Replies
⌛
This post has been reserved for your question.
Hey @bambyzas! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
A XSD file can be used to validate xml files and fragments. According to your fragment, there is a complextype having the tagname
paymentInformation
referencing simple types (decimal is similar to double/float in java, string is String). According to your fragment, the folowing xml should be validated successfully:
Assuming you use the namespace ff, you could validate: In more modern times, it's been used to describe the format of xml documents more than to use that format for validation purpose. Typically used to create model classes that represent that format. Though even more modern times tended to do the opposite: generating format description from model classes, and to stop caring about XML and using JSON and OpenAPI instead.
Yes, json have also a schema-definition. But I never saw it activly using by anybody.
XSD is often used by IDEs like eclipse to make code-suggestion (usefull or not). See:
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.