Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Generate an XML in Java using an XML Schema

Reply
Thread Tools

Generate an XML in Java using an XML Schema

 
 
vmtigno@yahoo.com
Guest
Posts: n/a
 
      04-18-2006
Hi,
Is it possible to create an XML in Java using an XML Schema? Is the XML
Schema just for validation?

Thanks!
V

 
Reply With Quote
 
 
 
 
James McGill
Guest
Posts: n/a
 
      04-18-2006
On Tue, 2006-04-18 at 09:43 -0700, wrote:
>
> Is it possible to create an XML in Java using an XML Schema? Is the
> XML
> Schema just for validation?


Well, XML Schema isn't "just" for validation. It defines the structure
that a given document may have, which happens to be useful for
validation.

I use Castor to generate java objects from XSD. Those objects are
essentially beans, which can be marshalled or unmarshalled to or from
XML, with or without validation. Castor isn't a JAXB implementation,
but it works really well, very efficient, and I like it a lot.
There are plenty of other options for binding data objects to XML, but I
don't know which ones build or validate against a schema. Like I said,
Castor solved all my data binding problems.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
web.xml / XML schema issue, why do some XML schema attributes disappear asciz@starmail.com Java 3 02-20-2007 09:56 AM
Generate an XML in Java using an XML Schema vmtigno@yahoo.com Java 1 04-18-2006 05:06 PM
[XML Schema] Including a schema document with absent target namespace to a schema with specified target namespace Stanimir Stamenkov XML 3 04-25-2005 09:59 AM
ASP XML Support - Generate XML string from FORM DATA based on XML schema Matt ASP General 3 04-23-2004 07:12 PM
How to generate xml using a xml schema in java? Raj Java 0 09-12-2003 10:03 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57