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

validating xml

 
Jigar Naik
Ranch Hand
Posts: 761
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

I have written a method to validate xml from the xsd

bellow is the code.



the xml is validating fine as per the xsd but the problem is that, it's taking considerable time for reading xsd from the file system.

is there anyway i can make this process fast. ???

Thanks & Regards,
 
Jelle Klap
Bartender
Posts: 1951
7
Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, a Schema instance is perfectly thread-safe, so you can (lazily) initialize and share the instance among as many threads and re-use it as many times as you see fit. Incidentally, the same does not apply to the Validator class.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic