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

Re: Java API for Accessing XML Schema


mddl java
** Reply to message from Joe English <jenglish@f...> on Thu, 07 Nov
2002 08:14:08 -0800

> Hayden Marchant wrote:
> >
> > I am looking for an API that will give me a complete view of the whole XMLSch
> > ema [...]

> Just use one of the usual toolkits for plain XML (SAX, DOM,
> jdom, etc.).
> 
> The main reason W3C XML Schema uses XML instance syntax 
> instead of something more human-readable is to make this 
> sort of thing possible...

Using XML for the syntax reduces the effort of parsing the syntax, but using
plain XML tools for programatically interrogating XML Schemas is nonetheless a
last resort.  The problem is that the XML Schema syntax is a particular physical
model of the logical model underlying W3C XML Schema.  From the point of view of
your application, you want an API that provides you with a language-specific
physical model of the same underlying logical data model.  What the sought after
API should do is handle reading of one physical model and converting it to the
other, preserving the information defined in the logical model.

When you read an XML Schema as XML, you have to separate XML details which mean
something in terms of the logical model from those things that are purely
syntactic requirements of the XML physical model.  It is the kind of thing that
is best left to a library if one is available.  It's good to have plain XML
tools as a last resort for extracting Schema information, but that is the way it
should be seen.

Hayden already knows all of this, since Unicorn's business involves handling
the mappings between physical & logical data models.

	Cheers,
		Tony.
====
Anthony B. Coates, Information & Software Architect
mailto:abcoates@T...
MDDL Editor (Market Data Definition Language)
http://www.mddl.org/

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.