Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

XSD valdation  RSS feed

 
prabu padmanathan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

I have created a java class as like http://www.oracle.com/technology/pub/articles/vohra_xmlschema.html , i have used DOM parser,

and
1. i have used LoadJava tool to upload my java class to oracle server,
2. I have created a PL/SQL function to invoke this java class to validate XML against the xsd.

But my problem is ,When i invoke the PL/SQL function i am passing XML as string and XSD as CLOB field to the java class , is any other way to cache the xsd into the java class instead of frequent reading clob ?

I want ti increase the performance.

* Since my xsd getting changed frequently am moving to this solution otherwise schema based XMLTYPE would be better for xml validation
 
Janeice DelVecchio
Bartender
Posts: 1812
12
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not REALLY an Oracle question... I suppose I don't really know the BEST place for you to get the most relevant answers, but let's get you to the performance forum to see how that might fit there....

 
prabu padmanathan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Since my xsd getting changed frequently am moving to this solution otherwise schema based XMLTYPE would be better for xml validation

Doesn't this mean you can't cache your schema?
 
prabu padmanathan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Since my environment will have daily boot , i can clear the cache daily , and my xsd will get change monthly once.

Thanks
Prabu.P
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!