<?php

class XBEL_Bookmark
{
  /**
   * The containing document.
   * @var object
   * @access public
   */
  var $document;

  /**
   * Description of the Variable
   * @var		mixed
   * @access	public
   */
  var $title;

  /**
   * Description of the Variable
   * @var		double
   * @access	public
   */
  var $desc;

  /**
   * Application specific meta data for this bookmark.
   * @var array
   * @access public
   */
  var $info;

  function XBEL_Bookmark(&$document, $attrs, $title, $desc = null)
  {
    $this->document = $document;
  }

  function to_string($depth = 0)
  {
    $xml = str_repeat('  ', $depth) . "<bookmark";

    foreach ($this->attrs as $attr_name => $attr_value)
      $xml .= " $attr_name='$attr_value'";

    $xml .= ">\n";

    $depth++;

    $xml .= str_repeat('  ', $depth) . "<title>{$this->title}</title>\n";

    if ($this->desc != null)
      $xml .= str_repeat('  ', $depth) . "<desc>{$this->desc}</desc>\n";

    foreach ($this->info as 
  }
}

class XBEL_Folder
{
}

/**
 * An XML bookmarks collection in the XBEL XML dialect.
 *
 * @author Rowan Rodrik van der Molen <bigsmoke@nodiscipline.net>
 * @copyright Copyright &copy; 2003-2004 NoDiscipline.Net
 * @licence http://opensource.org/licenses/gpl-license.php GNU Public Licence v2
 */
class XBEL_Document
{
  /**
   * The Expat XML parser.
   * @var resource
   * @access private 
   */
  var $_parser;

  /**
   * Description of the Variable
   * @var		mixed
   * @access	private
   */
  var $_folders;

  /**
   * Default constructor.
   */
  function XBEL_Document()
  {
    $this->_parser = xml_parser_create();

    xml_set_object($this->_parser)
    xml_set_element_handler($this->_parser, "_tag_open", "_tag_close");
  }

  /**
   * Handle tag open event.
   */
  function _tag_open($parser, $name, $attrs)
  {
  }

  /**
   * Handle tag close event.
   */
  function _tag_close($parser, $name)
  {
  }
}


?>
