Page 1 of 1

Oxy7.1 Cannot Find My Schema XSD File

Posted: Tue Apr 18, 2006 8:06 pm
by mphare
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?

Posted: Wed Apr 19, 2006 12:29 pm
by sorin_ristache
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

Posted: Wed Apr 19, 2006 5:58 pm
by mphare
Thanks Sorin, that was it.