ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  XML Document Validation with an XML Schema
Subject:   Error coming
Date:   2007-01-09 15:19:41
From:   javanew
Response to: Error coming

Now I specified specifying noNamespaceSchemaLocation attribute. Now my xml looks like this. Both xml and xsd are WSAD workspace, so I cannot give file path. There are in the same location. So, do i need to mention any relative path?
<?xml version="1.0" encoding="utf-8" ?>
<catalog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="catalog.xsd" >
<journal date="April 2004">
<title>Declarative Programming in Java</title>
<author>Narayanan Jayaratchagan</author>
<journal date="January 2004">
<title>Data Binding with XMLBeans</title>
<author>Daniel Steinberg</author>