Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Unresolved element when validate using DOM format
Unresolved element when validate using DOM format [message #583397] Wed, 11 February 2004 23:09
Joshua Hui is currently offline Joshua HuiFriend
Messages: 23
Registered: July 2009
Junior Member

When I parsed the xsd file as DOM and set it to XSDSchema for validation,
gave me the following error.

At node [xsd:element], XSD: Element Reference ''
is unresolved

However, if I parsed the xsd file directly, it works fine. Any idea?

Here is the XSD file. The properties element does exist in the "xyz.xsd"
schema file in the given location.

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:cm=""
<xsd:import namespace=""
schemaLocation="file:///c:/tmp/xyz.xsd" />
<xsd:element name="Simple30">
<xsd:element maxOccurs="1" minOccurs="0" ref="cm:properties"/>
<xsd:attribute name="varchar200" use="optional" default="Hello">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="200" />

Here is how I validate the schema.

Element schemaElem = xsdDOMObject.getDocumentElement();

if (schemaElem.getLocalName().equals("schema")
XSDConstants.isSchemaForSchemaNamespace(schemaElem.getNamesp aceURI())) {

xsdSchema = xsdFactory.createXSDSchema();

// Check the result of parsing schema
} else {
// Throw an exception


Previous Topic:Retreiving the original content of an extended type
Next Topic:How to provide a different schema content
Goto Forum:

Current Time: Wed Oct 21 13:01:17 GMT 2020

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

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

Back to the top