Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

meta file failing XML validation

Help
mikew
2012-01-17
2013-05-29
  • 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
    
     

    Related

    Code: code

  • mikew
    mikew
    2012-01-17

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