• 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

schema validation with xerces

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am having a problem with schema validation using xerces 2.5.
I've got a main schema that includes (using xs:include) a 2nd schema which defines some types used in the main one. I set up an EntityResolver so both schemas are found by the parser.
I see the EntityResolver being called for both schemas and it opens up the correct file and creates and InputSource for the parser to use but the included schema is never used and I get errors saying that the types are not defined. If I paste the 2nd schema into the main one everything works.
I can even screw up the included schema to where it's not valid an xerces won't complain. It's like xerces completly ignores the included schema.
Is this just not supported by xerces or am I doing something wrong?
thanks.
 
Eugene Yusim
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
nevermind.
I realized I had an older version of xerces in my class path and this all works with 2.5.
reply
    Bookmark Topic Watch Topic
  • New Topic