File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

==> DOM3 API again: validating xml file against schema

 
Aimee Best
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello again,

I have the following code that loads an xml file. I want to validate it against a schema. But it appears setParameter("validate", ... ) etc doesn't have any effect. I tested it with an xml file with invented elements, the program loads the xml file withoutu complaint.

Any ideas?

Thanks in advance.

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic