Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why its happening like this..

 
arun sharma
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post the snippet of your java code.
This may also happen if you turn validation to ON.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic