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

Re: InnerXml is like printf (WAS: Underwhelmed)


jaxb mapping
Arjun Ray wrote,
> I personally believe it is a fundamental mistake to require that
> taxonomic names be dealt with as strings.  I could easily be wrong,
> but I've seen too many horrors that can be traced back to precisely
> that circumstance not to want compelling reasons to change my mind.

There's some truth in this. But there's a cost (ie. building vocabulary 
specific APIs) which isn't always worth paying. Worse is better, 
remember ;-)

> | FWIW, I don't think code generation is going to do a very good job
> | without manual intervention, cp. JAXB's mapping schemas.
>
> Well, JAXB is mostly about interfaces, from what I can see - the work
> of implementing those suckers is left as an um, exercise.  I've been
> using DTDs to generate classes.  The only interfaces are for a common
> generic package, which the programmer has access to if he *really*
> wants.

As I understood it, the primary motivation for JAXB mapping schemas was 
to allow arbitrary XML names to be converted to names which conform to 
Java naming conventions, ie. UGLY_CAPS -> uglyCaps or class -> 
cssClass. At least, that was the impression Mark Reinhold gave me.

> This xpath stuff could fit into that package, I'm thinking...

Hmm ... maybe.

> But I still think string-based approaches ultimately [expletive deleted] ;-)

Ultimately so do I: like I said at the outset, there's an element of 
devils advocate in this. But sucky or not, there seem to be some 
benefits here.

Cheers,


Miles

PURCHASE STYLUS STUDIO ONLINE TODAY!

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

Buy Stylus Studio Now

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-2013 All Rights Reserved.