File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes Why its happening like this.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Why its happening like this.." Watch "Why its happening like this.." New topic

Why its happening like this..

arun sharma

Joined: Jul 02, 2003
Posts: 19
I am having a XML file with Schema defined ..
But while parsing in java it is throwing following message..
[Error] Test.xml:2:9: Document is invalid: no grammar found.
[Error] Test.xml:2:9: Document root element "library", must match DOCTYPE root "null".
Can u tell why it is like this
Balaji Loganathan
author and deputy

Joined: Jul 13, 2001
Posts: 3150
Can you post the snippet of your java code.
This may also happen if you turn validation to ON.

Spritle Software Blogs
I agree. Here's the link:
subject: Why its happening like this..
It's not a secret anymore!