CS 561  


Project 2: All about XML.


ABOUT POSSIBLE SAMPLE DATA



DTD:


 
<!DOCTYPE bibliograph [  
<!ELEMENT bibliograph (book*, article*)>
<!ELEMENT book (title, author+, year, publisher, place?)>
<!ELEMENT article (title, author+, journal, year, volume, pages?)>
<!ELEMENT publisher (name, location+)>
<!ELEMENT location (cityname, street)>
<!ELEMENT author (lastname,firstname)>
<!-- begin all PCDATA -->
<!ELEMENT title ( #PCDATA)>
<!ELEMENT year ( #PCDATA)>
<!ELEMENT lastname ( #PCDATA)>
<!ELEMENT firstname ( #PCDATA)>
<!ELEMENT cityname ( #PCDATA)>
<!ELEMENT street ( #PCDATA)>
<!ELEMENT name ( #PCDATA)>
<!ELEMENT journal ( #PCDATA)>
<!ELEMENT volume ( #PCDATA)>
<!ELEMENT pages ( #PCDATA)>
<!ELEMENT cityname ( #PCDATA)>
]>

XML Data

<bibliograph>
<book>
<title> All about XML </title>
<author>
<lastname> Schmoney </lastname>
<firstname> Joe </firstname>
</author>
<author>
<lastname> Smith </lastname>
<firstname> James </firstname>
</author>
<year> 2003 </year>
<publisher>
<name> Bill's Publishers </name>
<location>
<cityname> Worcester </cityname>
<street> 100 institute </street>
</location>
</publisher>
<place> Gordon Library </place>

</book>

<book>
<title> Preparing for SATs </title>
<author>
<lastname> Miller </lastname>
<firstname> Rita </firstname>
</author>
<year> 2001 </year>
<publisher>
<name> Random House </name>
<location>
<cityname> New York </cityname>
<street> 50 New York Ave </street>
</location>
</publisher>
<place> Borders </place>
</book>

<book>
<title> XML is for Dummies </title>
<author>
<lastname> Martinez </lastname>
<firstname> Manny </firstname>
</author>
<year> 1999 </year>
<publisher>
<name> Dummy Company </name>
<location>
<cityname> Los Angeles </cityname>
<street> 1179 Hollywood Blvd </street>
</location>
</publisher>
</book>
<book>
<title> Java Programming </title>
<author>
<lastname> Garnett </lastname>
<firstname> Shawn </firstname>
</author>
<author>
<lastname> Pierce </lastname>
<firstname> Antoine </firstname>
</author>
<author>
<lastname> Stevens </lastname>
<firstname> Steve </firstname>
</author>
<year> 2001 </year>
<publisher>
<name> Sun </name>
<location>
<cityname> Burlington </cityname>
<street> Route 3 </street>
</location>
</publisher>
<place> The Amazon </place>
</book>

<book>
<title> Ada Programming </title>
<author>
<lastname> Thomas </lastname>
<firstname> Tom </firstname>
</author>
<year> 1976 </year>
<publisher>
<name> The Publishing Co </name>
<location>
<cityname> New York </cityname>
<street> 821 Park Ave </street>
</location>
</publisher>
<place> Random Store </place>
</book>

<article>
<title> New Advances in Ada Programming </title>
<author>
<lastname> Thomas </lastname>
<firstname> Tom </firstname>
</author>
<year> 1976 </year>
<journal> ACM </journal>
<volume> 17 </volume>
<pages> 25 </pages>
</article>
<article>
<title> XML: More than HTML </title>
<author>
<lastname> Smith </lastname>
<firstname> James </firstname>
</author>
<year> 2002 </year>
<journal> SIGMOD </journal>
<volume> 1st </volume>
<pages> 6 </pages>
</article>
<article>
<title> How to Protect your System </title>
<author>
<lastname> Mitnick </lastname>
<firstname> Harvey </firstname>
</author>
<year> 1997 </year>
<journal> Computer Security </journal>
<volume> 5 </volume>
</article>
<article>
<title> Classes in Java </title>
<author>
<lastname> Pierce </lastname>
<firstname> Antoine </firstname>
</author>
<author>
<lastname> Stevens </lastname>
<firstname> Steve </firstname>
</author>
<year> 2001 </year>
<journal> Programming Languages Monthly </journal>
<volume> 53 </volume>
</article>
<article>
<title> Microsoft Access- Better than Oracle? </title>
<author>
<lastname> Parker </lastname>
<firstname> Sam </firstname>
</author>
<year> 1991 </year>
<journal> VLDB </journal>
<volume> 34 </volume>
<pages> 20 </pages>
</article>

</bibliograph>