Menu

Validating a XSD file

Help
2008-02-07
2012-12-07
  • Jeppe Svendsen

    Jeppe Svendsen - 2008-02-07

    Hi

    Im new to XML Copy Editor used to use XMLSpy. When I try to validate my Schemas in XML Copy Editor I get an error saying that my Schemas have no DTD. And yes that is right I just didnt think it was necesary. XMLSpy didnt care.

    Is it mandatory to give a DTD/Scheam for a Schema file?

     
    • gnschmidt

      gnschmidt - 2008-02-07

      Hi Jeppe, thanks for your message. Need to find a more elegant solution for this: for now you can select xmlschema from the RELAX NG validation options (see Validate... in XML menu).

      Will switch to Xerces Schema validation ASAP (in the past that wasn't as straightforward because I was using MSXML on Win, Xerces on Linux).

      In the meantime, the RELAX NG xmlschema grammar should work ok.

      -Gerald

       
      • Jeppe Svendsen

        Jeppe Svendsen - 2008-02-07

        Thanks

        It worked on my first Schema but it will not accept the include elements in the Schema.

         
    • gnschmidt

      gnschmidt - 2008-02-07

      OK this is clearly not the approach to take then. I will need to add a branch to the validation method s xsd files in the appropriate namespace are automatically validated by the Xerces Schema validator.

      Sorry about the inconvenience! Hope to get around to this soon.

      -Gerald

       

Log in to post a comment.