Skip to content

StaEDIXMLStreamWriter isn't validating against provided schema #282

Answered by MikeEdgar
d-floyd asked this question in Q&A
Discussion options

You must be logged in to vote

@d-floyd - you will also need to set the control schema on the EDIStreamWriter. You can obtain one of the built-in control schemas using SchemaFactory#getControlSchema. For your example it would be getControlSchema("X12", new String[] { "00501" });.

The reader automatically loads them, but not (yet) for the writer. I opened #283 for that enhancement.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@d-floyd
Comment options

Answer selected by d-floyd
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