Rewrite nodeparser based on SAX
Hi Roger, JavaVM 17 (or later) recognizes --add-opens option, but older JavaVM does not accept. Please check version of JavaVM again, Or type unset JAVA_OPT_X2P if necessary. Regards, Masashi
Rewrite nodeparser based on StAx
Hello, I am trying to run xsd2pgschema on FreeBSD 13.3. I have the following setup: xsd2pgschema.jar@ -> xsd2pgschema-jdk17.jar I have created a script to start the application: !/usr/local/bin/zsh -f export JAVA_OPT_X2P="--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.math=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.util.concurrent=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.text=ALL-UNNAMED --add-opens...
Hello Masashi! Thanks for your feedback. Indeed the error message is now more clear, thanks for the improvement! I've tested with both the wrong xsd and the right one, it worked perfectly! Regards from Brazil, Claudio Neves
The error message of recently re-released v5.3.9/v4.4.9 has been improved to help users take action. net.sf.xsd2pgschema.PgSchemaException: Not found root table in XML Schema: https://raw.githubusercontent.com/nfephp-org/sped-nfe/master/schemes/PL_009_V4/leiauteNFe_v4.00.xsd Hint: The file contains only abstract schema definitions and must be used in the root schema via the xs:import or xs:include mechanism. You must specify a root schema file that describes the entire XML instance. at net.sf.xsd2pgschema.PgSchema.<init>(PgSchema.java:2538)...
The error message of recently re-released v5.3.9/v4.4.9 has been improved to help users take action. net.sf.xsd2pgschema.PgSchemaException: Not found root table in XML Schema: https://raw.githubusercontent.com/nfephp-org/sped-nfe/master/schemes/PL_009_V4/leiauteNFe_v4.00.xsd. Hint: The file contains only abstract schema definitions and must be used in the root schema via the xs:import or xs:include mechanism. You must specify a root schema file that describes the entire XML instance. at net.sf.xsd2pgschema.PgSchema.<init>(PgSchema.java:2538)...
The error message has been improved to help users take action. net.sf.xsd2pgschema.PgSchemaException: Not found root table in XML Schema: https://raw.githubusercontent.com/nfephp-org/sped-nfe/master/schemes/PL_009_V4/leiauteNFe_v4.00.xsd. Hint: It looks like the file contains only pure abstract schema definitions, you must specify a root schema file that describes the entire XML instance. at net.sf.xsd2pgschema.PgSchema.<init>(PgSchema.java:2538) at xsd2pgschema.main(xsd2pgschema.java:239)</init...
Reimprove message for Not found root table error
Update README
Improve message for Not found root table error
Reimprove message for Not found root table error
Update README
Improce message for Not found root table error
Reimprove message for Not found root table error
Update README
Improve message for Not found root table error
Reimprove message for Not found root table error
Update README
Improve message for Not found root table error
Update README
Retrieve XSD file from URL (xsdvalidator main class)
Fix a typo of README
Update README
Retrieve XSD file from URL (xsdvalidator main class)
Fix a typo of README
Update README
Retrieve XSD file from URL (xsdvalidator main class)
Fix a typo of README
Update README
Retrieve XSD file from URL (xsdvalidator main class)
Fix a typo of README
Hey, I'm trying run your converting tool, but always get StackOverflowError. I run with this command: java %JAVA_OPT_X2P% -cp xsd2pgschema-5.3.8\xsd2pgschema.jar xsd2pgschema --xsd SAF_T_V1.3.xsd --ddl saft\saft.ddl --realize-simple-brdg --doc-key --pg-map-date --pg-map-timestamp --field-annotation --pg-comment-on --ser-key --case-insensitive Exception in thread "main" java.lang.StackOverflowError at java.base/java.util.concurrent.ForkJoinTask.trySetThrown(ForkJoinTask.java:329) at java.base/java.util.concurrent.CountedCompleter.trySetException(CountedCompleter.java:743)...
Hi Claudio, leiauteNFe_4.00.xsd defines abstract schema components that can not be used for XML instantiation. 'nfe_v4.00.xsd' seems like a right file for the purpose. java -cp xsd2pgschema.jar xsd2pgschema --xsd https://raw.githubusercontent.com/nfephp-org/sped-nfe/master/schemes/PL_009_V4/nfe_v4.00.xsd --ddl nfe_v4.sql Regards,
Hello! I'm getting this error when running xsd2pgschema : net.sf.xsd2pgschema.PgSchemaException: Not found root table in XML Schema: leiauteNFe_v4.00.xsd at net.sf.xsd2pgschema.PgSchema.<init>(PgSchema.java:2538) at xsd2pgschema.main(xsd2pgschema.java:239) Here is the command line I'm running: java -cp xsd2pgschema.jar xsd2pgschema --xsd leiauteNFe_v4.00.xsd --ddl ddl.sql The XSD is located here: https://raw.githubusercontent.com/nfephp-org/sped-nfe/master/schemes/PL_009_V4/leiauteNFe_v4.00.xsd It's...
Fixed local restriction for nested key
Fixed local restriction for nested key
Fixed local restriction for nested key
Fixed local restriction for nested key
Minor code refactoring
Re-release v5.3.9
Minor code refactoring
Fixed missing of some simple content (bypassed via simple bridge table) when in-lining simple content
Revised DDL description of ignored local restrictions of common simple content
Revise User Guide to avoid confusion of '--update' option [General Discussion - How to use --update properly?]
Minor code refactoring
Re-release v5.3.9
Re-release v5.3.9
Minor code refactoring
Fixed missing of some simple content (bypassed via simple bridge table) when in-lining simple content
Revised DDL description of ignored local restrictions of common simple content
Revise User Guide to avoid confusion of '--update' option [General Discussion - How to use --update properly?]
Minor code refactoring
Re-release v5.3.9
Minor code refactoring
Fixed missing of some simple content (bypassed via simple bridge table) when in-lining simple content
Revised DDL description of ignored local restrictions of common simple content
Revise User Guide to avoid confusion of '--update' option [General Discussion - How to use --update properly?]
Re-release v4.4.9
Minor code refactoring
Fixed missing of some simple content (bypassed via simple bridge table) when in-lining simple content
Revised DDL description of ignored local restrictions of common simple content
Revise User Guide to avoid confusion of '--update' option [General Discussion - How to use --update properly?]
Sorry for late reply. To update existing XML content in the database while preserving the source XML file name, the system needs to know whether the XML file has changed since the last update. Otherwise, the primary keys will conflict as you see. The issue can be resolved by adding --sync (checksum directory name) option. The system can notice change of XML contents of the source XML file and update without the key conflict. All previous versions since 2018 supported this feature.
Thanks for report. New v5.3.9 and v4.4.9 are released to address this issue.
Fixed StackOverflowError [General Diccussion - Exception in thread "main" java.lang.StackOverflowError]
Fixed StackOverflowError [General Diccussion - Exception in thread "main" java.lang.StackOverflowError]
Fixed StackOverflowError [General Diccussion - Exception in thread "main" java.lang.StackOverflowError]
Fixed StackOverflowError [General Diccussion - Exception in thread "main" java.lang.StackOverflowError]
Fixed --table-excl option did not work in standalone mode
Fixed --table-excl option did not work in standalone mode
Fixed --table-excl option did not work in standalone mode
Fixed --table-excl option did not work in standalone mode
Error: InaccessibleObjectException: Unable to make field private final byte[]
Closed. Tips for Java21 on macOS enviroment have been described in User Guide.
Release v4.4.9
Remove redundant codes
Release v5.3.9
Remove redundant codes
Update User Guide