XML.com: XML From the Inside Out

XML.comWebServices.XML.comO'Reilly Networkoreilly.com
  Articles | Weblogs | Newsletter | Safari Bookshelf
advertisement

Article:
 Typeless Schemas and Services
Subject: so what's the gain using anonymous types?
Date: 2004-04-05 08:36:59
From: Rich Salz
Response to: so what's the gain using anonymous types?

I'm not giving up reuse, I'm just saying that if you want to use, for example, XML digital signature, then you must name your element ds:Signature. It makes *your* schemas shorter, too, since you don't have to define a new element with the old type. :)


You're guaranteed the names won't conflict, so why not just use the element name defined in the schema? It's simpler, it doesn't prevent re-use, it makes it easier for folks to "skim" your documents (I disagree with your second paragraph), and it avoids the sticky issue of XML Schema's type system, instead focusing on the document-oriented view of the XML structure.


But that's just my opinion (and others). It's not a mandatory sweeping change; feel free to ignore me.


No Previous Message Previous Message Move up to Parent Message Up Next Message No Next Message

Sponsored By:


Contact Us | Our Mission | Privacy Policy | Advertise With Us | | Submissions Guidelines
Copyright © 2008 O'Reilly Media, Inc. | (707) 827-7000 / (800) 998-9938