Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML file not being validated against XSD document

Status
Not open for further replies.

varocho

Programmer
Dec 4, 2000
238
US
I'm creating an XML file using a servlet and the JDOM API. The file includes a reference to the XSD file that describes the structure the XML file should have. However, I've noticed that after commenting out code that would write a couple of required (i.e., minOccurs = "1") sections to the XML file, the servlet still creates the XML file anyway. I would've thought I would have gotten an error message of some sort. So is it the case that I'll need to modify my servlet code so it checks that all the required sections of the XML file are present?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top