Skip to content
Discussion options

You must be logged in to vote

@apoorva-sriv , yes you can include a general schema in the transaction schema.

For example, this would be placed at the top of your schema before the <transaction> or <implementation>. When using the classpath: scheme, the file will be loaded using the Java class loader, so make sure it is available on the classpath. You can also use file: for schemas not on the classpath.

<include schemaLocation="classpath:/x12/005010/837-types.xml" />

Full example
[1] https://github.com/xlate/staedi/blob/master/src/test/resources/x12/005010/837.xml

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by apoorva-sriv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants