Menu

No XML Schema found

Help
2006-10-06
2012-12-07
  • Nobody/Anonymous

    This must be an idiotic question, but I have opened a simple XML schema and pressed F5 to validate it, and I get "No XML Schema found". The schema is:

    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

    <xsd:element name="program">
      <xsd:complexType>
        <xsd:sequence>
          <xsd:element name="title" type="xsd:string" />
          <xsd:element name="preface" type="xsd:string" />
        </xsd:sequence>
      </xsd:complexType>
    </xsd:element>

    </xsd:schema>

    So it couldn't be much simpler!

    What do I need to do to validate a schema?

    Thanks in advance!

    Margy Young
    myoung@uua.org

     
    • gnschmidt

      gnschmidt - 2006-10-06

      Margy, the question makes perfect sense. To check the schema itself for validity, you can select XML>Validate>xmlschema (Ctrl+8, the penultimate RELAX NG schema).

      XML>Validate>XML Schema validates an instance document against the schema indicated in the schemaLocation or noNameSpaceSchemaLocation attribute.

      I hope this helps. If anything isn't working as it should, please let me know.

       

Log in to post a comment.