Oxy7.1 Cannot Find My Schema XSD File

This should cover W3C XML Schema, Relax NG and DTD related problems.
mphare
Posts: 71
Joined: Fri Apr 30, 2004 8:00 pm
Location: Texas

Oxy7.1 Cannot Find My Schema XSD File

Post by mphare » Tue Apr 18, 2006 8:06 pm

Here is the top of my XML:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!-- A Generalized Command using XML -->
<nmixml:message xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="xml.nmie.fujitsu.com http://mharedt001/XML/NMIRepository/Schema/R1_0/nmi.xsd"
xmlns="xml.nmie.fujitsu.com" xmlns:nmixml="xml.nmie.fujitsu.com" nmi-maj-version="1"
nmi-min-version="0">
<nmixml:header>
<nmixml:source product-id="FW6530" maj-version="1" min-version="1"/>
</nmixml:header>
The XSD is published on my local apache server, just for testing. But Oxy7.1 says it can't find the XSD file.
SystemID: null
Description: schema_reference.4: Failed to read schema document 'http://mharedt001/XML/NMIRepository/Schema/R1_0/nmi.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
URL: http://www.w3.org/TR/xmlschema-1/#schema_reference
nmi.xsd is a Schema file, I tried the same files in XMLSpy and they were validated without a problem.

The Schema was generated using Oxy7.1, here is the top of that file:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="xml.nmie.fujitsu.com" xmlns:nmixml="xml.nmie.fujitsu.com" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="message">
<xs:complexType>
<xs:sequence>
Is there something I need to configure in Oxy7.1 to allow validation of this type?
--------------------------

- mike

GnuPG Key fingerprint = 1AD4 726D E359 A31D 05BF ACE5 CA93 7AD5 D8E3 A876

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache » Wed Apr 19, 2006 12:29 pm

Hello,

If the same URL can be accessed from other applications probably you do not have the same proxy settings in <oXygen/> (Options -> Preferences -> HTTP/Proxy Configuration) as in other applications. To check this go to menu File -> Open URL and in the File URL field of the dialog enter the schema URL and press OK:

Code: Select all

http://mharedt001/XML/NMIRepository/Schema/R1_0/nmi.xsd
Is the schema file opened in a new editor panel ? Is an error message displayed in the dialog and the schema file is not opened ?

Regards,
Sorin

mphare
Posts: 71
Joined: Fri Apr 30, 2004 8:00 pm
Location: Texas

Post by mphare » Wed Apr 19, 2006 5:58 pm

Thanks Sorin, that was it.
--------------------------

- mike

GnuPG Key fingerprint = 1AD4 726D E359 A31D 05BF ACE5 CA93 7AD5 D8E3 A876

Post Reply