Menu

#1 Couldn't find root element (/xs:schema/xs:element) or administrative elements (/xs:schema/[xs:complexType | xs:simpleType]) in a document.

2.0
closed
nobody
None
2017-03-28
2017-03-24
No

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?

Discussion

  • Masashi Yokochi

    Masashi Yokochi - 2017-03-24

    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
  • Amal Khailtash

    Amal Khailtash - 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

     
  • Masashi Yokochi

    Masashi Yokochi - 2017-03-28
    • status: open --> closed
     

Log in to post a comment.

Auth0 Logo