W3C home > Mailing lists > Public > xmlschema-dev@w3.org > November 2003

RE: how to create an xml

From: Cams Ismael <Ismael.Cams@siemens.com>
Date: Fri, 14 Nov 2003 10:11:41 +0100
Message-ID: <57FD2C3A246F76438CA6FDAD8FE9F1957ABE7E@hrtades7.atea.be>
To: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
Cc: "'xmljava2003@yahoo.com'" <xmljava2003@yahoo.com>
the only tool that I know that validates automatically when generating XML
is JAXB (http://java.sun.com/xml/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/ <http://www.saxproject.org/> ). But if you are
sure that you are writing valid xml, there is no need for extra validation.
Kind regards,

-----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.


Do you Yahoo!?
Protect  <http://antispam.yahoo.com/whatsnewfree> your identity with Yahoo!
Mail AddressGuard
Received on Friday, 14 November 2003 04:11:53 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:03 UTC