Menu

meta file failing XML validation

Help
mikew
2012-01-17
2014-08-12
  • mikew

    mikew - 2012-01-17

    So somehow I got this to work at one point but now it's not working (all using the same version of schemaspy)
    I've tried many different methods, and taken examples from the documentation. here is the XML and output from schemaSpy 5.0.0

    <schemaMeta>
            <tables>
                    <table name="items">
                            <column name="company_id">
                                    <foreignKey table="company" column="id"/>
                            </column>
                    </table>
            </tables>
    </schemaMeta>
    [code]
    Output:
    schema-meta.xml failed XML validation:
    $
    [code]
    <schemaMeta xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://schemaspy.sourceforge.net/xmlschema/2011/02/05/schemaspy.meta.xsd">
            <tables>
                    <table name="items">
                            <column name="company_id">
                                    <foreignKey table="company" column="id"/>
                            </column>
                    </table>
            </tables>
    </schemaMeta>
    [code]
    Output:
    Same as above
    [code]
    <?xml version="1.0" encoding="UTF-8"?>
    <schemaMeta xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://schemaspy.sourceforge.net/xmlschema/2011/02/05/schemaspy.meta.xsd">
            <tables>
                    <table name="items">
                            <column name="company_id">
                                    <foreignKey table="company" column="id"/>
                            </column>
                    </table>
            </tables>
    </schemaMeta>
    [code]
    Output:
    Same as above
    Here is what is in the example meta files on this site:
    [code]
    <schemaMeta xsi:noNamespaceSchemaLocation="http://schemaspy.sourceforge.net/xmlschema/2011/02/05/schemaspy.meta.xsd">
            <tables>
                    <table name="items">
                            <column name="company_id">
                                    <foreignKey table="company" column="id"/>
                            </column>
                    </table>
            </tables>
    </schemaMeta>
    [code]
    Output:
    [Fatal Error] schema-meta.xml:1:118: The prefix "xsi" for attribute "xsi:noNamespaceSchemaLocation" associated with an element type "schemaMeta" is not bound.
    schema-meta.xml failed XML validation:
    I really think I'm just doing something stupid, anyone see what it is?
    Thanks!
    - Mike
    
     
  • mikew

    mikew - 2012-01-17

    ugh sorry didn't properly close my code tags and no edit ability here!

     
  • Shruti

    Shruti - 2014-08-12

    I am facing the same issue. Anyone here knows the answer ? I am trying to add a meta file and all it says is

    " The prefix "xsi" for attribute "xsi:noNamespaceSchemaLocation" associated with an element type "schemaMeta" is not bound."

    my xml is pretty simple as well

    <schemaMeta xsi:noNamespaceSchemaLocation="http://schemaspy.sourceforge.net/xmlschema/2011/02/05/schemaspy.meta.xsd">
    <tables>

    <column name="accId">
    <foreignKey remoteCatalog="Test1" table="accountMaster" column="accId"/>
    </column>


    </tables>
    </schemaMeta>
    ~

     

Log in to post a comment.