Location: PHPKode > projects > MyOWNSpace > MyOWNspace_v8.2/www/classes/flash_mp3_player/source/doc/com_jeroenwijering_utils_XMLParser.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>XMLParser</title>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
    <link rel="stylesheet" type="text/css" href="css/VisDoc.css"/>
    <script src="js/doc.js" type="text/javascript">//</script>
  </head>
  <body pageId="Pagecom_jeroenwijering_utils_XMLParser">
    <div class="VisDoc"><span id="PageTop"><!----></span>
      <div class="content"><span class="accessKeysInfo"><span class="label"><a href="#" class="accessKeyInfoToggle" onclick="toggleAccessKeyInfo(); return true;">Access keys</a></span><span class="accessKeyLinks" style="display:none;"><a href="#PageTop" accesskey="t">T</a>op, <a href="#Summary" accesskey="s">S</a>ummary, <a href="#Constructor" accesskey="c">C</a>onstructors, 
Instance <a href="#Instanceproperties" accesskey="p">p</a>roperties, 
Instance <a href="#Instancemethods" accesskey="m">m</a>ethods, <a href="#Eventhandlers" accesskey="e">E</a>vent handlers</span></span><h1>XMLParser</h1>
        <div class="classProperties">
          <table cellspacing="0">
            <tr>
              <th>Kind of class:</th>
              <td>class</td>
            </tr>
            <tr>
              <th>Inherits from:</th>
              <td>none</td>
            </tr>
            <tr>
              <th class="classDetails">Version:</th>
              <td class="classDetails">1.13</td>
            </tr>
            <tr>
              <th class="classDetails">Author:</th>
              <td class="classDetails">Jeroen Wijering</td>
            </tr>
            <tr>
              <th class="classDetails">Classpath:</th>
              <td class="classDetails">com.jeroenwijering.utils.XMLParser</td>
            </tr>
            <tr>
              <th class="classDetails">File last modified:</th>
              <td class="classDetails">Tuesday, 07 November 2006, 14:03:34</td>
            </tr>
          </table>
        </div>
        <div class="classDescription">
          <div class="descriptionSummary">Parses RSS, XSPF and general XML lists and returns it as an array.</div> <br /><br /> RSS and XSPF are returned in a numerical array with these items:<br /> [title,author,file,link,image,category,id,start(XSPF),end(XSPF),description(RSS),date(RSS),latitude(RSS),longitude(RSS)]<br /><br /> Other XML lists (1 or 2 levels deep) are loaded 1 on 1 into the array. <br /><br /> An onParseComplete event is broadcasted upon succesful completion.<div class="classFields">
            <div class="boxWithBorder">
              <div class="boxedElem">
                <div class="contentHolder"><span class="title">Example:</span><div class="item">parseObj = new com.jeroenwijering.utils.XMLParser();<br /> parseObj.onParseComplete = function() { trace(this.parseArray.length); };<br /> parseObj.parse("<a href="http://www.jeroenwijering.com/rss">http://www.jeroenwijering.com/rss</a>/");</div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="summary hasBottomDivider">
          <h2 class="hasBottomDivider"><span id="Summary">Summary</span></h2>
          <div class="methodList">
            <div class="methodSummaryPart"><span class="title">Constructor</span><ul>
                <li>
                  <a href="#XMLParser">XMLParser</a>
                </li>
              </ul>
            </div>
            <div class="methodSummaryPart"><span class="title">Instance properties</span><ul>
                <li>
                  <a href="#parseArray">parseArray</a>
                </li>
              </ul>
            </div>
            <div class="methodSummaryPart"><span class="title">Instance methods</span><ul>
                <li>
                  <a href="#parse">parse</a>
                </li>
              </ul>
            </div>
            <div class="methodSummaryPart"><span class="title">Event handlers</span><ul>
                <li>
                  <a href="#onParseComplete">onParseComplete</a>
                </li>
              </ul>
            </div>
          </div>
        </div>
        <div class="methodSection">
          <h2 class="hasBottomDivider"><span id="Constructor">Constructor</span></h2>
          <div class="method hasBottomDivider">
            <h3 id="XMLParser">XMLParser</h3>
            <div class="fullMemberString">
              <div class="clearfix floatholder">
                <div class="floatbox code">function <b>XMLParser</b> (
</div>
                <div><span class="code">)</span></div>
              </div>
            </div>
            <div class="description">Nothing there.</div>
          </div>
        </div>
        <div class="methodSection">
          <h2 class="hasBottomDivider"><span id="Instanceproperties">Instance properties</span></h2>
          <div class="method hasBottomDivider">
            <h3 id="parseArray">parseArray</h3>
            <div class="fullMemberString">
              <div class="clearfix floatholder">
                <div class="floatbox code"><b>parseArray</b>:Array
</div>
                <div><span class="access">(read,write)</span></div>
              </div>
            </div>
            <div class="description">The array the XML is parsed into</div>
          </div>
        </div>
        <div class="methodSection">
          <h2 class="hasBottomDivider"><span id="Instancemethods">Instance methods</span></h2>
          <div class="method hasBottomDivider">
            <h3 id="parse">parse</h3>
            <div class="fullMemberString">
              <div class="clearfix floatholder">
                <div class="floatbox code">function <b>parse</b> (

</div>
                <div><span class="code">url:String,
rst:Array) : Void</span></div>
              </div>
            </div>
            <div class="description">Parse an XML list.</div>
            <div class="boxWithBorder">
              <div class="boxedElem">
                <div class="contentHolder"><span class="title">Parameters:</span><div class="item">
                    <div class="floatbox code colorizedCode">url<span class="itemSeparator">:</span></div>
                    <div>URL of the playlist that should be parsed.</div>
                  </div>
                  <div class="item">
                    <div class="floatbox code colorizedCode">rst<span class="itemSeparator">:</span></div>
                    <div>Optional filetypes the parser should restrict to (eg: ['.mp3','.jpg']).</div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="methodSection">
          <h2 class="hasBottomDivider"><span id="Eventhandlers">Event handlers</span></h2>
          <div class="method hasBottomDivider">
            <h3 id="onParseComplete">onParseComplete</h3>
            <div class="fullMemberString">
              <div class="clearfix floatholder">
                <div class="floatbox code">function <b>onParseComplete</b> (
</div>
                <div><span class="code">)</span></div>
              </div>
            </div>
            <div class="description">Invoked when parsing is completed.</div>
          </div>
        </div>
        <div class="footer"><span class="docFooter"><span class="createdWith">Created with <a href="http://visiblearea.com/visdoc/">VisDoc</a></span><span class="separator">|</span><span class="creationDate">Tuesday, 07 November 2006, 14:45:42</span><span class="separator">|</span><a href="#" onclick="showTOC(); return false;" class="showToc">show TOC</a><a href="#" onclick="hideTOC(); return false;" class="hideToc">hide TOC</a></span><span class="tocFooter"><a href="#" onclick="hideTOC(); return false;" class="hideToc">hide TOC</a></span>
        </div>
      </div>
    </div>
  </body>
</html>
Return current item: MyOWNSpace