[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xml spy code generation..

  • From: "bryan rasmussen" <rasmussen.bryan@g...>
  • To: dave <ceek63@y...>
  • Date: Sat, 3 Nov 2007 07:52:07 +0100

Re:  xml spy code generation..
The only benefit I've ever seen to data binding is it allows you to
write an XML Schema, run the data binding tool over it, import the
generated code in your application and from then on you can do the
following:

if your document element is book with an element author under it you can do

book.author ="James Joyce";

and so forth.
The data binding solution would also make sure that the data types of
the various elements were adhered to, if you had defined a data type
for ISBN number or price the data binding would assure you did not
write book.price = "James Joyce"; as long as you made sure your data
types were strongly defined and not just all xsd:string like many
people seem to use.

I suppose you can extend the classes that the data binding solution
creates, hopefully, but I don't know enough about XMLSpy databinding
to say, and if to extend the classes creates side-effects in the
schema (perhaps you create a type property to book and limit that to
the terms Science Fiction, Romance, Western, next thing you know the
schema is updated with a type element and and enumeration - some
people would find that useful I would hate it.)

Anyway that is the way I always see Data binding described. I don't
use Data binding tools because they seem somewhat tedious and
difficult to customize for one's particular needs.

Cheers,
Bryan Rasmussen


On Nov 3, 2007 7:34 AM, dave <ceek63@y...> wrote:
>
> When you create an XSD using XML spy, you can also
> generate Java code from this XSD. How would one use
> these  generated Java classes? To use these classes,
> you would need to use Altova packages as well (which I
> don't want).
>
> Just wanted to know the typical use of these generated
> Java classes. I already tried XMLSpy forum. No help.
>
> -D
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> _______________________________________________________________________
>
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
>
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe@l...
> subscribe: xml-dev-subscribe@l...
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
>
>


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.