Location: PHPKode > projects > RSS Framework for PHP > sample.xml
<?xml version="1.0"?>
<dump>
  <object type="feed">
    <attribute name="version" type="string">2.0</attribute>
    <attribute name="channel" type="channel">
      <object type="channel">
        <attribute name="title" type="string">Sample Channel</attribute>
        <attribute name="link" type="url">
          <object type="url">
            <attribute name="scheme" type="string">http</attribute>
            <attribute name="host" type="string">dynamicnetworks.de</attribute>
            <attribute name="path" type="string">/rss/sample.htm</attribute>
          </object>
        </attribute>
        <attribute name="description" type="string">This is a sample channel.</attribute>
        <attribute name="language" type="string">en</attribute>
        <attribute name="copyright" type="string">Copyright 2005 - Dynamic Networks</attribute>
        <attribute name="managingEditor" type="email">
          <object type="email">
            <attribute name="address" type="string">hide@address.com</attribute>
            <attribute name="recipient" type="string">Gordon Oheim</attribute>
          </object>
        </attribute>
        <attribute name="webMaster" type="email">
          <object type="email">
            <attribute name="address" type="string">hide@address.com</attribute>
            <attribute name="recipient" type="string">Dynamic Networks</attribute>
          </object>
        </attribute>
        <attribute name="pubDate" type="string">Tue, 29 Mar 2005 09:03:24 +0200</attribute>
        <attribute name="lastBuildDate" type="string">Tue, 29 Mar 2005 09:03:24 +0200</attribute>
        <attribute name="category" type="array">
          <object type="category">
            <attribute name="title" type="string">Coding Example</attribute>
            <attribute name="domain" type="string">Computer/Programming/XML/RSS/</attribute>
          </object>
          <object type="category">
            <attribute name="title" type="string">RSS Feed</attribute>
            <attribute name="domain" type="string">Computer/Programming/XML/RSS/</attribute>
          </object>
        </attribute>
        <attribute name="generator" type="string">Dynamic Networks RSS Framework for PHP v1.1</attribute>
        <attribute name="docs" type="url">
          <object type="url">
            <attribute name="scheme" type="string">http</attribute>
            <attribute name="host" type="string">dynamicnetworks.de</attribute>
            <attribute name="path" type="string">/projects/rssframework/docs</attribute>
          </object>
        </attribute>
        <attribute name="cloud" type="cloud">
          <object type="cloud">
            <attribute name="domain" type="string">dynamicnetworks.de</attribute>
            <attribute name="port" type="integer">80</attribute>
            <attribute name="path" type="string">cloudproc.php</attribute>
            <attribute name="registerProcedure" type="string">syncfeed</attribute>
            <attribute name="protocol" type="string">soap</attribute>
          </object>
        </attribute>
        <attribute name="ttl" type="integer">60</attribute>
        <attribute name="image" type="image">
          <object type="image">
            <attribute name="url" type="url">
              <object type="url">
                <attribute name="scheme" type="string">http</attribute>
                <attribute name="host" type="string">dynamicnetworks.de</attribute>
                <attribute name="path" type="string">/rss/images/sample.gif</attribute>
              </object>
            </attribute>
            <attribute name="title" type="string">Sample Channel</attribute>
            <attribute name="link" type="url">
              <object type="url">
                <attribute name="scheme" type="string">http</attribute>
                <attribute name="host" type="string">dynamicnetworks.de</attribute>
                <attribute name="path" type="string">/rss/sample.htm</attribute>
              </object>
            </attribute>
            <attribute name="width" type="integer">100</attribute>
            <attribute name="height" type="integer">35</attribute>
            <attribute name="description" type="string">Sample Image</attribute>
          </object>
        </attribute>
        <attribute name="rating" type="string">PICS-Label: (PICS-1.1 &amp;quot;http://vancouver-webpages.com/VWP1.0/&amp;quot; l gen false by &amp;quot;hide@address.com&amp;quot; on &amp;quot;2005.01.19T04:03-0800&amp;quot; for &amp;quot;http://dynamicnetworks.de/rss/sample.htm&amp;quot; r (P 0 S 0 V 0 Com 0 Tol 0 Env 0 SF 0 Edu 0 Can 0 MC 0 Gam -1 ))</attribute>
        <attribute name="textInput" type="textinput">
          <object type="textinput">
            <attribute name="title" type="string">send comment</attribute>
            <attribute name="description" type="string">Enter your comment here</attribute>
            <attribute name="name" type="string">comment</attribute>
            <attribute name="link" type="url">
              <object type="url">
                <attribute name="scheme" type="string">http</attribute>
                <attribute name="host" type="string">dynamicnetworks.de</attribute>
                <attribute name="path" type="string">/rss/comments/proc.php</attribute>
                <attribute name="query" type="string">id=samplefeed</attribute>
              </object>
            </attribute>
          </object>
        </attribute>
        <attribute name="skipHours" type="array">
          <attribute name="0" type="integer">0</attribute>
          <attribute name="1" type="integer">1</attribute>
          <attribute name="2" type="integer">2</attribute>
          <attribute name="3" type="integer">3</attribute>
          <attribute name="4" type="integer">4</attribute>
          <attribute name="5" type="integer">5</attribute>
          <attribute name="6" type="integer">6</attribute>
          <attribute name="7" type="integer">23</attribute>
        </attribute>
        <attribute name="skipDays" type="array">
          <attribute name="0" type="string">Monday</attribute>
          <attribute name="1" type="string">Friday</attribute>
        </attribute>
        <attribute name="item" type="array">
          <object type="item">
            <attribute name="module" type="array">
              <object type="mediarss">
                <attribute name="mediacontent" type="array">
                  <object type="mediacontent">
                    <attribute name="url" type="url">
                      <object type="url">
                        <attribute name="scheme" type="string">http</attribute>
                        <attribute name="host" type="string">www.example.com</attribute>
                        <attribute name="path" type="string">/audio/hooray_for_frameworks.mp3</attribute>
                      </object>
                    </attribute>
                    <attribute name="fileSize" type="integer">1024</attribute>
                    <attribute name="type" type="string">application/mp3</attribute>
                    <attribute name="expression" type="string">sample</attribute>
                    <attribute name="bitrate" type="integer">128</attribute>
                  </object>
                  <object type="mediacontent">
                    <attribute name="mediacategory" type="array">
                      <attribute name="0" type="string">audio/books/documentary</attribute>
                      <attribute name="1" type="string">audio/books/programming</attribute>
                    </attribute>
                    <attribute name="mediathumbnail" type="mediathumbnail">
                      <object type="mediathumbnail">
                        <attribute name="url" type="url">
                          <object type="url">
                            <attribute name="scheme" type="string">http</attribute>
                            <attribute name="host" type="string">www.example.com</attribute>
                            <attribute name="path" type="string">/thumb2005.gif</attribute>
                          </object>
                        </attribute>
                        <attribute name="width" type="integer">50</attribute>
                        <attribute name="height" type="integer">50</attribute>
                      </object>
                    </attribute>
                    <attribute name="mediatext" type="array">
                      <attribute name="0" type="string">This is the full version.</attribute>
                    </attribute>
                    <attribute name="url" type="url">
                      <object type="url">
                        <attribute name="scheme" type="string">http</attribute>
                        <attribute name="host" type="string">www.example.com</attribute>
                        <attribute name="path" type="string">/audio/hooray_for_frameworks.mp3</attribute>
                      </object>
                    </attribute>
                    <attribute name="fileSize" type="integer">5120</attribute>
                    <attribute name="type" type="string">application/mp3</attribute>
                    <attribute name="expression" type="string">full</attribute>
                    <attribute name="bitrate" type="integer">256</attribute>
                  </object>
                </attribute>
                <attribute name="namespace" type="string">http://tools.search.yahoo.com/mrss/</attribute>
                <attribute name="prefix" type="string">media</attribute>
                <attribute name="mediapeople" type="array">
                  <object type="mediapeople">
                    <attribute name="role" type="string">producers</attribute>
                    <attribute name="people" type="array">
                      <attribute name="0" type="string">Joe Pro</attribute>
                      <attribute name="1" type="string">Jack Ducer</attribute>
                    </attribute>
                  </object>
                </attribute>
                <attribute name="mediacategory" type="array">
                  <attribute name="0" type="string">audio/books/listeningcomprehension</attribute>
                </attribute>
                <attribute name="mediathumbnail" type="mediathumbnail">
                  <object type="mediathumbnail">
                    <attribute name="url" type="url">
                      <object type="url">
                        <attribute name="scheme" type="string">http</attribute>
                        <attribute name="host" type="string">www.example.com</attribute>
                        <attribute name="path" type="string">/thumb.gif</attribute>
                      </object>
                    </attribute>
                    <attribute name="width" type="integer">50</attribute>
                    <attribute name="height" type="integer">50</attribute>
                  </object>
                </attribute>
                <attribute name="mediatext" type="array">
                  <attribute name="0" type="string">This is a MediaRSS test enclosure</attribute>
                </attribute>
              </object>
            </attribute>
            <attribute name="title" type="string">Sample entry number one</attribute>
            <attribute name="link" type="url">
              <object type="url">
                <attribute name="scheme" type="string">http</attribute>
                <attribute name="host" type="string">negative-infinity.de</attribute>
                <attribute name="path" type="string">/rss/sample.htm</attribute>
                <attribute name="fragment" type="string">1</attribute>
              </object>
            </attribute>
            <attribute name="description" type="string">This is just a sample news item.</attribute>
            <attribute name="author" type="email">
              <object type="email">
                <attribute name="address" type="string">hide@address.com</attribute>
                <attribute name="recipient" type="string">Gordon Oheim</attribute>
              </object>
            </attribute>
            <attribute name="category" type="array">
              <object type="category">
                <attribute name="title" type="string">RSS Feed</attribute>
                <attribute name="domain" type="string">Computer/Programming/XML/RSS/</attribute>
              </object>
            </attribute>
            <attribute name="comments" type="url">
              <object type="url">
                <attribute name="scheme" type="string">http</attribute>
                <attribute name="host" type="string">dynamicnetworks.de</attribute>
                <attribute name="path" type="string">/rss/comments/proc.php</attribute>
                <attribute name="query" type="string">id=samplefeed</attribute>
              </object>
            </attribute>
            <attribute name="enclosure" type="array">
              <object type="enclosure">
                <attribute name="url" type="url">
                  <object type="url">
                    <attribute name="scheme" type="string">http</attribute>
                    <attribute name="host" type="string">dynamicnetworks.de</attribute>
                    <attribute name="path" type="string">/rssframework/docs/framework_api.zip</attribute>
                  </object>
                </attribute>
                <attribute name="length" type="integer">4096</attribute>
                <attribute name="type" type="string">application/zip</attribute>
              </object>
            </attribute>
            <attribute name="guid" type="guid">
              <object type="guid">
                <attribute name="guid" type="string">http://negative-infinity.de/rss/sample.htm#1</attribute>
                <attribute name="isPermaLink" type="boolean">1</attribute>
              </object>
            </attribute>
            <attribute name="pubDate" type="string">Tue, 29 Mar 2005 09:03:24 +0200</attribute>
            <attribute name="source" type="url">
              <object type="url">
                <attribute name="scheme" type="string">http</attribute>
                <attribute name="host" type="string">dynamicnetworks.de</attribute>
              </object>
            </attribute>
          </object>
          <object type="item">
            <attribute name="title" type="string">Sample entry number two</attribute>
            <attribute name="link" type="url">
              <object type="url">
                <attribute name="scheme" type="string">http</attribute>
                <attribute name="host" type="string">negative-infinity.de</attribute>
                <attribute name="path" type="string">/rss/sample.htm</attribute>
                <attribute name="fragment" type="string">2</attribute>
              </object>
            </attribute>
            <attribute name="description" type="string">This is just another sample news item.</attribute>
            <attribute name="author" type="email">
              <object type="email">
                <attribute name="address" type="string">hide@address.com</attribute>
                <attribute name="recipient" type="string">Gordon Oheim</attribute>
              </object>
            </attribute>
            <attribute name="category" type="array">
              <object type="category">
                <attribute name="title" type="string">RSS Feed</attribute>
                <attribute name="domain" type="string">Computer/Programming/XML/RSS/</attribute>
              </object>
            </attribute>
            <attribute name="comments" type="url">
              <object type="url">
                <attribute name="scheme" type="string">http</attribute>
                <attribute name="host" type="string">dynamicnetworks.de</attribute>
                <attribute name="path" type="string">/rss/comments/proc.php</attribute>
                <attribute name="query" type="string">id=samplefeed</attribute>
              </object>
            </attribute>
            <attribute name="enclosure" type="array"/>
            <attribute name="guid" type="guid">
              <object type="guid">
                <attribute name="guid" type="string">http://negative-infinity.de/rss/sample.htm#2</attribute>
                <attribute name="isPermaLink" type="boolean">1</attribute>
              </object>
            </attribute>
            <attribute name="pubDate" type="string">Tue, 29 Mar 2005 09:03:24 +0200</attribute>
            <attribute name="source" type="url">
              <object type="url">
                <attribute name="scheme" type="string">http</attribute>
                <attribute name="host" type="string">dynamicnetworks.de</attribute>
              </object>
            </attribute>
          </object>
        </attribute>
      </object>
    </attribute>
  </object>
</dump>
Return current item: RSS Framework for PHP