2 Replies Latest reply: Jun 21, 2012 4:38 PM by 945165 RSS

    ORA-19007: Schema - does not match expected

    945165
      We've successfully registered a schema, but when we try to load an XML file we get this error:
      ORA-19007: Schema - does not match expected
      http://localhost:8080/public/xtcedev/xsd/XTCE.xsd.

      The XML file validates against the XSD file so that shouldn't be the issue.

      The XSD file begins:
      <?xml version="1.0" encoding="UTF-8"?>
      <schema xmlns:xtce="http://www.omg.org/space/xtce" xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.omg.org/space/xtce" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.1">

      The XML file begins:
      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <xtce:SpaceSystem xmlns:xtce="http://www.omg.org/space/xtce" name="Orion" shortDescription="Orion"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://localhost:8080/public/xtcedev/xsd/XTCE.xsd">

      Looking at the user_xml_schemas table:
      SQL> select schema_url from user_xml_schemas;

      SCHEMA_URL
      -------------------------------------------------

      http://localhost:8080/public/xtcedev/xsd/XTCE.xsd

      I'm guessing there is something wrong with my schemaLocation, but I have no idea what.