/Users/lyon/j4p/src/xml/cart/Product.xml

1    <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?> 
2     
3    <!DOCTYPE Cart [ 
4        <!ELEMENT Product (Name, UnitPrice, ProductCode)> 
5        <!ELEMENT Name (#PCDATA)> 
6        <!ELEMENT UnitPrice (#PCDATA)> 
7        <!ELEMENT ProductCode (#PCDATA)> 
8        <!ELEMENT Cart (Product*)> 
9    ]> 
10   <Cart> 
11       <Product> 
12           <Name>Image Processing in Java</Name> 
13           <UnitPrice>25</UnitPrice> 
14           <ProductCode>12</ProductCode> 
15       </Product> 
16       <Product> 
17           <Name>Java for Programmers</Name> 
18           <UnitPrice>35</UnitPrice> 
19           <ProductCode>11</ProductCode> 
20       </Product> 
21   </Cart> 
22    
23