-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when parsing a field which was not present in the xsd file #14
Comments
I noticed it's not possible to create a pull request for a specific commit or release so i forked the repository and fixed it for my project. |
@davidspiess Maybe here is not the best place to ask, but since you are using cxsd, do you have any doc on how to use it with cxml? Thanks! |
I used the 0.1.1 version as there is documentation for that You have to pass the output of cxsd as second parameter to the parser. import * as cxsd from 'cxsd/outputfiles';
const parser = new cxml.Parser();
parser.parse('<xml></xml>', cxsd.document); |
Thanks a lot :) So you're using a custom cxml, makes sense. Is it a fork of 0.1.1? |
Always glad to help! 😄 |
If the parser (v.0.1.1) encounters a field which is not part of the xsd, it throws the following error
If my xml provider adds a new field to their api my whole application breaks until i regenerate the xsd with
cxsd
.The text was updated successfully, but these errors were encountered: