• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

validation

 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
currently is there any Java API that will validate an XML file against an XML Schema?
 
Ranch Hand
Posts: 395
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I think Java Architecture for XML Binding (JAXB) will be useful. But I am not sure how far it is Schema Validation. Because when you use this, it validates the XML file against the Schema which is a DTD. If the XML doesn't bind to the DTD provided the the Java files are not at all created.
In the later versions of this, other Schema languages are supported.(yet to be released.
Thanks.

------------------
L Goundalkar
lggoundalkar@hotmail.com
Sun Certified Programmer for Java 2 Platform
 
Rob Bass
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are working on a very large scale program, there is no way we can justify telling client that the heart of the program will be in an early release API that does not support XML Schemas.
I think Xerces 1.42 support XML Schema validation?

Originally posted by L Goundalkar:
Hi,
I think Java Architecture for XML Binding (JAXB) will be useful. But I am not sure how far it is Schema Validation. Because when you use this, it validates the XML file against the Schema which is a DTD. If the XML doesn't bind to the DTD provided the the Java files are not at all created.
In the later versions of this, other Schema languages are supported.(yet to be released.
Thanks.


 
Who knew that furniture could be so violent? Put this tiny ad out there to see what happens:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic