ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xml-dev
xml-dev
RE: Namespaces, W3C XML Schema (was Re: ANN: SAX Filters forNames paceProcessing)
by Michael Brennan other posts by this author
Aug 23 2001 1:57AM messages near this date
Regular expression for URI matching | RE: "Uh, what do I need this for" (was RE: XML.COM: How I Learne d t o Love daBomb)
>  From: Elliotte Rusty Harold [mailto:elharo@[...].edu]

<snip/> 

>  >> On the other hand, over the last three years as I've taught 
>  >> developers about DTDs, almost invariably the first question 
>  >> is "How do I say that an element contains an int?" and the 
>  >> second question is usually ""How do I say that an element 
>  >> contains a year since 1969?" or some variant thereof. 
>  >
>  >In other words, people want data-binding, but they want it 
>  to be simple.
>  >
>  
>  No, this isn't data binding at all. It's validation. It's 
>  being presented with a set of quantities and verifying that 
>  those quantities meet certain predetermined constraints. 

I misread your post. In the context you describe, you are right. This is
just validation. However, I have seen the use case cited quite often of
developers wanting to leverage a schema for data-binding. In some cases,
they just want to be able to access an attribute value or element content as
a meaningful datatype instead of just a string. I've also seen cases where
developers want to just get access to some PSVI info within their
application so they know the datatype of an attribute value or element
content and can deal with it more intelligently within their application.
This is in addition to those cases where developer want to go further and
generate classes from schemas.

So although I misread your post, I have personally heard from many
developers asking "How can I get this attribute value in my program as a
Date", and similar statements. Microsoft is providing some of this
capability with their XML SDK, and at least some developers using their
tools are leveraging this functionality. Developers in the Java world are
left with waiting for JAXB, or using something like Castor (which is not
particularly user-friendly, although perhaps better docs would help), and
the simple use cases are ignored by tools providers -- except Microsoft.

-----------------------------------------------------------------
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 elist use the subscription
manager: <http://lists.xml.org/ob/adm.pl> 

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved