[jdom-interest] Re: Factories
Elliotte Rusty Harold
elharo at metalab.unc.edu
Mon Mar 1 11:21:35 PST 2004
At 5:58 PM +0100 3/1/04, phil at triloggroup.com wrote:
1/ You perfectly know what you're doing, because you're on such
conditions that you can trust
Let me give you an example: you're writting an XML document to a
database, and then read it back. By the meantime, nobody but your
code can access the data.
Can't you trust the content and then bypass checks?
No, you can't. In order for this to be a reasonable assumption, you
need at least three other conditions:
1. No one else and nothing else writes data into that database.
2. The data written into the database had been verified for
well-formedness; e.g. that it does not contain nulls.
3. The database does not modify the data; for instance by turning
linefeeds into NELs.
--
Elliotte Rusty Harold
elharo at metalab.unc.edu
Effective XML (Addison-Wesley, 2003)
http://www.cafeconleche.org/books/effectivexml
http://www.amazon.com/exec/obidos/ISBN%3D0321150406/ref%3Dnosim/cafeaulaitA
More information about the jdom-interest
mailing list