[jdom-interest] Creating XML document from given input based on XML Schema

Jamal Najmi najmiaj at yahoo.com
Wed Apr 3 00:57:17 PST 2002


Hi, 

Is it possible to programmatically create an XML
document given an XML schema.  In other words I have a
set of data and I have XML Schema.  Now based on the
XML Schema I need to programmatically create an XML
document from the data available.  Is it possible
using JDOM or any other API.  So program to build XML
does not have prior knowledge of XML document
structure, XML Schema will guide the program through
creating an XML document. 

This is not exactly validating an XML as it is
generated.  
 
Thanks    

Jamal

--- Jason Hunter <jhunter at acm.org> wrote:
> Right, there's no way to validate an XML doc as it's
> being created.  No
> API does this, as far as I'm aware.
> 
> -jh-
> 
> Jamal Najmi wrote:
> > 
> > Does that also mean there is no way to validate an
> XML
> > document as it is being created from scratch using
> > JDOM API?  If answer is no then our only bet is to
> > create the XML and then validate it against the
> XML
> > Schema using JDOM and not necessarily parse it.
> > 
> > This leads to my next question, is it possible to
> > validate an XML and not parse it using JDOM?
> > 
> > Thanks
> > 
> > Jamal
> > 
> > --- Jason Hunter <jhunter at acm.org> wrote:
> > > Not currently, although I found a volunteer at
> > > JavaOne who's interested
> > > in working on that!
> > >
> > > -jh-
> > >
> > > "Gu Xueying (Shinnie Gu)" wrote:
> > > >
> > > > hi,
> > > > I have a question about validation.
> > > > I use JDOM and when I have got a document by
> > > parser and have made some
> > > > changes to the jdom tree(document)
> > > > then I want to know whether the document which
> has
> > > been changed is valid
> > > > according to DTD.
> > > > Is there any method in JDOM to do that
> validation
> > > except parsing the
> > > > document again?
> > > > Any help is appreciated.
> > > >
> > > > Thanks
> > > > Shinnie
> > > >  58305001 - 8701
> > > >
> > > >
> _______________________________________________
> > > > To control your jdom-interest membership:
> > > >
> > >
> >
>
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
> > > _______________________________________________
> > > To control your jdom-interest membership:
> > >
> >
>
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Tax Center - online filing with TurboTax
> > http://http://taxes.yahoo.com/


__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/



More information about the jdom-interest mailing list