• 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/ DOM validation against Xml Schema

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone,
I need to validate a built DOM against a XML Schema. Is there a way to perform that ?
If not, how can I validate an XML file ?
Later, I must transform my DOM object into XML to store it into a database. If there is a reference to my XSD file, will the transformer perform the validation (or does it only check well-formedness?) ?
Can anyone help ?
Thanks
Christophe
 
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have not used it for this myself but I believe Xerces-J supports XSchema. You can check it out at http://xml.apache.org/xerces2-j/index.html.
Also there is a page with a list of tools and links http://www.w3.org/XML/Schema#Tools.
 
Christophe Grosjean
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well validation with Xerces works well with DTD but seems not working with XML Schema ?
Is there something particular to do while validating with XML Schema ?
Thanks if someone could tell me!!
Regards,
Christophe
 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I got the same problem...
when i m using xalan-j 2.2 xpath queries on xml document which is refering some xml schema is not working..
has anyone used ApplyXPath application provided with xalanj-2 2.2 .. its not working with schema... ?
Its working fine with DTD...

y is that so.... ?
ur help is highly appreciated....
thanks in adv.
Badal
www.necoinfotech.com
reply
    Bookmark Topic Watch Topic
  • New Topic