Menu

Tree [r840] / branches / Release-4-3-2 / php-java-bridge / examples / XML /
 History

HTTPS access


File Date Author Commit
 DTD 2007-12-09 jost_boekemeier [r596] Release-4-3-2
 README 2005-08-14 jost2345 [r322] Release-2.0.8-pre2
 ellipse.php 2007-03-09 andremachado [r489] Files update 3.2.2 to 4.0.1. Extracted from the...
 html_to_text.php 2007-03-09 andremachado [r489] Files update 3.2.2 to 4.0.1. Extracted from the...
 phpinfo.xml 2007-12-09 jost_boekemeier [r596] Release-4-3-2

Read Me

The examples in this directory show how to work with XML.

* html_to_text.php: Shows how to write PHP callbacks for a SAX
  parser. It captures the HTML output generated by the php cgi binary
  and uses the php callbacks to convert it into a text document. This
  example requires PHP 5. It might be possible to adapt the php code for
  PHP 4, but it will be slow because PHP 4 passes objects as values.
  In php4 the function:
    function characters ($chars, $start, $length)
    {
      $s = new java("java.lang.String", $chars, $start, $length);
      echo $s->toString();
    }
  would receive the entire document in $chars (as an array) just to
  send it back in the next call to create a sub-string.

* ellipse.php: Creates a SVG picture in the current directory.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.