Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » A Diagnostic Message for the Valid Schema
A Diagnostic Message for the Valid Schema [message #568832] Fri, 02 May 2003 10:18
Eclipse UserFriend
Originally posted by: paechoi.earthlink.net

I have a simple test schema as follows:

<?xml version="1.0" encoding="UTF-8"?>
<!--W3C Schema generated by Pae -->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xsd:element name="CommonLogin">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="username" ref="usernameRef"/>
<xsd:element name="password" ref="passwordRef"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="passwordRef" type="xsd:string"/>
<xsd:element name="usernameRef" type="xsd:string"/>
</xsd:schema>

This is a very simple sample, but it is a valid schema. But when
I use the validate() and getDiagnostics() methods in the XSDSchema
interface it gives me a message as follows:

XSD: The element '#null' is not permitted as constrained by 'XML Schema ';
expecting schema

I do not understand what the message is saying. Any comments?


Pae
Previous Topic:Generating JAVA classes from XSDs
Next Topic:Access to XML header properties: How?
Goto Forum:
  


Current Time: Thu Apr 25 14:24:57 GMT 2024

Powered by FUDForum. Page generated in 0.02594 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top