Menu

XML Schema unavailable?

Help
2006-12-15
2012-12-07
  • Nobody/Anonymous

    Hi,

    What am I missing? I can't get XML Copy Editor to validate the below listed (very simple) XML against the - also listed - XSD. Similar questions have been posted earlier, but - unfortunately - without an answer. For working with stylesheets, I am very happy with XML Copy Editor. Who can help increase my enthusiasm by getting XML validation to work?

    <?xml version="1.0" encoding="UTF-8"?>
    <test xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:/Test/test.xsd">
      <key>240665</key>
      <description>Hello</description>
    </test>

    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:complexType name="CT_test">
        <xs:sequence>
          <xs:element name="key" type="xs:string"/>
          <xs:element name="description" type="xs:string"/>
        </xs:sequence>
      </xs:complexType>
      <xs:element name="test" type="CT_test"/>
    </xs:schema>

    Thanks,
    Maarten

     
    • gnschmidt

      gnschmidt - 2006-12-15

      Thanks Maarten. Alas, your file validates fine on my XP setup (XML Copy Editor 1.0.8.5 with MSXML 4.0).

      Normally the 'XML Schema unavailable' error message is shown on Windows when:

      MSXML is called successfully.
      MSXML parses the file and creates the document tree.
      MSXML is unable to validate the document against the schema.

      My suggestion would be to install MSXML 4, 5 or 6 on your system.

      <Similar questions have been posted earlier, but - unfortunately - without an answer.>
      I wasn't aware that questions have gone unanswered. Difficulties arise when errors are reported but prove hard to reproduce, but I have tried to respond to all queries.

      The long-term solution will be using Xerces-C rather than MSXML for Schema validation (this is what already happens in the Linux build), but so far I have not been able to find a port of Xerces-C that is compatible with the MinGW compiler.

       
    • Nobody/Anonymous

      It works!!! After installing MSXML 4 (and removing MSXML 6, which I had; somehow 4 and 6 together gives trouble?), I have now the same XP setup as yours and that did the trick.

      Thanks a lot for your prompt response and willingness to help (which I did not intend to question),
      Maarten

       
      • gnschmidt

        gnschmidt - 2006-12-15

        Thanks for trying this and letting me know! This would also explain the trouble another user has had with xsd validation. It means that I should be able to install MSXML 6 on my computer and tweak the automation instructions until validation works with MSXML 6 as well as 4...

        Either way: Xerces-C is the most satisfactory long-term solution. I'll get it to work on Windows one of these days...

        Regards,
        Gerald

         
    • Nobody/Anonymous

      I get the same problems with XML Copy Version 1.0.9.1. Starting with MSXML4 all works fine. Install MSXML6 and it cannot validate XSD schema. Any chance of a fix?

       
      • gnschmidt

        gnschmidt - 2007-03-13

        Thanks for your message. I will have to change this for 1.0.9.2 - the current implementation tries to locate MSXML 6, 5 and 4 (in this order). MSXML 6.0 clearly breaks the interface in some fundamental way, so I will take it out for the next release. If you let me have your email I can let you know when it's done.

        Best,
        Gerald

         
    • gnschmidt

      gnschmidt - 2007-03-17

      Should be fixed as of 1.0.9.2.
      -Gerald

       

Log in to post a comment.