Meaningless Drivel is fun!*
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 Android Security Essentials Live Lessons 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
Author

Why its happening like this..

arun sharma
Greenhorn

Joined: Jul 02, 2003
Posts: 19
Hi;
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
thanks
arun
Balaji Loganathan
author and deputy
Bartender

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Why its happening like this..
 
Similar Threads
How to get the file path right?
Transformation Problem For Arabic/French Character : HTML to XML
Is anybody have solution for this...
root.getRootElement() is throwing an NullPointerException
DOM (xml) question