Couldn't find root element (/xs:schema/xs:element) or administrative...
Relational database replication tool based on XML Schema
Brought to you by:
yokochi
Hi, I am trying to see if I can convert http://accellera.org/images/xmlschema/ipxact/1685-2014/catalog.xsd into pgschema and I get the following error:
$ java -jar xsd2pgschema-2.0.0/xsd2pgschema.jar --xsd catalog.xsd
Couldn't find root element (/xs:schema/xs:element) or administrative elements (/xs:schema/[xs:complexType | xs:simpleType]) in a document.
Any ideas?
Dear Khailtash,
Thank you for your notice.
It seems xml.xsd has no any effective element that prevents schema generation. I have relaxed this restriction in currently available v2.1.0.
Please update xsd2pgschema, then type
$ java -jar xsd2pgschema-2.0.0/xsd2pgschema.jar --xsd http://accellera.org/images/xmlschema/ipxact/1685-2014/catalog.xsd -ddl catalog.schema
New version can automatically retreive other XML Schemata if you set URL of XML Schema.
Best regards,
Masashi
Last edit: Masashi Yokochi 2017-03-24
Thank you that is great. I assume the warning can be ignored:
WARNING: Couldn't find root element (/xs:schema/xs:element) or administrative elements (/xs:schema/[xs:complexType | xs:simpleType | xs:attributeGroup | xs:group]) in XML Schema: xml.xsd
Regards,
-- Amal