Click to See Complete Forum and Search --> : schema pairs/namespaces


Zak
01-24-2005, 12:22 PM
I hope someone here can help me out with this problem.
As simple as it looks i simply cannot solve it.
I am a newcomer to XMl and have read through various pieces on schemas, namespaces etc..but this has just stumped me !!!

-------------------------------
I keep getting the following error mesages..depending on the changes i make to it:

"The file is not valid. The schema constraint/validation rule that failed was: Schema/schemaLocation/pairs'

or

"unable to locate a reference to a supported schema"
-------------------------------------------------------------

Here is schema syntax from the XMl file:

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="C:\Documents and Settings\ZakJones\Desktop\assignment\assign1.xsl"?>
<Products xmlns="http://www.my-company.com/namespace"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.my-company.com/namespace/assign1.xsd">

XSL File:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="assign1.xml"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2000/10/Schema-instance" xsi:SchemaLocation="http://www.my-company.com namespace/assign1.xsd">

XSD file:
<xs:schema xmlns="http://www.my-company.com/namespace" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.my-company.com/namespace" elementFormDefault="qualified" attributeFormDefault="unqualified"

Any help would be much appreciated. Zak

XMLStick
02-13-2005, 01:38 PM
Use FREEWARE XMLFox XML/XSD editor:
http://www.xmlfox.com/xml_schema_editor.htm

XML data format is omnipresent these days. You probably come across XML in your quotidian development tasks more or less frequently. But unless you are really drawn in it, you are hardly to be an expert in all of the innumerable XML standards out there. For example, take a look at XSD schema format. You may know that XSD allows you to specify the schema of an XML file that is a data container. But how you can create the XSD schema?
XMLFox offers free and graphical answers to that question. XMLFox is an XML editing and validation tool for creating valid, well-formed XML documents and/or XSD Schema. It includes an XML View, XML Tree, XML Grid, and XML Script modes for editing, as well as extensive find capabilities for text and XML data. Additional features include XML and Schema Validation, standard editing features, XSD Schema building and more.