Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML/ DOM validation against Xml Schema

 
Christophe Grosjean
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • 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
 
timothy zimmerman
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Badal Kotecha
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic