Skip to content
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

Parser vs complex type with more than 5,000 nodes #988

Open
Yadvo opened this issue Apr 19, 2024 · 1 comment
Open

Parser vs complex type with more than 5,000 nodes #988

Yadvo opened this issue Apr 19, 2024 · 1 comment

Comments

@Yadvo
Copy link

Yadvo commented Apr 19, 2024

I am working with a xsd that covers the Polish e-invoice:
http://crd.gov.pl/wzor/2023/06/29/12648/

Some of the elements have a weird approach as this:
<xsd:element name="NowySrodekTransportu" maxOccurs="10000">

There are some sample e-invoices available:
https://www.podatki.gov.pl/media/9538/przyk%C5%82adowe-pliki-dla-struktury-logicznej-e-faktury-fa-2.zip

While trying to validate them, I am getting this:
"message": "Current configuration of the parser doesn't allow the expansion of a content model for a complex type to contain more than 5,000 nodes.",

So I tried to do the following:
(1) -Djdk.xml.maxOccurLimit=11000
(2) in setting.json: "xml.symbols.maxItemsComputed": 11000,

The issue with the 5000 nodes still persists.

@angelozerr
Copy link
Contributor

The settings should work but perhaps we have a bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants