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

Re: dereferencing DTDs, was: Note from the Troll


troll dtd
Julian Reschke wrote:
>> [using URLs to reference DTD's causes all sorts of problems]
> Yes. Don't do that. Either do not validate at all, or validate against a
> local copy. This is common sense. I'm surprised how frequently people make
> this mistake.
> 
Quite correct. I usually delete DTD references from static XML
files before I deploy them into the production environment. There
is no benefit in validating a read-only document every time it is
read.
Even if referencing a DTD can't be avoided, all environments I
worked in have more or less well developed catalog mechanisms for
mapping DTD references to local copies. Even BEA claims to have
one.

Validation should be thought of a tool useful while manually
manipulating XML documents, during development and for checking
XML documents you get from sources you don't quite trust. In
order to promote this point of view, it would help if
validation was not as tightly integrated into XML parsing as it
currently is (because DTDs define both physical and logical
structure of the XML document), but rather seen as a separate
step which *could* be integrated into the parser for pure
efficiency reasons.

J.Pietschmann


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.