xsd2json
xsd2json copied to clipboard
issue with xsd referencing
Hi,
This is a great tool. I'm facing issue in the following scenario. XSD1.....>XSD2------>XSD3. It's throwing out error (going to infinite loop)while trying to reference xsd3. Is there a setting that restricting to do get 3rd level reference? Thanks, Purush
Hi,
could you please provide a minimal example which is currently failing?
Main xsd got following reference
<include schemaLocation="testmgmt/survey.xsd"></include>
survey.xsd
<xsd:include schemaLocation="Question.xsd"/>
When I try to convert to json, getting following error:
Always getting similar error with the third xsd refernces.
(7) Exit: remove_node(/Users/test/Documents/dev/apic/xsd2json/testmgmt/Question.xsd,[6,3,1,0]) # <1602>
CHR: (7) Redo: remove_node(/Users/test/Documents/dev/apic/xsd2json/testmgmt/Question.xsd,[6,3,1,0]) # <1602>
CHR: (6) Fail: remove_node(/Users/test/Documents/dev/apic/xsd2json/testmgmt/Question.xsd,[6,3,1,0]) # <1602>
CHR: (7) Wake: remove_node(/Users/test/Documents/dev/apic/xsd2json/testmgmt/Question.xsd,[8,3,1,0]) # <1602>
CHR: (8) Wake: node(/Users/test/Documents/dev/apic/xsd2json/testmgmt/Question.xsd,ns(xsd,http://www.w3.org/2001/XMLSchema),annotation,[1,1,0],[_139004|_139018],[1,0]) # <478>
CHR: (9) Wake: remove_node(/Users/test/Documents/dev/apic/xsd2json/testmgmt/Question.xsd,_123302) # <908>
CHR: (9) Exit: remove_node(/Users/test/Documents/dev/apic/xsd2json/testmgmt/Question.xsd,_123302) # <908>
CHR: (9) Redo: remove_node(/Users/test/Documents/dev/apic/xsd2json/testmgmt/Question.xsd,_123302) # <908>
CHR: (8) Fail: remove_node(/Users/test/Documents/dev/apic/xsd2json/testmgmt/Question.xsd,_123302) # <908>
CHR: (8) Exit: node(/Users/test/Documents/dev/apic/xsd2json/testmgmt/Question.xsd,ns(xsd,http://www.w3.org/2001/XMLSchema),annotation,[1,1,0],[_139004|_139018],[1,0]) # <478>^CAction (h for help) ? exit
Thanks, Purush Das
Hi I have a similar issue: xsd1 is referencing xsd2 and xsd3, whereas xsd2 is also referencing xsd3. It runs now for hours, same on Mac and on Windows. xsd1 has about 80 lines, xsd2 600 lines and xsd3 660 lines (with enums). xsd3 alone finishes in less than 2 minutes. Is that expected to run for hours?
Same is happening to me, with this XSD https://github.com/w3c/musicxml/blob/gh-pages/schema/musicxml.xsd, which references 2 other files. The process never ends.