SWE 642: XML Examples

    XML Examples

  1. pizza.xml (From Patzer, Ch 14, 1st edition)
  2. stamps.xml (From Patzer, Ch 6, 2nd edition)
  3. binary.xml (From Patzer, Ch 6, 2nd edition)
  4. product.xml
    product.dtd
    product.xsl
  5. course-info.xml (From student information form)
    ParserXML.java -- parse xml file
    StudInfoSys642.java -- use xml file
    StudEntry.java -- student bean-like class

    Counting Elements

    (From Patzer, Ch 6, 2nd edition)
  1. CountSax.java
  2. CountDom.java
  3. CountSaxNew.java

    Printing an XML Document

  1. Sax2Writer.java

    Counting the SubElements

  1. CountSubElts.java

These examples can be run on hermes.

Resources