Re: OOP/OOD Philosophy



> "I'm sorry, but we didn't plan for XML. So, you can't without,
> essentially, a rewrite."

Lets say you have these classes with the given properties:

class Customer
-CustomerID
-Name
-Telephone

class Order
-OrderID
-CustomerID
-DeliveryDate

class OrderRow
-OrderID
-PartNo
-Quantity

class Part
-PartNo
-Description

How would the DTD for your XML look like? If you want to find all
customers that ordered a given part, how would you implement that
search? How would you do to check that only existing PartNo are entered
by the user?

Fredrik Bertilsson
http://butler.sourceforge.net

.