cvs: presentations /slides/xmlandphp diamond.xml dom.xml domglue.xml pear.xml pear1.xml pear2.xml pearxml.php pearxmlglue.php sax.xml thoughts.xml
| From: | Sterling Hughes | Date: | Mon, 21 Apr 2003 19:56:23 +0000 |
| Subject: | cvs: presentations /slides/xmlandphp diamond.xml dom.xml domglue.xml pear.xml pear1.xml pear2.xml pearxml.php pearxmlglue.php sax.xml thoughts.xml | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-638@lists.php.net to get a copy of this message | ||
sterling Mon Apr 21 15:56:23 2003 EDT
Added files:
/presentations/slides/xmlandphp domglue.xml pear.xml pear1.xml
pear2.xml pearxml.php
pearxmlglue.php sax.xml
thoughts.xml
Modified files:
/presentations/slides/xmlandphp diamond.xml dom.xml
Log:
some mo slides fo y'all
Index: presentations/slides/xmlandphp/diamond.xml
diff -u presentations/slides/xmlandphp/diamond.xml:1.1
presentations/slides/xmlandphp/diamond.xml:1.2
--- presentations/slides/xmlandphp/diamond.xml:1.1 Sun Apr 20 20:16:30 2003
+++ presentations/slides/xmlandphp/diamond.xml Mon Apr 21 15:56:22 2003
@@ -1,5 +1,5 @@
<slide>
-<title>Final Thoughts</title>
+<title>Pour finir</title>
<blurb fontsize="3.0em">
XML is Data, Structure is Programming, A Diamond Is Forever.
</blurb>
Index: presentations/slides/xmlandphp/dom.xml
diff -u presentations/slides/xmlandphp/dom.xml:1.1 presentations/slides/xmlandphp/dom.xml:1.2
--- presentations/slides/xmlandphp/dom.xml:1.1 Sun Apr 20 20:16:30 2003
+++ presentations/slides/xmlandphp/dom.xml Mon Apr 21 15:56:22 2003
@@ -1,4 +1,10 @@
<slide>
<title>DOM</title>
-<example filename="dom.php" />
+<list>
+<bullet>Document Object Model</bullet>
+<bullet>Standard XML Structure</bullet>
+<bullet>Designed for Java, Cross-Language Standard</bullet>
+<bullet>PHP Extension uses %libXML% by Daniel Veillard</bullet>
+</list>
+
</slide>
Index: presentations/slides/xmlandphp/domglue.xml
+++ presentations/slides/xmlandphp/domglue.xml
<slide>
<title>Glue</title>
<example filename="dom.php" />
</slide>
Index: presentations/slides/xmlandphp/pear.xml
+++ presentations/slides/xmlandphp/pear.xml
<slide>
<title>XML_Parser</title>
<blurb fontsize="4.0em">
%XML_Parser% is a PEAR class that provides an Object Oriented container for event
driven parsers.
</blurb>
</slide>
Index: presentations/slides/xmlandphp/pear1.xml
+++ presentations/slides/xmlandphp/pear1.xml
<slide>
<title>Of Interfaces and Code</title>
<example filename="pearxml.php" />
</slide>
Index: presentations/slides/xmlandphp/pear2.xml
+++ presentations/slides/xmlandphp/pear2.xml
<slide>
<title>Glue</title>
<example filename="pearxmlglue.php" />
</slide>
Index: presentations/slides/xmlandphp/pearxml.php
+++ presentations/slides/xmlandphp/pearxml.php
<?php
require_once('XML/Parser.php');
class Wishlist_Item {
public $id;
public $title;
public $author;
public $desc;
}
class Wishlist extends XML_Parser {
private $curtag;
private $curitem;
public $items;
public $base;
function __construct($filename) {
$this->items = array();
$this->XML_Parser();
$this->setMode('event');
$this->setInputFile($filename);
}
function startHandler($x,
$tag,
$attr) {
switch ($tag) {
case 'WISHLIST':
$this->base = $attr['URI'];
break;
case 'ITEM':
$item = new Wishlist_Item();
$item->id = $attr['ID'];
array_push($this->items,
$item);
$this->curitem = $item;
break;
default:
$this->curtag = $tag;
break;
}
}
function endHandler($x, $tag) {
$this->curtag = null;
}
function cdataHandler($x, $data) {
$data = trim($data);
$item = $this->curitem;
switch ($this->curtag) {
case 'TITLE':
$item->title .= $data;
break;
case 'AUTHOR':
$item->author .= $data;
break;
case 'DESCRIPTION':
$item->desc .= $data;
break;
}
}
}
?>
Index: presentations/slides/xmlandphp/pearxmlglue.php
+++ presentations/slides/xmlandphp/pearxmlglue.php
<?php
require_once('pearxml.php');
$w = new Wishlist('thedata.xml');
$w->parse();
var_dump($w->items);
?>
Index: presentations/slides/xmlandphp/sax.xml
+++ presentations/slides/xmlandphp/sax.xml
<slide>
<title>SAX</title>
<list>
<bullet>~S~imple ~A~PI for ~X~ML</bullet>
<bullet>Event Driven</bullet>
<bullet>Streaming</bullet>
<bullet>Non-blocking</bullet>
<bullet>PHP Extension uses %Expat% by James Clark</bullet>
</list>
</slide>
Index: presentations/slides/xmlandphp/thoughts.xml
+++ presentations/slides/xmlandphp/thoughts.xml
<slide>
<title>Some thoughts</title>
<list fontsize="4.0em">
<bullet effect="slide">Be strict with what you produce, and liberal with what you
accept</bullet>
<bullet effect="slide">Reuse common structures where possible</bullet>
<bullet effect="slide">Its just data</bullet>
</list>
</slide>