[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [xml-dev] Dynamically structuring an xml doc based on given schema
Hi!
thanks guys, i'll have a try at what you all have
suggest on XSL =)
Rgds,
Javier
--- Manos Batsis <m.batsis@bsnet.gr> wrote: > You guys
might want to check an xslt approach at
>
>
http://www.incrementaldevelopment.com/papers/xsltrick/#schema-to-instanc
> e
>
> Kindest regards,
>
> Manos
>
> -----Original Message-----
> From: Erik Beijnoff [mailto:erik@addsystems.com]
> Sent: Tuesday, November 27, 2001 3:36 PM
> To: 'Ho Chok Chiat'
> Cc: xml-dev@lists.xml.org
> Subject: Re: [xml-dev] Dynamically structuring an
> xml doc based on given
> schema
>
>
> >-----Ursprungligt meddelande-----
> >Fran: Ho Chok Chiat
> [mailto:hochokchiat@yahoo.com.sg]
> >Skickat: Tuesday, November 27, 2001 2:00 PM
> >Till: xml-dev@lists.xml.org
> >Amne: [xml-dev] Dynamically structuring an xml doc
> based on
> >given schema
> >
> >
> >hello =)
> >
> >I am a beginner to Java XML programming and wish to
> ask if it
> >is possible
> >to programmatically generate a xml document based
> on the
> >schema as made
> >public by another party?
> >
> >Also, i have setup JXAP but there seems to be some
> problem
> >with it locating
> >the DefaultHandler class. Compilation is fine, but
> gives an
> >error whenever
> >i try to execute the parser. Anyone has any idea
> what the
> >problem might be?
> >
> >This is the error generated:
> >
> >Exception in thread "main"
> java.lang.NoClassDefFoundError:
> >org/xml/sax/helpers/D
> >efaultHandler
> > at
> java.lang.ClassLoader.defineClass0(Native Method)
> > at
> java.lang.ClassLoader.defineClass(Unknown Source)
> > at
> java.security.SecureClassLoader.defineClass(Unknown
> Source)
>
> > at
> java.net.URLClassLoader.defineClass(Unknown Source)
> > at
> java.net.URLClassLoader.access$100(Unknown Source)
> > at java.net.URLClassLoader$1.run(Unknown
> Source)
> > at
> java.security.AccessController.doPrivileged(Native
> Method)
> > at
> java.net.URLClassLoader.findClass(Unknown Source)
> > at java.lang.ClassLoader.loadClass(Unknown
> Source)
> > at
> sun.misc.Launcher$AppClassLoader.loadClass(Unknown
> Source)
> > at java.lang.ClassLoader.loadClass(Unknown
> Source)
> > at
> java.lang.ClassLoader.loadClassInternal(Unknown
> Source)
> >
> >Thanks for any help or advise folks!
> >
> >
> >Yours sincerely,
> >Javier
> >
> As far as I know, there's no direct Java solution
> for this, but it can
> de done with Xslt Stylesheets. I'm in the process of
> creating a
> stylesheet, which creates XML instances right now.
> Although it isn't
> completely XML Schema compliant for the moment, it
> still handles most
> schemas fairly well. It still falls short on simple
> types though. If
> you're interested, I'll post it here or send it to
> you.
> ___________________________
>
> Erik Beijnoff
> Systems development
>
> erik.beijnoff@addsystems.com
> erik@beijnoff.com
>
>
-----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org
> <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
>
> The list archives are at
> http://lists.xml.org/archives/xml-dev/
>
> To subscribe or unsubscribe from this list use the
> subscription
> manager: <http://lists.xml.org/ob/adm.pl>
>
__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Beat the crowds! Do your X'mas Shopping Online!
http://shopping.yahoo.com.sg/