- From: Naren Chawla <naren.chawla@oracle.com>
- Date: Fri, 14 Nov 2003 08:48:53 -0800
- To: "Cams Ismael" <Ismael.Cams@siemens.com>, <xmlschema-dev@w3.org>
- Cc: <xmljava2003@yahoo.com>
- Message-ID: <JIEGIJNAOKLEMHHPLJOOAEJGCEAA.naren.chawla@oracle.com>
Hi Anand: Have you considered using XDB features in Oracle DB ? Depending on system architecture for your application, XDB might be an option. When you use XDB, you can validate during storage. Otherwise, all good parsers (Xerces, Oracle, etc..) support validation against schema on parsing. You have to make sure that you do – setValidationMode(true). --Naren -----Original Message----- From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org]On Behalf Of Cams Ismael Sent: Friday, November 14, 2003 1:12 AM To: 'xmlschema-dev@w3.org' Cc: 'xmljava2003@yahoo.com' Subject: RE: how to create an xml Hello, the only tool that I know that validates automatically when generating XML is JAXB ( http://java.sun.com/xml/jaxb/). But this supports only a subset of the W3C Schemas. You could also write your xml and validate if afterwards with a SAX parser ( http://www.saxproject.org/). But if you are sure that you are writing valid xml, there is no need for extra validation. Kind regards, Ismaël -----Original Message----- From: XML Java [mailto:xmljava2003@yahoo.com] Sent: maandag 10 november 2003 23:08 To: xmlschema-dev@w3.org Subject: how to create an xml Hello Everybody, My J2EE web application has to read data from an Oracle database and generate an XML which should confirm to a given XSD file. I can create this XML file using java to retrieve data from DB and write it to an XML using File I/O. Is this the correct way to do it or should I be using some Free Utility code which will validate the XML file(against the given XSD) as it creates it? I was thinking that since I will be writing Java code to create the XML it will anyways comply with specified XSD. Thanks in advance. Regards, Anand _____ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard <http://antispam.yahoo.com/whatsnewfree>
Received on Friday, 14 November 2003 11:56:56 UTC