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

Re: XML Schemas

  • From: Len Bullard <cbullard@h...>
  • To: Veena Rao <veena@p...>
  • Date: Thu, 24 Feb 2000 18:54:28 -0600

veena p
Veena Rao wrote:
> 
> Is it always necessary to use and specify a XML Schema in an
> XML document that needs to be parsed. 

No.  You can use a DTD to validate the structure and the limited 
XML datatypes, or you can simply use a well-formed parse limited 
to the syntax and reserved productions.

> Won't it be sufficient to
> have it validated against a XMLSchema DTD.

In many cases, yes.  It depends on your model.  That is, what 
are you using the XML format for, persistence, data binding, 
exchange?  A DTD works well for authoring where you want to 
control the structures being created and you want to use 
an extensible editor, and it works well when you are 
exchanging information among loosely coupled systems or 
blind exchanges.  The xsd or schema is more powerful but 
also, you have to ask if you want to use information in this 
form to constrain the system.  See below.
 
> I am trying to find out if I can get away without generating a .xsd
> for every object model that is used within our application server.

You can.  In X3D for example, although there is a DTD (several 
in fact) and an example of an XML schema, most of the vendors do 
not use them at runtime.  They choose in most cases, an object model 
and a context-free parse.  A lot depends on how much overhead 
you can support at runtime.
 
len


***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/threads.html
***************************************************************************

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.