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

RE: how to create an xml

From: Jack Lindsey <tuquenukem@hotmail.com>
Date: Fri, 14 Nov 2003 23:42:43 -0500
To: david.bau@bea.com, naren.chawla@oracle.com, Ismael.Cams@siemens.com, xmlschema-dev@w3.org
Cc: xmljava2003@yahoo.com
Message-ID: <Law15-F732i9ltpYMMa0000a8d1@hotmail.com>

Would this tool or others alleviate a problem I am hearing second-hand from 
some developers using my schemas?

I am putting id attributes on my xs:elements and xs:attributes that are 
references to numeric data element identifiers in a data dictionary so that 
I can generate documentation annotations in French or English from the 
dictionary using XSLT.  The developers in an J2EE encironment (no more 
details) want to generate java classes from the schema files but are 
encountering errors saying the schemas are not valid because the id values 
cannot begin with a numeric character and must be unique in the document.  
So it sounds like their software is considering them to be ids as in 
id/idrefs in an XML instance file. I could strip these ids before I issue 
the syntax-only versions of the schemas but they were supposed to be a 
"feature".  I am getting no complaints from Spy, MSXSL or Saxon.  Is their 
software ancient or what?

Cheers Jack


>From: "David Bau" <david.bau@bea.com>
>To: "Naren Chawla" <naren.chawla@oracle.com>,"Cams Ismael" 
><Ismael.Cams@siemens.com>, <xmlschema-dev@w3.org>
>CC: <xmljava2003@yahoo.com>
>Subject: RE: how to create an xml
>Date: Fri, 14 Nov 2003 19:43:25 -0500
>
>MessageAnand,
>
>Another schema-oriented tool to check out in Java xmlbeans, which is an 
>open-source tool in incubation in Apache.
>
>http://xml.apache.org/xmlbeans
>
>It allows you to compile any schema into Java classes.  It has the 
>advantage that it supports 100% of W3C XML Schema (including things like 
>type substitution and element substitution) and has a number of features to 
>help you build valid instances.  It also has the ability to help you 
>strictly validate parts your instance as you build it.
>
>David
>   ----- Original Message -----
>   From: Naren Chawla
>   To: Cams Ismael ; xmlschema-dev@w3.org
>   Cc: xmljava2003@yahoo.com
>   Sent: Friday, November 14, 2003 11:48 AM
>   Subject: [xmlschema-dev] RE: how to create an xml
>
>
>   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

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
Received on Friday, 14 November 2003 23:42:45 UTC

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