• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

XML Schema validation

 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I'm having a problem with validating a XML with a Schema.
The problem is that I need to specify some URL's to use for the validation, but they don't work.
The URL's are:
http://java.sun.com/xml/jaxp/properties/schemaLanguage
http://java.sun.com/xml/jaxp/properties/schemaSource
Any idea or is there some other URL's to use?
/Rene
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Rene,
Not a answer to question.
I would like to know whether you are doing the validation from a servlet or from command prompt.
I'm trying to create servlet to validate my instance against schema using "msv",its not working.
Did u tried something like that ?
Regards
Balaji
 
Rene Larsen
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Balaji
I'm doing it from a standalone application (it is only a test program just to be familiar with schema validation).
I'm following this Tutorial.
Rene
 
Balaji Loganathan
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the link Rene
 
Rene Larsen
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've sovled my problem.
According the 'JavaTM API for XML Processing Release Notes 1.2' - Using JAXP 1.2 with version 1.4.0 of the Java 2 platform.

To use the JAXP 1.2 implementation, copy all of the jar files except jaxp-api.jar into
<JAVA_HOME>/jre/lib/endorsed/


I did that to. But I forgot to copy the jar files to 'C:\Program Files\Java\j2re1.4.1\lib\endorsed\'.
Rene
 
reply
    Bookmark Topic Watch Topic
  • New Topic