A Diagnostic Message for the Valid Schema [message #568832] |
Fri, 02 May 2003 10:18 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02594 seconds