You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by cr...@apache.org on 2004/05/01 22:36:12 UTC

cvs commit: jakarta-commons/digester/src/examples/rss/src/java/org/apache/commons/digester/rss Channel.java Image.java Item.java RSSDigester.java TextInput.java package.html rss-0.9.dtd rss-0.91.dtd rss-example.xml

craigmcc    2004/05/01 13:36:12

  Added:       digester/src/examples/rss LICENSE.txt build.xml readme.txt
               digester/src/examples/rss/src/conf MANIFEST.MF
               digester/src/examples/rss/src/java/org/apache/commons/digester/rss
                        Channel.java Image.java Item.java RSSDigester.java
                        TextInput.java package.html rss-0.9.dtd
                        rss-0.91.dtd rss-example.xml
  Log:
  Phase I of migrating the RSS examples into their own "examples/rss"
  subdirectory, in preparation for removing them from the main build.
  
  Revision  Changes    Path
  1.1                  jakarta-commons/digester/src/examples/rss/LICENSE.txt
  
  Index: LICENSE.txt
  ===================================================================
  
                                   Apache License
                             Version 2.0, January 2004
                          http://www.apache.org/licenses/
  
     TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
  
     1. Definitions.
  
        "License" shall mean the terms and conditions for use, reproduction,
        and distribution as defined by Sections 1 through 9 of this document.
  
        "Licensor" shall mean the copyright owner or entity authorized by
        the copyright owner that is granting the License.
  
        "Legal Entity" shall mean the union of the acting entity and all
        other entities that control, are controlled by, or are under common
        control with that entity. For the purposes of this definition,
        "control" means (i) the power, direct or indirect, to cause the
        direction or management of such entity, whether by contract or
        otherwise, or (ii) ownership of fifty percent (50%) or more of the
        outstanding shares, or (iii) beneficial ownership of such entity.
  
        "You" (or "Your") shall mean an individual or Legal Entity
        exercising permissions granted by this License.
  
        "Source" form shall mean the preferred form for making modifications,
        including but not limited to software source code, documentation
        source, and configuration files.
  
        "Object" form shall mean any form resulting from mechanical
        transformation or translation of a Source form, including but
        not limited to compiled object code, generated documentation,
        and conversions to other media types.
  
        "Work" shall mean the work of authorship, whether in Source or
        Object form, made available under the License, as indicated by a
        copyright notice that is included in or attached to the work
        (an example is provided in the Appendix below).
  
        "Derivative Works" shall mean any work, whether in Source or Object
        form, that is based on (or derived from) the Work and for which the
        editorial revisions, annotations, elaborations, or other modifications
        represent, as a whole, an original work of authorship. For the purposes
        of this License, Derivative Works shall not include works that remain
        separable from, or merely link (or bind by name) to the interfaces of,
        the Work and Derivative Works thereof.
  
        "Contribution" shall mean any work of authorship, including
        the original version of the Work and any modifications or additions
        to that Work or Derivative Works thereof, that is intentionally
        submitted to Licensor for inclusion in the Work by the copyright owner
        or by an individual or Legal Entity authorized to submit on behalf of
        the copyright owner. For the purposes of this definition, "submitted"
        means any form of electronic, verbal, or written communication sent
        to the Licensor or its representatives, including but not limited to
        communication on electronic mailing lists, source code control systems,
        and issue tracking systems that are managed by, or on behalf of, the
        Licensor for the purpose of discussing and improving the Work, but
        excluding communication that is conspicuously marked or otherwise
        designated in writing by the copyright owner as "Not a Contribution."
  
        "Contributor" shall mean Licensor and any individual or Legal Entity
        on behalf of whom a Contribution has been received by Licensor and
        subsequently incorporated within the Work.
  
     2. Grant of Copyright License. Subject to the terms and conditions of
        this License, each Contributor hereby grants to You a perpetual,
        worldwide, non-exclusive, no-charge, royalty-free, irrevocable
        copyright license to reproduce, prepare Derivative Works of,
        publicly display, publicly perform, sublicense, and distribute the
        Work and such Derivative Works in Source or Object form.
  
     3. Grant of Patent License. Subject to the terms and conditions of
        this License, each Contributor hereby grants to You a perpetual,
        worldwide, non-exclusive, no-charge, royalty-free, irrevocable
        (except as stated in this section) patent license to make, have made,
        use, offer to sell, sell, import, and otherwise transfer the Work,
        where such license applies only to those patent claims licensable
        by such Contributor that are necessarily infringed by their
        Contribution(s) alone or by combination of their Contribution(s)
        with the Work to which such Contribution(s) was submitted. If You
        institute patent litigation against any entity (including a
        cross-claim or counterclaim in a lawsuit) alleging that the Work
        or a Contribution incorporated within the Work constitutes direct
        or contributory patent infringement, then any patent licenses
        granted to You under this License for that Work shall terminate
        as of the date such litigation is filed.
  
     4. Redistribution. You may reproduce and distribute copies of the
        Work or Derivative Works thereof in any medium, with or without
        modifications, and in Source or Object form, provided that You
        meet the following conditions:
  
        (a) You must give any other recipients of the Work or
            Derivative Works a copy of this License; and
  
        (b) You must cause any modified files to carry prominent notices
            stating that You changed the files; and
  
        (c) You must retain, in the Source form of any Derivative Works
            that You distribute, all copyright, patent, trademark, and
            attribution notices from the Source form of the Work,
            excluding those notices that do not pertain to any part of
            the Derivative Works; and
  
        (d) If the Work includes a "NOTICE" text file as part of its
            distribution, then any Derivative Works that You distribute must
            include a readable copy of the attribution notices contained
            within such NOTICE file, excluding those notices that do not
            pertain to any part of the Derivative Works, in at least one
            of the following places: within a NOTICE text file distributed
            as part of the Derivative Works; within the Source form or
            documentation, if provided along with the Derivative Works; or,
            within a display generated by the Derivative Works, if and
            wherever such third-party notices normally appear. The contents
            of the NOTICE file are for informational purposes only and
            do not modify the License. You may add Your own attribution
            notices within Derivative Works that You distribute, alongside
            or as an addendum to the NOTICE text from the Work, provided
            that such additional attribution notices cannot be construed
            as modifying the License.
  
        You may add Your own copyright statement to Your modifications and
        may provide additional or different license terms and conditions
        for use, reproduction, or distribution of Your modifications, or
        for any such Derivative Works as a whole, provided Your use,
        reproduction, and distribution of the Work otherwise complies with
        the conditions stated in this License.
  
     5. Submission of Contributions. Unless You explicitly state otherwise,
        any Contribution intentionally submitted for inclusion in the Work
        by You to the Licensor shall be under the terms and conditions of
        this License, without any additional terms or conditions.
        Notwithstanding the above, nothing herein shall supersede or modify
        the terms of any separate license agreement you may have executed
        with Licensor regarding such Contributions.
  
     6. Trademarks. This License does not grant permission to use the trade
        names, trademarks, service marks, or product names of the Licensor,
        except as required for reasonable and customary use in describing the
        origin of the Work and reproducing the content of the NOTICE file.
  
     7. Disclaimer of Warranty. Unless required by applicable law or
        agreed to in writing, Licensor provides the Work (and each
        Contributor provides its Contributions) on an "AS IS" BASIS,
        WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
        implied, including, without limitation, any warranties or conditions
        of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
        PARTICULAR PURPOSE. You are solely responsible for determining the
        appropriateness of using or redistributing the Work and assume any
        risks associated with Your exercise of permissions under this License.
  
     8. Limitation of Liability. In no event and under no legal theory,
        whether in tort (including negligence), contract, or otherwise,
        unless required by applicable law (such as deliberate and grossly
        negligent acts) or agreed to in writing, shall any Contributor be
        liable to You for damages, including any direct, indirect, special,
        incidental, or consequential damages of any character arising as a
        result of this License or out of the use or inability to use the
        Work (including but not limited to damages for loss of goodwill,
        work stoppage, computer failure or malfunction, or any and all
        other commercial damages or losses), even if such Contributor
        has been advised of the possibility of such damages.
  
     9. Accepting Warranty or Additional Liability. While redistributing
        the Work or Derivative Works thereof, You may choose to offer,
        and charge a fee for, acceptance of support, warranty, indemnity,
        or other liability obligations and/or rights consistent with this
        License. However, in accepting such obligations, You may act only
        on Your own behalf and on Your sole responsibility, not on behalf
        of any other Contributor, and only if You agree to indemnify,
        defend, and hold each Contributor harmless for any liability
        incurred by, or claims asserted against, such Contributor by reason
        of your accepting any such warranty or additional liability.
  
     END OF TERMS AND CONDITIONS
  
     APPENDIX: How to apply the Apache License to your work.
  
        To apply the Apache License to your work, attach the following
        boilerplate notice, with the fields enclosed by brackets "[]"
        replaced with your own identifying information. (Don't include
        the brackets!)  The text should be enclosed in the appropriate
        comment syntax for the file format. We also recommend that a
        file or class name and description of purpose be included on the
        same "printed page" as the copyright notice for easier
        identification within third-party archives.
  
     Copyright [yyyy] [name of copyright owner]
  
     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at
  
         http://www.apache.org/licenses/LICENSE-2.0
  
     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
  
  
  
  1.1                  jakarta-commons/digester/src/examples/rss/build.xml
  
  Index: build.xml
  ===================================================================
  <project name="Digester RSS Example" default="compile" basedir=".">
  
  
  <!--
          "Digester" RSS Example of the Jakarta Commons Subproject
          $Id: build.xml,v 1.1 2004/05/01 20:36:11 craigmcc Exp $
  -->
  
  
  <!-- ========== Initialize Properties ===================================== -->
  
  
    <property file="build.properties"/>                <!-- Example local     -->
    <property file="../../../build.properties"/>       <!-- Component local   -->
    <property file="../../../../build.properties"/>    <!-- Commons local     -->
    <property file="${user.home}/build.properties"/>   <!-- User local        -->
  
  
  <!-- ========== External Dependencies ===================================== -->
  
  
    <!-- The directories corresponding to your necessary dependencies -->
    <property name="jaxp.home"               value="/usr/local/jaxp1.1"/>
    <property name="junit.home"              value="/usr/local/junit3.7"/>
    <property name="commons.home"            value="../../../.."/>
    <property name="beanutils.home"          value="${commons.home}/beanutils"/>
    <property name="collections.home"        value="${commons.home}/collections"/>
    <property name="digester.home"           value="${commons.home}/digester"/>
    <property name="logging.home"            value="${commons.home}/logging"/>
  
  
  <!-- ========== Derived Values ============================================ -->
  
  
    <!-- The locations of necessary jar files -->
    <property name="jaxp.jaxp.jar"           value="${jaxp.home}/jaxp.jar"/>
    <property name="jaxp.parser.jar"         value="${jaxp.home}/crimson.jar"/>
    <property name="junit.jar"               value="${junit.home}/junit.jar"/>
    <property name="commons-beanutils.api"   value="${beanutils.home}/dist/docs/api"/>
    <property name="commons-beanutils.jar"   value="${beanutils.home}/dist/commons-beanutils.jar"/>
    <property name="commons-collections.api" value="${collections.home}/dist/docs/api"/>
    <property name="commons-collections.jar" value="${collections.home}/dist/commons-collections.jar"/>
    <property name="commons-digester.jar"    value="${digester.home}/dist/commons-digester.jar"/>
    <property name="commons-logging.api"     value="${logging.home}/dist/docs/api"/>
    <property name="commons-logging.jar"     value="${logging.home}/dist/commons-logging.jar"/>
  
  
  <!-- ========== Component Declarations ==================================== -->
  
  
    <!-- The name of this component -->
    <property name="component.name"          value="digester-rss"/>
  
    <!-- The primary package name of this component -->
    <property name="component.package"       value="org.apache.commons.digester.rss"/>
  
    <!-- The title of this component -->
    <property name="component.title"         value="Digester RSS Example"/>
  
    <!-- The current version number of this component -->
    <property name="component.version"       value="1.6-dev"/>
  
    <!-- The base directory for compilation targets -->
    <property name="build.home"              value="target"/>
  
    <!-- The base directory for component configuration files -->
    <property name="conf.home"               value="src/conf"/>
  
    <!-- The base directory for distribution targets -->
    <property name="dist.home"               value="dist"/>
  
    <!-- The base directory for component sources -->
    <property name="source.home"             value="src/java"/>
  
    <!-- The base directory for unit test sources -->
    <property name="test.home"               value="src/test"/>
  
  
  <!-- ========== Compiler Defaults ========================================= -->
  
  
    <!-- Should Java compilations set the 'debug' compiler option? -->
    <property name="compile.debug"           value="true"/>
  
    <!-- Should Java compilations set the 'deprecation' compiler option? -->
    <property name="compile.deprecation"     value="false"/>
  
    <!-- Should Java compilations set the 'optimize' compiler option? -->
    <property name="compile.optimize"        value="true"/>
  
    <!-- Construct compile classpath -->
    <path id="compile.classpath">
      <pathelement location="${build.home}/classes"/>
      <pathelement location="${jaxp.jaxp.jar}"/>
      <pathelement location="${jaxp.parser.jar}"/>
      <pathelement location="${commons-beanutils.jar}"/>
      <pathelement location="${commons-collections.jar}"/>
      <pathelement location="${commons-digester.jar}"/>
      <pathelement location="${commons-logging.jar}"/>
    </path>
  
  
  <!-- ========== Test Execution Defaults =================================== -->
  
    <property name="suppressLogOutputDuringTests" value="true"/>
    <property name="log.factoryopt" value="org.apache.commons.logging.Log"/>
    <property name="log.noop" value="org.apache.commons.logging.impl.NoOpLog"/>
    <property name="log.class" value="${log.noop}"/>
    
    <!--
    <property name="logclass" value="org.apache.commons.logging.impl.NoOpLog"/>
    -->
  
    <!-- Construct unit test classpath -->
    <path id="test.classpath">
      <pathelement location="${build.home}/classes"/>
      <pathelement location="${build.home}/tests"/>
      <pathelement location="${junit.jar}"/>
      <pathelement location="${jaxp.jaxp.jar}"/>
      <pathelement location="${jaxp.parser.jar}"/>
      <pathelement location="${commons-beanutils.jar}"/>
      <pathelement location="${commons-collections.jar}"/>
      <pathelement location="${commons-digester.jar}"/>
      <pathelement location="${commons-logging.jar}"/>
    </path>
  
    <!-- Should all tests fail if one does? -->
    <property name="test.failonerror"        value="true"/>
  
    <!-- The test runner to execute -->
    <property name="test.runner"             value="junit.textui.TestRunner"/>
  
  
  <!-- ========== Executable Targets ======================================== -->
  
  
    <target name="init"
     description="Initialize and evaluate conditionals">
      <echo message="-------- ${component.name} ${component.version} --------"/>
      <filter  token="name"                  value="${component.package}"/>
      <filter  token="version"               value="${component.version}"/>
    </target>
  
  
    <target name="prepare" depends="init"
     description="Prepare build directory">
      <mkdir dir="${build.home}"/>
      <mkdir dir="${build.home}/classes"/>
      <mkdir dir="${build.home}/conf"/>
      <mkdir dir="${build.home}/tests"/>
    </target>
  
  
    <target name="static" depends="prepare"
     description="Copy static files to build directory">
      <tstamp/>
      <copy  todir="${build.home}/conf" filtering="on">
        <fileset dir="${conf.home}" includes="*.MF"/>
      </copy>
    </target>
  
  
    <target name="compile" depends="static"
     description="Compile shareable components">
      <javac  srcdir="${source.home}"
             destdir="${build.home}/classes"
               debug="${compile.debug}"
         deprecation="${compile.deprecation}"
            optimize="${compile.optimize}">
        <classpath refid="compile.classpath"/>
      </javac>
      <copy    todir="${build.home}/classes" filtering="on">
        <fileset dir="${source.home}" excludes="**/*.java"/>
      </copy>
      <copy      file="LICENSE.txt"
                todir="${build.home}/classes/META-INF"/>
    </target>
  
  
    <target name="compile.tests" depends="compile"
     description="Compile unit test cases">
  <!--
      <javac  srcdir="${test.home}"
             destdir="${build.home}/tests"
               debug="${compile.debug}"
         deprecation="${compile.deprecation}"
            optimize="${compile.optimize}">
        <classpath refid="test.classpath"/>
      </javac>
      <copy    todir="${build.home}/tests" filtering="on">
        <fileset dir="${test.home}" excludes="**/*.java"/>
      </copy>
  -->
    </target>
  
  
    <target name="clean"
     description="Clean build and distribution directories">
      <delete    dir="${build.home}"/>
      <delete    dir="${dist.home}"/>
    </target>
  
  
    <target name="all" depends="clean,compile"
     description="Clean and compile all components"/>
  
  
    <target name="javadoc" depends="compile"
     description="Create component Javadoc documentation">
      <mkdir      dir="${dist.home}"/>
      <mkdir      dir="${dist.home}/docs"/>
      <mkdir      dir="${dist.home}/docs/api"/>
      <javadoc sourcepath="${source.home}"
                  destdir="${dist.home}/docs/api"
             packagenames="org.apache.commons.*"
                   author="true"
                  private="true"
                  version="true"
                 overview="src/java/overview.html"
                 doctitle="&lt;h1&gt;${component.title} (Version ${component.version})&lt;/h1&gt;"
              windowtitle="${component.title} (Version ${component.version})"
                   bottom="Copyright (c) 2001-2004 - Apache Software Foundation">
        <link     offline="true" packagelistLoc="${commons-beanutils.api}"
                     href="http://jakarta.apache.org/commons/beanutils/api/"/>
        <link     offline="true" packagelistLoc="${commons-collections.api}"
                     href="http://jakarta.apache.org/commons/collections/api/"/>
        <link     offline="true" packagelistLoc="${commons-logging.api}"
                     href="http://jakarta.apache.org/commons/logging/api/"/>
        <classpath  refid="compile.classpath"/>
      </javadoc>
    </target>
  
  
    <target name="dist" depends="compile,javadoc"
     description="Create binary distribution">
      <mkdir      dir="${dist.home}"/>
      <copy      file="LICENSE.txt"
                todir="${dist.home}"/>
      <mkdir      dir="${build.home}/classes/META-INF"/>
  <!--
      <copy      file="RELEASE-NOTES.txt"
                todir="${dist.home}"/>
  -->
      <jar    jarfile="${dist.home}/commons-${component.name}.jar"
              basedir="${build.home}/classes"
             manifest="${build.home}/conf/MANIFEST.MF"/>
    </target>
  
  
  <!-- ========== Unit Test Targets ========================================= -->
  
  
    <target name="test" depends="compile.tests,
                                 test.rss
                                "
     description="Run all unit test cases">
    </target>
  
    <target name="test.rss" depends="compile.tests"
     description="Run RSSDigester test cases">
      <echo message="Running RSSDigester tests ..."/>
      <condition property="logopt" value="${log.factoryopt}=${log.class}">
        <istrue value="${suppressLogOutputDuringTests}"/>
      </condition>
      <java classname="org.apache.commons.digester.rss.RSSDigester"
                 fork="yes">
        <jvmarg value="-D${logopt}"/>
        <classpath refid="test.classpath"/>
      </java>
    </target>
  
  </project>
  
  
  
  1.1                  jakarta-commons/digester/src/examples/rss/readme.txt
  
  Index: readme.txt
  ===================================================================
  This directory contains the example code for parsing RSS (Really Simple
  Syndication) newsfeeds, which was originally included directly in the
  commons-digester.jar file, in package "org.apache.commons.digester.rss".
  The package name has not been changed, so the only impact on applications
  relying on these classes will be the need to include an additional JAR
  file (commons-digester-rss.jar) in their classpath.
  
  
  
  1.1                  jakarta-commons/digester/src/examples/rss/src/conf/MANIFEST.MF
  
  Index: MANIFEST.MF
  ===================================================================
  Extension-Name: org.apache.commons.digester.rss
  Specification-Title: "Jakarta Commons Digester RSS Example"
  Specification-Vendor: "Apache Software Foundation"
  Specification-Version: "1.6"
  Implementation-Title: "org.apache.commons.digester.rss"
  Implementation-Vendor: "Apache Software Foundation"
  Implementation-Version: "1.6"
  
  
  
  
  1.1                  jakarta-commons/digester/src/examples/rss/src/java/org/apache/commons/digester/rss/Channel.java
  
  Index: Channel.java
  ===================================================================
  /*
   * Copyright 2001-2004 The Apache Software Foundation.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   * 
   *      http://www.apache.org/licenses/LICENSE-2.0
   * 
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */ 
  
  
  package org.apache.commons.digester.rss;
  
  import java.io.OutputStream;
  import java.io.OutputStreamWriter;
  import java.io.PrintWriter;
  import java.io.Serializable;
  import java.io.UnsupportedEncodingException;
  import java.io.Writer;
  import java.util.ArrayList;
  
  
  /**
   * <p>Implementation object representing a <strong>channel</strong> in the
   * <em>Rich Site Summary</em> DTD, version 0.91.  This class may be subclassed
   * to further specialize its behavior.</p>
   */
  
  public class Channel implements Serializable {
  
  
      // ----------------------------------------------------- Instance Variables
  
  
      /**
       * The set of items associated with this Channel.
       */
      protected ArrayList items = new ArrayList();
  
  
      /**
       * The set of skip days for this channel.
       */
      protected ArrayList skipDays = new ArrayList();
  
  
      /**
       * The set of skip hours for this channel.
       */
      protected ArrayList skipHours = new ArrayList();
  
  
      // ------------------------------------------------------------- Properties
  
  
      /**
       * The channel copyright (1-100 characters).
       */
      protected String copyright = null;
  
      public String getCopyright() {
          return (this.copyright);
      }
  
      public void setCopyright(String copyright) {
          this.copyright = copyright;
      }
  
  
      /**
       * The channel description (1-500 characters).
       */
      protected String description = null;
  
      public String getDescription() {
          return (this.description);
      }
  
      public void setDescription(String description) {
          this.description = description;
      }
  
  
      /**
       * The channel description file URL (1-500 characters).
       */
      protected String docs = null;
  
      public String getDocs() {
          return (this.docs);
      }
  
      public void setDocs(String docs) {
          this.docs = docs;
      }
  
  
      /**
       * The image describing this channel.
       */
      protected Image image = null;
  
      public Image getImage() {
          return (this.image);
      }
  
      public void setImage(Image image) {
          this.image = image;
      }
  
  
      /**
       * The channel language (2-5 characters).
       */
      protected String language = null;
  
      public String getLanguage() {
          return (this.language);
      }
  
      public void setLanguage(String language) {
          this.language = language;
      }
  
  
      /**
       * The channel last build date (1-100 characters).
       */
      protected String lastBuildDate = null;
  
      public String getLastBuildDate() {
          return (this.lastBuildDate);
      }
  
      public void setLastBuildDate(String lastBuildDate) {
          this.lastBuildDate = lastBuildDate;
      }
  
  
      /**
       * The channel link (1-500 characters).
       */
      protected String link = null;
  
      public String getLink() {
          return (this.link);
      }
  
      public void setLink(String link) {
          this.link = link;
      }
  
  
      /**
       * The managing editor (1-100 characters).
       */
      protected String managingEditor = null;
  
      public String getManagingEditor() {
          return (this.managingEditor);
      }
  
      public void setManagingEditor(String managingEditor) {
          this.managingEditor = managingEditor;
      }
  
  
      /**
       * The channel publication date (1-100 characters).
       */
      protected String pubDate = null;
  
      public String getPubDate() {
          return (this.pubDate);
      }
  
      public void setPubDate(String pubDate) {
          this.pubDate = pubDate;
      }
  
  
      /**
       * The channel rating (20-500 characters).
       */
      protected String rating = null;
  
      public String getRating() {
          return (this.rating);
      }
  
      public void setRating(String rating) {
          this.rating = rating;
      }
  
  
      /**
       * The text input description for this channel.
       */
      protected TextInput textInput = null;
  
      public TextInput getTextInput() {
          return (this.textInput);
      }
  
      public void setTextInput(TextInput textInput) {
          this.textInput = textInput;
      }
  
  
      /**
       * The channel title (1-100 characters).
       */
      protected String title = null;
  
      public String getTitle() {
          return (this.title);
      }
  
      public void setTitle(String title) {
          this.title = title;
      }
  
  
      /**
       * The RSS specification version number used to create this Channel.
       */
      protected double version = 0.91;
  
      public double getVersion() {
          return (this.version);
      }
  
      public void setVersion(double version) {
          this.version = version;
      }
  
  
      /**
       * The webmaster email address (1-100 characters).
       */
      protected String webMaster = null;
  
      public String getWebMaster() {
          return (this.webMaster);
      }
  
      public void setWebMaster(String webMaster) {
          this.webMaster = webMaster;
      }
  
  
      // --------------------------------------------------------- Public Methods
  
  
      /**
       * Add an additional item.
       *
       * @param item The item to be added
       */
      public void addItem(Item item) {
          synchronized (items) {
              items.add(item);
          }
      }
  
  
      /**
       * Add an additional skip day name.
       *
       * @param skipDay The skip day to be added
       */
      public void addSkipDay(String skipDay) {
          synchronized (skipDays) {
              skipDays.add(skipDay);
          }
      }
  
  
      /**
       * Add an additional skip hour name.
       *
       * @param skipHour The skip hour to be added
       */
      public void addSkipHour(String skipHour) {
          synchronized (skipHours) {
              skipHours.add(skipHour);
          }
      }
  
  
      /**
       * Return the items for this channel.
       */
      public Item[] findItems() {
          synchronized (items) {
              Item items[] = new Item[this.items.size()];
              return ((Item[]) this.items.toArray(items));
          }
      }
  
  
      /**
       * Return the items for this channel.
       */
      public Item[] getItems() {
          return findItems();
      }
  
  
      /**
       * Return the skip days for this channel.
       */
      public String[] findSkipDays() {
          synchronized (skipDays) {
              String skipDays[] = new String[this.skipDays.size()];
              return ((String[]) this.skipDays.toArray(skipDays));
          }
      }
  
  
      /**
       * Return the skip hours for this channel.
       */
      public String[] getSkipHours() {
          return findSkipHours();
      }
  
  
      /**
       * Return the skip hours for this channel.
       */
      public String[] findSkipHours() {
          synchronized (skipHours) {
              String skipHours[] = new String[this.skipHours.size()];
              return ((String[]) this.skipHours.toArray(skipHours));
          }
      }
  
  
      /**
       * Return the skip days for this channel.
       */
      public String[] getSkipDays() {
          return findSkipDays();
      }
  
  
      /**
       * Remove an item for this channel.
       *
       * @param item The item to be removed
       */
      public void removeItem(Item item) {
          synchronized (items) {
              items.remove(item);
          }
      }
  
  
      /**
       * Remove a skip day for this channel.
       *
       * @param skipDay The skip day to be removed
       */
      public void removeSkipDay(String skipDay) {
          synchronized (skipDays) {
              skipDays.remove(skipDay);
          }
      }
  
  
      /**
       * Remove a skip hour for this channel.
       *
       * @param skipHour The skip hour to be removed
       */
      public void removeSkipHour(String skipHour) {
          synchronized (skipHours) {
              skipHours.remove(skipHour);
          }
      }
  
  
      /**
       * Render this channel as XML conforming to the RSS 0.91 specification,
       * to the specified output stream, with no indication of character
       * encoding.
       *
       * @param stream The output stream to write to
       */
      public void render(OutputStream stream) {
  
          try {
              render(stream, null);
          } catch (UnsupportedEncodingException e) {
              ; // Can not happen
          }
  
      }
  
  
      /**
       * Render this channel as XML conforming to the RSS 0.91 specification,
       * to the specified output stream, with the specified character encoding.
       *
       * @param stream The output stream to write to
       * @param encoding The character encoding to declare, or <code>null</code>
       *  for no declaration
       *
       * @exception UnsupportedEncodingException if the named encoding
       *  is not supported
       */
      public void render(OutputStream stream, String encoding)
              throws UnsupportedEncodingException {
  
          PrintWriter pw = null;
          if (encoding == null) {
              pw = new PrintWriter(stream);
          } else {
              pw = new PrintWriter(new OutputStreamWriter(stream, encoding));
          }
          render(pw, encoding);
          pw.flush();
  
      }
  
  
      /**
       * Render this channel as XML conforming to the RSS 0.91 specification,
       * to the specified writer, with no indication of character encoding.
       *
       * @param writer The writer to render output to
       */
      public void render(Writer writer) {
  
          render(writer, null);
  
      }
  
  
      /**
       * Render this channel as XML conforming to the RSS 0.91 specification,
       * to the specified writer, indicating the specified character encoding.
       *
       * @param writer The writer to render output to
       * @param encoding The character encoding to declare, or <code>null</code>
       *  for no declaration
       */
      public void render(Writer writer, String encoding) {
  
          PrintWriter pw = new PrintWriter(writer);
          render(pw, encoding);
          pw.flush();
  
      }
  
  
      /**
       * Render this channel as XML conforming to the RSS 0.91 specification,
       * to the specified writer, with no indication of character encoding.
       *
       * @param writer The writer to render output to
       */
      public void render(PrintWriter writer) {
  
          render(writer, null);
  
      }
  
  
      /**
       * Render this channel as XML conforming to the RSS 0.91 specification,
       * to the specified writer, indicating the specified character encoding.
       *
       * @param writer The writer to render output to
       * @param encoding The character encoding to declare, or <code>null</code>
       *  for no declaration
       */
      public void render(PrintWriter writer, String encoding) {
  
          writer.print("<?xml version=\"1.0\"");
          if (encoding != null) {
              writer.print(" encoding=\"");
              writer.print(encoding);
              writer.print("\"");
          }
          writer.println("?>");
          writer.println();
  
          writer.println("<!DOCTYPE rss PUBLIC");
          writer.println("  \"-//Netscape Communications//DTD RSS 0.91//EN\"");
          writer.println("  \"http://my.netscape.com/publish/formats/rss-0.91.dtd\">");
          writer.println();
  
          writer.println("<rss version=\"0.91\">");
          writer.println();
  
          writer.println("  <channel>");
          writer.println();
  
          writer.print("    <title>");
          writer.print(title);
          writer.println("</title>");
  
          writer.print("    <description>");
          writer.print(description);
          writer.println("</description>");
  
          writer.print("    <link>");
          writer.print(link);
          writer.println("</link>");
  
          writer.print("    <language>");
          writer.print(language);
          writer.println("</language>");
  
          if (rating != null) {
              writer.print("    <rating>");
              writer.print(rating);
              writer.println("</rating>");
          }
  
          if (copyright != null) {
              writer.print("    <copyright>");
              writer.print(copyright);
              writer.print("</copyright>");
          }
  
  
          if (pubDate != null) {
              writer.print("    <pubDate>");
              writer.print(pubDate);
              writer.println("</pubDate>");
          }
  
          if (lastBuildDate != null) {
              writer.print("    <lastBuildDate>");
              writer.print(lastBuildDate);
              writer.println("</lastBuildDate>");
          }
  
          if (docs != null) {
              writer.print("    <docs>");
              writer.print(docs);
              writer.println("</docs>");
          }
  
          if (managingEditor != null) {
              writer.print("    <managingEditor>");
              writer.print(managingEditor);
              writer.println("</managingEditor>");
          }
  
          if (webMaster != null) {
              writer.print("    <webMaster>");
              writer.print(webMaster);
              writer.println("</webMaster>");
          }
  
          writer.println();
  
          if (image != null) {
              image.render(writer);
              writer.println();
          }
  
          if (textInput != null) {
              textInput.render(writer);
              writer.println();
          }
  
          String skipDays[] = findSkipDays();
          if (skipDays.length > 0) {
              writer.println("    <skipDays>");
              for (int i = 0; i < skipDays.length; i++) {
                  writer.print("      <skipDay>");
                  writer.print(skipDays[i]);
                  writer.println("</skipDay>");
              }
              writer.println("    </skipDays>");
          }
  
          String skipHours[] = findSkipHours();
          if (skipHours.length > 0) {
              writer.println("    <skipHours>");
              for (int i = 0; i < skipHours.length; i++) {
                  writer.print("      <skipHour>");
                  writer.print(skipHours[i]);
                  writer.println("</skipHour>");
              }
              writer.println("    </skipHours>");
              writer.println();
          }
  
          Item items[] = findItems();
          for (int i = 0; i < items.length; i++) {
              items[i].render(writer);
              writer.println();
          }
  
          writer.println("  </channel>");
          writer.println();
  
          writer.println("</rss>");
  
      }
  
  
  }
  
  
  
  1.1                  jakarta-commons/digester/src/examples/rss/src/java/org/apache/commons/digester/rss/Image.java
  
  Index: Image.java
  ===================================================================
  /*
   * Copyright 2001-2004 The Apache Software Foundation.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   * 
   *      http://www.apache.org/licenses/LICENSE-2.0
   * 
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */ 
  
  
  package org.apache.commons.digester.rss;
  
  import java.io.PrintWriter;
  import java.io.Serializable;
  
  
  /**
   * <p>Implementation object representing an <strong>image</strong> in the
   * <em>Rich Site Summary</em> DTD, version 0.91.  This class may be subclassed
   * to further specialize its behavior.</p>
   */
  
  public class Image implements Serializable {
  
  
      // ------------------------------------------------------------- Properties
  
  
      /**
       * The image description (1-100 characters).
       */
      protected String description = null;
  
      public String getDescription() {
          return (this.description);
      }
  
      public void setDescription(String description) {
          this.description = description;
      }
  
  
      /**
       * The image height in pixels (1-400).
       */
      protected int height = 31;
  
      public int getHeight() {
          return (this.height);
      }
  
      public void setHeight(int height) {
          this.height = height;
      }
  
  
      /**
       * The image link (1-500 characters).
       */
      protected String link = null;
  
      public String getLink() {
          return (this.link);
      }
  
      public void setLink(String link) {
          this.link = link;
      }
  
  
      /**
       * The image alternate text (1-100 characters).
       */
      protected String title = null;
  
      public String getTitle() {
          return (this.title);
      }
  
      public void setTitle(String title) {
          this.title = title;
      }
  
  
      /**
       * The image location URL (1-500 characters).
       */
      protected String url = null;
  
      public String getURL() {
          return (this.url);
      }
  
      public void setURL(String url) {
          this.url = url;
      }
  
  
      /**
       * The image width in pixels (1-400).
       */
      protected int width = 31;
  
      public int getWidth() {
          return (this.width);
      }
  
      public void setWidth(int width) {
          this.width = width;
      }
  
  
      // -------------------------------------------------------- Package Methods
  
  
      /**
       * Render this channel as XML conforming to the RSS 0.91 specification,
       * to the specified writer.
       *
       * @param writer The writer to render output to
       */
      void render(PrintWriter writer) {
  
          writer.println("    <image>");
  
          writer.print("      <title>");
          writer.print(title);
          writer.println("</title>");
  
          writer.print("      <url>");
          writer.print(url);
          writer.println("</url>");
  
          if (link != null) {
              writer.print("      <link>");
              writer.print(link);
              writer.println("</link>");
          }
  
          writer.print("      <width>");
          writer.print(width);
          writer.println("</width>");
  
          writer.print("      <height>");
          writer.print(height);
          writer.println("</height>");
  
          if (description != null) {
              writer.print("      <description>");
              writer.print(description);
              writer.println("</description>");
          }
  
          writer.println("    </image>");
  
      }
  
  
  }
  
  
  
  1.1                  jakarta-commons/digester/src/examples/rss/src/java/org/apache/commons/digester/rss/Item.java
  
  Index: Item.java
  ===================================================================
  /*
   * Copyright 2001-2004 The Apache Software Foundation.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   * 
   *      http://www.apache.org/licenses/LICENSE-2.0
   * 
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */ 
  
  
  package org.apache.commons.digester.rss;
  
  import java.io.PrintWriter;
  import java.io.Serializable;
  
  
  /**
   * <p>Implementation object representing an <strong>item</strong> in the
   * <em>Rich Site Summary</em> DTD, version 0.91.  This class may be subclassed
   * to further specialize its behavior.</p>
   */
  
  public class Item implements Serializable {
  
  
      // ------------------------------------------------------------- Properties
  
  
      /**
       * The item description (1-500 characters).
       */
      protected String description = null;
  
      public String getDescription() {
          return (this.description);
      }
  
      public void setDescription(String description) {
          this.description = description;
      }
  
  
      /**
       * The item link (1-500 characters).
       */
      protected String link = null;
  
      public String getLink() {
          return (this.link);
      }
  
      public void setLink(String link) {
          this.link = link;
      }
  
  
      /**
       * The item title (1-100 characters).
       */
      protected String title = null;
  
      public String getTitle() {
          return (this.title);
      }
  
      public void setTitle(String title) {
          this.title = title;
      }
  
  
      // -------------------------------------------------------- Package Methods
  
  
      /**
       * Render this channel as XML conforming to the RSS 0.91 specification,
       * to the specified writer.
       *
       * @param writer The writer to render output to
       */
      void render(PrintWriter writer) {
  
          writer.println("    <item>");
  
          writer.print("      <title>");
          writer.print(title);
          writer.println("</title>");
  
          writer.print("      <link>");
          writer.print(link);
          writer.println("</link>");
  
          if (description != null) {
              writer.print("      <description>");
              writer.print(description);
              writer.println("</description>");
          }
  
          writer.println("    </item>");
  
      }
  
  
  }
  
  
  
  1.1                  jakarta-commons/digester/src/examples/rss/src/java/org/apache/commons/digester/rss/RSSDigester.java
  
  Index: RSSDigester.java
  ===================================================================
  /*
   * Copyright 2001-2004 The Apache Software Foundation.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   * 
   *      http://www.apache.org/licenses/LICENSE-2.0
   * 
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */ 
  
  
  package org.apache.commons.digester.rss;
  
  
  import java.io.File;
  import java.io.IOException;
  import java.io.InputStream;
  import java.net.URL;
  
  import org.apache.commons.digester.Digester;
  import org.apache.commons.logging.LogFactory;
  import org.xml.sax.InputSource;
  import org.xml.sax.SAXException;
  
  
  /**
   * <p>Implementation of <strong>org.apache.commons.digester.Digester</strong>
   * designed to process input streams that conform to the <em>Rich Site
   * Summary</em> DTD, version 0.91.  For more information about this format,
   * see the <a href="http://my.netscape.com/publish/">My Netscape</a> site.</p>
   *
   * <p>The default implementation object returned by calling
   * <code>parse()</code> (an instance of
   * <code>org.apache.commons.digester.rss.Channel</code>)
   * knows how to render itself in XML format via the <code>render()</code>
   * method.  See the test <code>main()</code> method below for an
   * example of using these classes.</p>
   */
  
  public class RSSDigester extends Digester {
  
  
      // ----------------------------------------------------------- Constructors
  
  
  
      // ----------------------------------------------------- Instance Variables
  
  
      /**
       * Have we been configured yet?
       */
      protected boolean configured = false;
  
  
      /**
       * The set of public identifiers, and corresponding resource names,
       * for the versions of the DTDs that we know about.
       */
      protected static final String registrations[] = {
          "-//Netscape Communications//DTD RSS 0.9//EN",
          "/org/apache/commons/digester/rss/rss-0.9.dtd",
          "-//Netscape Communications//DTD RSS 0.91//EN",
          "/org/apache/commons/digester/rss/rss-0.91.dtd",
      };
  
  
      // ------------------------------------------------------------- Properties
  
  
      /**
       * The fully qualified class name of the <code>Channel</code>
       * implementation class.
       */
      protected String channelClass = "org.apache.commons.digester.rss.Channel";
  
      public String getChannelClass() {
          return (this.channelClass);
      }
  
      public void setChannelClass(String channelClass) {
          this.channelClass = channelClass;
      }
  
  
      /**
       * The fully qualified class name of the <code>Image</code>
       * implementation class.
       */
      protected String imageClass = "org.apache.commons.digester.rss.Image";
  
      public String getImageClass() {
          return (this.imageClass);
      }
  
      public void setImageClass(String imageClass) {
          this.imageClass = imageClass;
      }
  
  
      /**
       * The fully qualified class name of the <code>Item</code>
       * implementation class.
       */
      protected String itemClass = "org.apache.commons.digester.rss.Item";
  
      public String getItemClass() {
          return (this.itemClass);
      }
  
      public void setItemClass(String itemClass) {
          this.itemClass = itemClass;
      }
  
  
      /**
       * The fully qualified class name of the <code>TextInput</code>
       * implementation class.
       */
      protected String textInputClass =
              "org.apache.commons.digester.rss.TextInput";
  
      public String getTextInputClass() {
          return (this.textInputClass);
      }
  
      public void setTextInputClass(String textInputClass) {
          this.textInputClass = textInputClass;
      }
  
  
      // --------------------------------------------------------- Public Methods
  
  
      /**
       * Parse the content of the specified file using this Digester.  Returns
       * the root element from the object stack (which will be the Channel).
       *
       * @param file File containing the XML data to be parsed
       *
       * @exception IOException if an input/output error occurs
       * @exception SAXException if a parsing exception occurs
       */
      public Object parse(File file) throws IOException, SAXException {
  
          configure();
          return (super.parse(file));
  
      }
  
  
      /**
       * Parse the content of the specified input source using this Digester.
       * Returns the root element from the object stack (which will be the
       * Channel).
       *
       * @param input Input source containing the XML data to be parsed
       *
       * @exception IOException if an input/output error occurs
       * @exception SAXException if a parsing exception occurs
       */
      public Object parse(InputSource input) throws IOException, SAXException {
  
          configure();
          return (super.parse(input));
  
      }
  
  
      /**
       * Parse the content of the specified input stream using this Digester.
       * Returns the root element from the object stack (which will be
       * the Channel).
       *
       * @param input Input stream containing the XML data to be parsed
       *
       * @exception IOException if an input/output error occurs
       * @exception SAXException if a parsing exception occurs
       */
      public Object parse(InputStream input) throws IOException, SAXException {
  
          configure();
          return (super.parse(input));
  
      }
  
  
      /**
       * Parse the content of the specified URI using this Digester.
       * Returns the root element from the object stack (which will be
       * the Channel).
       *
       * @param uri URI containing the XML data to be parsed
       *
       * @exception IOException if an input/output error occurs
       * @exception SAXException if a parsing exception occurs
       */
      public Object parse(String uri) throws IOException, SAXException {
  
          configure();
          return (super.parse(uri));
  
      }
  
  
      // -------------------------------------------------------- Package Methods
  
  
  
      // ------------------------------------------------------ Protected Methods
  
  
      /**
       * Configure the parsing rules that will be used to process RSS input.
       */
      protected void configure() {
  
          if (configured) {
              return;
          }
  
          // Register local copies of the DTDs we understand
          for (int i = 0; i < registrations.length; i += 2) {
              URL url = this.getClass().getResource(registrations[i + 1]);
              if (url != null) {
                  register(registrations[i], url.toString());
              }
          }
  
          // FIXME - validate the "version" attribute of the rss element?
  
          // Add the rules for the Channel object
          addObjectCreate("rss/channel", channelClass);
          addCallMethod("rss/channel/copyright", "setCopyright", 0);
          addCallMethod("rss/channel/description", "setDescription", 0);
          addCallMethod("rss/channel/docs", "setDocs", 0);
          addCallMethod("rss/channel/language", "setLanguage", 0);
          addCallMethod("rss/channel/lastBuildDate", "setLastBuildDate", 0);
          addCallMethod("rss/channel/link", "setLink", 0);
          addCallMethod("rss/channel/managingEditor", "setManagingEditor", 0);
          addCallMethod("rss/channel/pubDate", "setPubDate", 0);
          addCallMethod("rss/channel/rating", "setRating", 0);
          addCallMethod("rss/channel/skipDays/day", "addSkipDay", 0);
          addCallMethod("rss/channel/skipHours/hour", "addSkipHour", 0);
          addCallMethod("rss/channel/title", "setTitle", 0);
          addCallMethod("rss/channel/webMaster", "setWebMaster", 0);
  
          // Add the rules for the Image object
          addObjectCreate("rss/channel/image", imageClass);
          addSetNext("rss/channel/image", "setImage",
                  "org.apache.commons.digester.rss.Image");
          addCallMethod("rss/channel/image/description", "setDescription", 0);
          addCallMethod("rss/channel/image/height", "setHeight", 0,
                  new Class[]{ Integer.TYPE });
          addCallMethod("rss/channel/image/link", "setLink", 0);
          addCallMethod("rss/channel/image/title", "setTitle", 0);
          addCallMethod("rss/channel/image/url", "setURL", 0);
          addCallMethod("rss/channel/image/width", "setWidth", 0,
                  new Class[]{ Integer.TYPE });
  
          // Add the rules for the Item object
          addObjectCreate("rss/channel/item", itemClass);
          addSetNext("rss/channel/item", "addItem",
                  "org.apache.commons.digester.rss.Item");
          addCallMethod("rss/channel/item/description", "setDescription", 0);
          addCallMethod("rss/channel/item/link", "setLink", 0);
          addCallMethod("rss/channel/item/title", "setTitle", 0);
  
          // Add the rules for the TextInput object
          addObjectCreate("rss/channel/textinput", textInputClass);
          addSetNext("rss/channel/textinput", "setTextInput",
                  "org.apache.commons.digester.rss.TextInput");
          addCallMethod("rss/channel/textinput/description",
                  "setDescription", 0);
          addCallMethod("rss/channel/textinput/link", "setLink", 0);
          addCallMethod("rss/channel/textinput/name", "setName", 0);
          addCallMethod("rss/channel/textinput/title", "setTitle", 0);
  
          // Mark this digester as having been configured
          configured = true;
  
      }
  
  
      // ------------------------------------------------------ Test Main Program
  
  
      /**
       * Test main program that parses the channel description included in this
       * package as a static resource.
       *
       * @param args The command line arguments (ignored)
       */
      public static void main(String args[]) {
  
          try {
              System.out.println("RSSDigester Test Program");
              System.out.println("Opening input stream ...");
              InputStream is = RSSDigester.class.getResourceAsStream
                      ("/org/apache/commons/digester/rss/rss-example.xml");
              System.out.println("Creating new digester ...");
              RSSDigester digester = new RSSDigester();
              if ((args.length > 0) && (args[0].equals("-debug"))) {
                  digester.setLogger(LogFactory.getLog("RSSDigester"));
              }
              System.out.println("Parsing input stream ...");
              Channel channel = (Channel) digester.parse(is);
              System.out.println("Closing input stream ...");
              is.close();
              System.out.println("Dumping channel info ...");
              channel.render(System.out);
          } catch (Exception e) {
              System.out.println("-->Exception");
              e.printStackTrace(System.out);
          }
  
      }
  
  
  }
  
  
  
  1.1                  jakarta-commons/digester/src/examples/rss/src/java/org/apache/commons/digester/rss/TextInput.java
  
  Index: TextInput.java
  ===================================================================
  /*
   * Copyright 2001-2004 The Apache Software Foundation.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   * 
   *      http://www.apache.org/licenses/LICENSE-2.0
   * 
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */ 
  
  
  package org.apache.commons.digester.rss;
  
  import java.io.PrintWriter;
  import java.io.Serializable;
  
  
  /**
   * <p>Implementation object representing a <strong>textinput</strong> in the
   * <em>Rich Site Summary</em> DTD, version 0.91.  This class may be subclassed
   * to further specialize its behavior.</p>
   */
  
  public class TextInput implements Serializable {
  
  
      // ------------------------------------------------------------- Properties
  
  
      /**
       * The text input description (1-100 characters).
       */
      protected String description = null;
  
      public String getDescription() {
          return (this.description);
      }
  
      public void setDescription(String description) {
          this.description = description;
      }
  
  
      /**
       * The text input link (1-500 characters).
       */
      protected String link = null;
  
      public String getLink() {
          return (this.link);
      }
  
      public void setLink(String link) {
          this.link = link;
      }
  
  
      /**
       * The text input field name (1-100 characters).
       */
      protected String name = null;
  
      public String getName() {
          return (this.name);
      }
  
      public void setName(String name) {
          this.name = name;
      }
  
  
      /**
       * The text input submit button label (1-100 characters).
       */
      protected String title = null;
  
      public String getTitle() {
          return (this.title);
      }
  
      public void setTitle(String title) {
          this.title = title;
      }
  
  
      // -------------------------------------------------------- Package Methods
  
  
      /**
       * Render this channel as XML conforming to the RSS 0.91 specification,
       * to the specified writer.
       *
       * @param writer The writer to render output to
       */
      void render(PrintWriter writer) {
  
          writer.println("    <textinput>");
  
          writer.print("      <title>");
          writer.print(title);
          writer.println("</title>");
  
          writer.print("      <description>");
          writer.print(description);
          writer.println("</description>");
  
          writer.print("      <name>");
          writer.print(name);
          writer.println("</name>");
  
          writer.print("      <link>");
          writer.print(link);
          writer.println("</link>");
  
          writer.println("    </textinput>");
  
      }
  
  
  }
  
  
  
  1.1                  jakarta-commons/digester/src/examples/rss/src/java/org/apache/commons/digester/rss/package.html
  
  Index: package.html
  ===================================================================
  <html>
  <head>
  <title>Package Documentation for org.apache.commons.digester.rss Package</title>
  </head>
  <body bgcolor="white">
  <p>Example usage of Digester to parse XML documents compatible with the
  <em>Rich Site Summary</em> format used by many newsfeeds.</p>
  </body>
  </html>
  
  
  
  1.1                  jakarta-commons/digester/src/examples/rss/src/java/org/apache/commons/digester/rss/rss-0.9.dtd
  
  Index: rss-0.9.dtd
  ===================================================================
  <!--
  
    RDF Site Summary (RSS) 0.9 official DTD, proposed.
    
    RSS is an XML/RDF vocabulary for describing
    metadata about websites, and enabling the display of
    "channels" on the "My Netscape" website.
    
    RSS Info can be found at http://my.netscape.com/publish/
    XML Info can be found at http://www.w3.org/XML/ 
    RDF Info can be found at http://www.w3.org/RDF/
    
    copyright Netscape Communications, 1999
  
    Dan Libby - danda@netscape.com
    
    Based on RSS DTD originally created by
    Lars Marius Garshol - larsga@ifi.uio.no.
    $Id: rss-0.9.dtd,v 1.1 2004/05/01 20:36:11 craigmcc Exp $
    
  -->
  
  <!ELEMENT rdf:RDF (channel | image? | item+ | textinput?)*>
  <!ATTLIST rdf:RDF
            xmlns:rdf CDATA #FIXED "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
            xmlns     CDATA #REQUIRED> <!-- must be "http://my.netscape.com/rdf/simple/0.9/"> -->
  
  <!ELEMENT channel (title | description | link)*>
  <!ELEMENT title (#PCDATA)>
  <!ELEMENT description (#PCDATA)>
  <!ELEMENT link (#PCDATA)>
  <!ELEMENT image (title | url | link)*>
  <!ELEMENT url (#PCDATA)>
  <!ELEMENT item (title | link)*>
  <!ELEMENT textinput (title | description | name | link)*>
  <!ELEMENT name (#PCDATA)>
  
  <!--
       Copied from HTML 3.2 DTD, with modifications (removed CDATA)
       http://www.w3.org/TR/REC-html32.html#dtd
       =============== BEGIN ===================
  -->
  <!-- 
       Character Entities for ISO Latin-1
       
       (C) International Organization for Standardization 1986
       Permission to copy in any form is granted for use with
       conforming SGML systems and applications as defined in
       ISO 8879, provided this notice is included in all copies.
       This has been extended for use with HTML to cover the full
       set of codes in the range 160-255 decimal.
  -->
  <!-- Character entity set. Typical invocation:
       <!ENTITY % ISOlat1 PUBLIC
         "ISO 8879-1986//ENTITIES Added Latin 1//EN//HTML">
       %ISOlat1;
  -->
      <!ENTITY nbsp   "&#160;"> <!-- no-break space -->
      <!ENTITY iexcl  "&#161;"> <!-- inverted exclamation mark -->
      <!ENTITY cent   "&#162;"> <!-- cent sign -->
      <!ENTITY pound  "&#163;"> <!-- pound sterling sign -->
      <!ENTITY curren "&#164;"> <!-- general currency sign -->
      <!ENTITY yen    "&#165;"> <!-- yen sign -->
      <!ENTITY brvbar "&#166;"> <!-- broken (vertical) bar -->
      <!ENTITY sect   "&#167;"> <!-- section sign -->
      <!ENTITY uml    "&#168;"> <!-- umlaut (dieresis) -->
      <!ENTITY copy   "&#169;"> <!-- copyright sign -->
      <!ENTITY ordf   "&#170;"> <!-- ordinal indicator, feminine -->
      <!ENTITY laquo  "&#171;"> <!-- angle quotation mark, left -->
      <!ENTITY not    "&#172;"> <!-- not sign -->
      <!ENTITY shy    "&#173;"> <!-- soft hyphen -->
      <!ENTITY reg    "&#174;"> <!-- registered sign -->
      <!ENTITY macr   "&#175;"> <!-- macron -->
      <!ENTITY deg    "&#176;"> <!-- degree sign -->
      <!ENTITY plusmn "&#177;"> <!-- plus-or-minus sign -->
      <!ENTITY sup2   "&#178;"> <!-- superscript two -->
      <!ENTITY sup3   "&#179;"> <!-- superscript three -->
      <!ENTITY acute  "&#180;"> <!-- acute accent -->
      <!ENTITY micro  "&#181;"> <!-- micro sign -->
      <!ENTITY para   "&#182;"> <!-- pilcrow (paragraph sign) -->
      <!ENTITY middot "&#183;"> <!-- middle dot -->
      <!ENTITY cedil  "&#184;"> <!-- cedilla -->
      <!ENTITY sup1   "&#185;"> <!-- superscript one -->
      <!ENTITY ordm   "&#186;"> <!-- ordinal indicator, masculine -->
      <!ENTITY raquo  "&#187;"> <!-- angle quotation mark, right -->
      <!ENTITY frac14 "&#188;"> <!-- fraction one-quarter -->
      <!ENTITY frac12 "&#189;"> <!-- fraction one-half -->
      <!ENTITY frac34 "&#190;"> <!-- fraction three-quarters -->
      <!ENTITY iquest "&#191;"> <!-- inverted question mark -->
      <!ENTITY Agrave "&#192;"> <!-- capital A, grave accent -->
      <!ENTITY Aacute "&#193;"> <!-- capital A, acute accent -->
      <!ENTITY Acirc  "&#194;"> <!-- capital A, circumflex accent -->
      <!ENTITY Atilde "&#195;"> <!-- capital A, tilde -->
      <!ENTITY Auml   "&#196;"> <!-- capital A, dieresis or umlaut mark -->
      <!ENTITY Aring  "&#197;"> <!-- capital A, ring -->
      <!ENTITY AElig  "&#198;"> <!-- capital AE diphthong (ligature) -->
      <!ENTITY Ccedil "&#199;"> <!-- capital C, cedilla -->
      <!ENTITY Egrave "&#200;"> <!-- capital E, grave accent -->
      <!ENTITY Eacute "&#201;"> <!-- capital E, acute accent -->
      <!ENTITY Ecirc  "&#202;"> <!-- capital E, circumflex accent -->
      <!ENTITY Euml   "&#203;"> <!-- capital E, dieresis or umlaut mark -->
      <!ENTITY Igrave "&#204;"> <!-- capital I, grave accent -->
      <!ENTITY Iacute "&#205;"> <!-- capital I, acute accent -->
      <!ENTITY Icirc  "&#206;"> <!-- capital I, circumflex accent -->
      <!ENTITY Iuml   "&#207;"> <!-- capital I, dieresis or umlaut mark -->
      <!ENTITY ETH    "&#208;"> <!-- capital Eth, Icelandic -->
      <!ENTITY Ntilde "&#209;"> <!-- capital N, tilde -->
      <!ENTITY Ograve "&#210;"> <!-- capital O, grave accent -->
      <!ENTITY Oacute "&#211;"> <!-- capital O, acute accent -->
      <!ENTITY Ocirc  "&#212;"> <!-- capital O, circumflex accent -->
      <!ENTITY Otilde "&#213;"> <!-- capital O, tilde -->
      <!ENTITY Ouml   "&#214;"> <!-- capital O, dieresis or umlaut mark -->
      <!ENTITY times  "&#215;"> <!-- multiply sign -->
      <!ENTITY Oslash "&#216;"> <!-- capital O, slash -->
      <!ENTITY Ugrave "&#217;"> <!-- capital U, grave accent -->
      <!ENTITY Uacute "&#218;"> <!-- capital U, acute accent -->
      <!ENTITY Ucirc  "&#219;"> <!-- capital U, circumflex accent -->
      <!ENTITY Uuml   "&#220;"> <!-- capital U, dieresis or umlaut mark -->
      <!ENTITY Yacute "&#221;"> <!-- capital Y, acute accent -->
      <!ENTITY THORN  "&#222;"> <!-- capital THORN, Icelandic -->
      <!ENTITY szlig  "&#223;"> <!-- small sharp s, German (sz ligature) -->
      <!ENTITY agrave "&#224;"> <!-- small a, grave accent -->
      <!ENTITY aacute "&#225;"> <!-- small a, acute accent -->
      <!ENTITY acirc  "&#226;"> <!-- small a, circumflex accent -->
      <!ENTITY atilde "&#227;"> <!-- small a, tilde -->
      <!ENTITY auml   "&#228;"> <!-- small a, dieresis or umlaut mark -->
      <!ENTITY aring  "&#229;"> <!-- small a, ring -->
      <!ENTITY aelig  "&#230;"> <!-- small ae diphthong (ligature) -->
      <!ENTITY ccedil "&#231;"> <!-- small c, cedilla -->
      <!ENTITY egrave "&#232;"> <!-- small e, grave accent -->
      <!ENTITY eacute "&#233;"> <!-- small e, acute accent -->
      <!ENTITY ecirc  "&#234;"> <!-- small e, circumflex accent -->
      <!ENTITY euml   "&#235;"> <!-- small e, dieresis or umlaut mark -->
      <!ENTITY igrave "&#236;"> <!-- small i, grave accent -->
      <!ENTITY iacute "&#237;"> <!-- small i, acute accent -->
      <!ENTITY icirc  "&#238;"> <!-- small i, circumflex accent -->
      <!ENTITY iuml   "&#239;"> <!-- small i, dieresis or umlaut mark -->
      <!ENTITY eth    "&#240;"> <!-- small eth, Icelandic -->
      <!ENTITY ntilde "&#241;"> <!-- small n, tilde -->
      <!ENTITY ograve "&#242;"> <!-- small o, grave accent -->
      <!ENTITY oacute "&#243;"> <!-- small o, acute accent -->
      <!ENTITY ocirc  "&#244;"> <!-- small o, circumflex accent -->
      <!ENTITY otilde "&#245;"> <!-- small o, tilde -->
      <!ENTITY ouml   "&#246;"> <!-- small o, dieresis or umlaut mark -->
      <!ENTITY divide "&#247;"> <!-- divide sign -->
      <!ENTITY oslash "&#248;"> <!-- small o, slash -->
      <!ENTITY ugrave "&#249;"> <!-- small u, grave accent -->
      <!ENTITY uacute "&#250;"> <!-- small u, acute accent -->
      <!ENTITY ucirc  "&#251;"> <!-- small u, circumflex accent -->
      <!ENTITY uuml   "&#252;"> <!-- small u, dieresis or umlaut mark -->
      <!ENTITY yacute "&#253;"> <!-- small y, acute accent -->
      <!ENTITY thorn  "&#254;"> <!-- small thorn, Icelandic -->
      <!ENTITY yuml   "&#255;"> <!-- small y, dieresis or umlaut mark -->
      
  <!--
       Copied from HTML 3.2 DTD, with modifications (removed CDATA)
       http://www.w3.org/TR/REC-html32.html#dtd
       ================= END ===================
  -->
  
  
  
  1.1                  jakarta-commons/digester/src/examples/rss/src/java/org/apache/commons/digester/rss/rss-0.91.dtd
  
  Index: rss-0.91.dtd
  ===================================================================
  <!--
  
    Rich Site Summary (RSS) 0.91 official DTD, proposed.
    
    RSS is an XML vocabulary for describing
    metadata about websites, and enabling the display of
    "channels" on the "My Netscape" website.
    
    RSS Info can be found at http://my.netscape.com/publish/
    XML Info can be found at http://www.w3.org/XML/ 
    
    copyright Netscape Communications, 1999
  
    Dan Libby - danda@netscape.com
    
    Based on RSS DTD originally created by
    Lars Marius Garshol - larsga@ifi.uio.no.
    $Id: rss-0.91.dtd,v 1.1 2004/05/01 20:36:11 craigmcc Exp $
    
  -->
  
  <!ELEMENT rss (channel)>
  <!ATTLIST rss
            version     CDATA #REQUIRED> <!-- must be "0.91"> -->
  
  <!ELEMENT channel (title | description | link | language | item+ | rating? | image? | textinput? | copyright? | pubDate? | lastBuildDate? | docs? | managingEditor? | webMaster? | skipHours? | skipDays?)*>
  <!ELEMENT title (#PCDATA)>
  <!ELEMENT description (#PCDATA)>
  <!ELEMENT link (#PCDATA)>
  <!ELEMENT image (title | url | link | width? | height? | description?)*>
  <!ELEMENT url (#PCDATA)>
  <!ELEMENT item (title | link | description)*>
  <!ELEMENT textinput (title | description | name | link)*>
  <!ELEMENT name (#PCDATA)>
  <!ELEMENT rating (#PCDATA)>
  <!ELEMENT language (#PCDATA)>
  <!ELEMENT width (#PCDATA)>
  <!ELEMENT height (#PCDATA)>
  <!ELEMENT copyright (#PCDATA)>
  <!ELEMENT pubDate (#PCDATA)>
  <!ELEMENT lastBuildDate (#PCDATA)>
  <!ELEMENT docs (#PCDATA)>
  <!ELEMENT managingEditor (#PCDATA)>
  <!ELEMENT webMaster (#PCDATA)>
  <!ELEMENT hour (#PCDATA)>
  <!ELEMENT day (#PCDATA)>
  <!ELEMENT skipHours (hour+)>
  <!ELEMENT skipDays (day+)>
  
  <!--
       Copied from HTML 3.2 DTD, with modifications (removed CDATA)
       http://www.w3.org/TR/REC-html32.html#dtd
       =============== BEGIN ===================
  -->
  <!-- 
       Character Entities for ISO Latin-1
       
       (C) International Organization for Standardization 1986
       Permission to copy in any form is granted for use with
       conforming SGML systems and applications as defined in
       ISO 8879, provided this notice is included in all copies.
       This has been extended for use with HTML to cover the full
       set of codes in the range 160-255 decimal.
  -->
  <!-- Character entity set. Typical invocation:
       <!ENTITY % ISOlat1 PUBLIC
         "ISO 8879-1986//ENTITIES Added Latin 1//EN//HTML">
       %ISOlat1;
  -->
      <!ENTITY nbsp   "&#160;"> <!-- no-break space -->
      <!ENTITY iexcl  "&#161;"> <!-- inverted exclamation mark -->
      <!ENTITY cent   "&#162;"> <!-- cent sign -->
      <!ENTITY pound  "&#163;"> <!-- pound sterling sign -->
      <!ENTITY curren "&#164;"> <!-- general currency sign -->
      <!ENTITY yen    "&#165;"> <!-- yen sign -->
      <!ENTITY brvbar "&#166;"> <!-- broken (vertical) bar -->
      <!ENTITY sect   "&#167;"> <!-- section sign -->
      <!ENTITY uml    "&#168;"> <!-- umlaut (dieresis) -->
      <!ENTITY copy   "&#169;"> <!-- copyright sign -->
      <!ENTITY ordf   "&#170;"> <!-- ordinal indicator, feminine -->
      <!ENTITY laquo  "&#171;"> <!-- angle quotation mark, left -->
      <!ENTITY not    "&#172;"> <!-- not sign -->
      <!ENTITY shy    "&#173;"> <!-- soft hyphen -->
      <!ENTITY reg    "&#174;"> <!-- registered sign -->
      <!ENTITY macr   "&#175;"> <!-- macron -->
      <!ENTITY deg    "&#176;"> <!-- degree sign -->
      <!ENTITY plusmn "&#177;"> <!-- plus-or-minus sign -->
      <!ENTITY sup2   "&#178;"> <!-- superscript two -->
      <!ENTITY sup3   "&#179;"> <!-- superscript three -->
      <!ENTITY acute  "&#180;"> <!-- acute accent -->
      <!ENTITY micro  "&#181;"> <!-- micro sign -->
      <!ENTITY para   "&#182;"> <!-- pilcrow (paragraph sign) -->
      <!ENTITY middot "&#183;"> <!-- middle dot -->
      <!ENTITY cedil  "&#184;"> <!-- cedilla -->
      <!ENTITY sup1   "&#185;"> <!-- superscript one -->
      <!ENTITY ordm   "&#186;"> <!-- ordinal indicator, masculine -->
      <!ENTITY raquo  "&#187;"> <!-- angle quotation mark, right -->
      <!ENTITY frac14 "&#188;"> <!-- fraction one-quarter -->
      <!ENTITY frac12 "&#189;"> <!-- fraction one-half -->
      <!ENTITY frac34 "&#190;"> <!-- fraction three-quarters -->
      <!ENTITY iquest "&#191;"> <!-- inverted question mark -->
      <!ENTITY Agrave "&#192;"> <!-- capital A, grave accent -->
      <!ENTITY Aacute "&#193;"> <!-- capital A, acute accent -->
      <!ENTITY Acirc  "&#194;"> <!-- capital A, circumflex accent -->
      <!ENTITY Atilde "&#195;"> <!-- capital A, tilde -->
      <!ENTITY Auml   "&#196;"> <!-- capital A, dieresis or umlaut mark -->
      <!ENTITY Aring  "&#197;"> <!-- capital A, ring -->
      <!ENTITY AElig  "&#198;"> <!-- capital AE diphthong (ligature) -->
      <!ENTITY Ccedil "&#199;"> <!-- capital C, cedilla -->
      <!ENTITY Egrave "&#200;"> <!-- capital E, grave accent -->
      <!ENTITY Eacute "&#201;"> <!-- capital E, acute accent -->
      <!ENTITY Ecirc  "&#202;"> <!-- capital E, circumflex accent -->
      <!ENTITY Euml   "&#203;"> <!-- capital E, dieresis or umlaut mark -->
      <!ENTITY Igrave "&#204;"> <!-- capital I, grave accent -->
      <!ENTITY Iacute "&#205;"> <!-- capital I, acute accent -->
      <!ENTITY Icirc  "&#206;"> <!-- capital I, circumflex accent -->
      <!ENTITY Iuml   "&#207;"> <!-- capital I, dieresis or umlaut mark -->
      <!ENTITY ETH    "&#208;"> <!-- capital Eth, Icelandic -->
      <!ENTITY Ntilde "&#209;"> <!-- capital N, tilde -->
      <!ENTITY Ograve "&#210;"> <!-- capital O, grave accent -->
      <!ENTITY Oacute "&#211;"> <!-- capital O, acute accent -->
      <!ENTITY Ocirc  "&#212;"> <!-- capital O, circumflex accent -->
      <!ENTITY Otilde "&#213;"> <!-- capital O, tilde -->
      <!ENTITY Ouml   "&#214;"> <!-- capital O, dieresis or umlaut mark -->
      <!ENTITY times  "&#215;"> <!-- multiply sign -->
      <!ENTITY Oslash "&#216;"> <!-- capital O, slash -->
      <!ENTITY Ugrave "&#217;"> <!-- capital U, grave accent -->
      <!ENTITY Uacute "&#218;"> <!-- capital U, acute accent -->
      <!ENTITY Ucirc  "&#219;"> <!-- capital U, circumflex accent -->
      <!ENTITY Uuml   "&#220;"> <!-- capital U, dieresis or umlaut mark -->
      <!ENTITY Yacute "&#221;"> <!-- capital Y, acute accent -->
      <!ENTITY THORN  "&#222;"> <!-- capital THORN, Icelandic -->
      <!ENTITY szlig  "&#223;"> <!-- small sharp s, German (sz ligature) -->
      <!ENTITY agrave "&#224;"> <!-- small a, grave accent -->
      <!ENTITY aacute "&#225;"> <!-- small a, acute accent -->
      <!ENTITY acirc  "&#226;"> <!-- small a, circumflex accent -->
      <!ENTITY atilde "&#227;"> <!-- small a, tilde -->
      <!ENTITY auml   "&#228;"> <!-- small a, dieresis or umlaut mark -->
      <!ENTITY aring  "&#229;"> <!-- small a, ring -->
      <!ENTITY aelig  "&#230;"> <!-- small ae diphthong (ligature) -->
      <!ENTITY ccedil "&#231;"> <!-- small c, cedilla -->
      <!ENTITY egrave "&#232;"> <!-- small e, grave accent -->
      <!ENTITY eacute "&#233;"> <!-- small e, acute accent -->
      <!ENTITY ecirc  "&#234;"> <!-- small e, circumflex accent -->
      <!ENTITY euml   "&#235;"> <!-- small e, dieresis or umlaut mark -->
      <!ENTITY igrave "&#236;"> <!-- small i, grave accent -->
      <!ENTITY iacute "&#237;"> <!-- small i, acute accent -->
      <!ENTITY icirc  "&#238;"> <!-- small i, circumflex accent -->
      <!ENTITY iuml   "&#239;"> <!-- small i, dieresis or umlaut mark -->
      <!ENTITY eth    "&#240;"> <!-- small eth, Icelandic -->
      <!ENTITY ntilde "&#241;"> <!-- small n, tilde -->
      <!ENTITY ograve "&#242;"> <!-- small o, grave accent -->
      <!ENTITY oacute "&#243;"> <!-- small o, acute accent -->
      <!ENTITY ocirc  "&#244;"> <!-- small o, circumflex accent -->
      <!ENTITY otilde "&#245;"> <!-- small o, tilde -->
      <!ENTITY ouml   "&#246;"> <!-- small o, dieresis or umlaut mark -->
      <!ENTITY divide "&#247;"> <!-- divide sign -->
      <!ENTITY oslash "&#248;"> <!-- small o, slash -->
      <!ENTITY ugrave "&#249;"> <!-- small u, grave accent -->
      <!ENTITY uacute "&#250;"> <!-- small u, acute accent -->
      <!ENTITY ucirc  "&#251;"> <!-- small u, circumflex accent -->
      <!ENTITY uuml   "&#252;"> <!-- small u, dieresis or umlaut mark -->
      <!ENTITY yacute "&#253;"> <!-- small y, acute accent -->
      <!ENTITY thorn  "&#254;"> <!-- small thorn, Icelandic -->
      <!ENTITY yuml   "&#255;"> <!-- small y, dieresis or umlaut mark -->
      
  <!--
       Copied from HTML 3.2 DTD, with modifications (removed CDATA)
       http://www.w3.org/TR/REC-html32.html#dtd
       ================= END ===================
  -->
  
  
  
  1.1                  jakarta-commons/digester/src/examples/rss/src/java/org/apache/commons/digester/rss/rss-example.xml
  
  Index: rss-example.xml
  ===================================================================
  <?xml version="1.0"?>
  
  <!DOCTYPE rss PUBLIC
   "-//Netscape Communications//DTD RSS 0.91//EN"
   "http://my.netscape.com/publish/formats/rss-0.91.dtd">
  
  <rss version="0.91">
  
    <channel>
  
      <title>MozillaZine</title>
      <link>http://www.mozillazine.org</link>
      <description>Your source for Mozilla news, advocacy,
        interviews, builds, and more!</description>
      <language>en-US</language>
      <rating>(PICS-1.1 "http://www.rsac.org/ratingsv01.html"
        2 gen true comment "RSACi North America Server"
        for "http://www.rsac.org" on "1996.04.16T08:15-0500"
        r (n 0 s 0 v 0 l 0))</rating>
  
      <image>
        <title>MozillaZine</title>
        <url>http://www.mozillazine.org/image/mynetscape88.gif</url>
        <link>http://www.mozillazine.org</link>
        <width>88</width>
        <height>31</height>
        <description>Articles, discussions, builds, and more...</description>
      </image>
  
      <item>
        <title>Java2 in Navigator 5?</title>
        <link>http://www.mozillazine.org/talkback.html?article=607</link>
        <description>Will Java2 be an integrated part of Navigator 5?
        Read more about it in this discussion...</description>
      </item>
  
      <item>
        <title>Communicator 4.61 Out</title>
        <link>http://www.mozillazine.org/talkback.html?article=606</link>
        <description>The latest version of Communicator is now
        available.  It includes security enhancements
        and various bug fixes.</description>
      </item>
  
      <item>
        <title>Mozilla Dispenses with Old,
        Proprietary DOM</title>
        <link>http://www.mozillazine.org/talkback.html?article=604</link>
      </item>
  
      <item>
        <title>The Animation Contest is Now Closed</title>
        <link>http://www.mozillazine.org/talkback.html?article=603</link>
      </item>
  
      <textinput>
        <title>Send</title>
        <description>Comments about MozillaZine?</description>
        <name>responseText</name>
        <link>http://www.mozillazine.org/cgi-bin/sampleonly.cgi</link>
      </textinput>
  
    </channel>
  
  </rss>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org