aspose file tools*
The moose likes XML and Related Technologies and the fly likes XML - Cannot find the declaration of the element .... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML - Cannot find the declaration of the element ...." Watch "XML - Cannot find the declaration of the element ...." New topic
Author

XML - Cannot find the declaration of the element ....

Roger F. Gay
Ranch Hand

Joined: Feb 16, 2007
Posts: 395
I set up an XML file reader that validates using schema, then wanted to add some simple xml files to my application that do not have schema. I seem to be having difficulty turning schema checking off completely. I keep getting an error that says "Cannot find the declaration of the element 'plan'." I've been googling on this for some time, and everything I've found talks about a schema validation error.

Here's a sample xml file:


Here's the code I've been trying to get to work with it.


Correlation does not prove causality.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XML - Cannot find the declaration of the element ....