[Phpxd-commits] CVS: phpXD.www/data/en readme.xml,NONE,1.1 releases.xml,NONE,1.1 index.xml,1.1,1.2 n
Status: Beta
Brought to you by:
growbal
From: Thomas D. <th...@us...> - 2002-01-28 19:37:29
|
Update of /cvsroot/phpxd/phpXD.www/data/en In directory usw-pr-cvs1:/tmp/cvs-serv17710/data/en Modified Files: index.xml navigation.xml Added Files: readme.xml releases.xml Log Message: --- NEW FILE: readme.xml --- <?xml version="1.0" encoding="iso8859-1"?> <page> <title> ReadMe </title> <content> <h1>ReadMe</h1> <h2>Preface</h2> <p>This file relates to phpXD release 0.21.</p> <h2>What is phpXMLDOM?</h2> <p>phpXMLDOM is a XML DOM-Implementation for PHP4 written in PHP. It offers methods for accessing the nodes of a XML document using the W3C Document Object Model Level 2 Core (DOM). </p> <p>The differences to the PHP DOM XML functions (only available if PHP was configured with --with-dom=[DIR]) are that phpXMLDOM implements the official W3C DOM (see http://www.w3.org/DOM/) and that you do not need to recompile PHP to use phpXMLDOM. </p> <h2>Requirements</h2> <ul> <li>PHP 4.0.5 (or higher)</li> <li>PHP XML extension (configure PHP using --with-xml)</li> </ul> <h2>Features</h2> <p>Currently phpXMLDOM supports nearly all interfaces of DOM Level 2. Not supported are:</p> <ul> <li>Entity</li> <li>EntityReference</li> </ul> <p>DocumentType is still bad implemented, because the DTD of a XML file is not parsed. Only name, publicID, systemID and the internalSubset attribute are supported. If you load a XML file with a internal DTD and change the node tree, phpXMLDOM keeps the original DTD if you will save the file.</p> <p>Because PHP4 doesn't support exceptions, the DOMException interface is not really implemented. Instead of this, ExceptionCodes are defined. The functions which normally would like to raise a exception, returns an ExceptionCode.</p> <h2>Using phpXMLDOM</h2> <p>First, create a phpXD object:</p> <pre>$dom = new phpXD();</pre> <p>If you specify a XML file as the first parameter of the constructor, the file will be parsed and the DOM tree created:</p> <pre>$dom = new phpXD("sample.xml");</pre> <p>You can load a XML file with</p> <pre>$dom->loadFile("sample.xml");</pre> <p>To access the DOM tree, use the document attribute, e.g.:</p> <pre>$list =& $dom->document->getElementsByTagName("hello");</pre> <p>You can get the root node with</p> <pre>$root =& $dom->document->getDocumentElement();</pre> <p>Be sure, that you use "=&", if a function returns a DOM object, because PHP copies all objects with "=", while the "=&" operator saves a reference. Because the DOM tree is a list of references, only one "=" could destroy the hierarchy of the tree.</p> <p>For more informations about the DOM interfaces see: http://www.w3.org/DOM/</p> <p>Last but not least, you can save the DOM tree:</p> <pre>$dom->saveFile("new.xml");</pre> </content> </page> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-namecase-general:t sgml-general-insert-case:lower sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:2 sgml-indent-data:t sgml-parent-document:nil sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: --> --- NEW FILE: releases.xml --- <?xml version="1.0" encoding="iso8859-1"?> <page> <title> Releases </title> <content> <h1>Releases</h1> <h2>Current Release: phpXD 0.21</h2> <h3>Release Notes</h3> <ul> <li>Now all classes have a source documentation in PHPDoc style (see <a href="http://www.callowayprints.com/phpdoc/"> http://www.callowayprints.com/phpdoc/</a>). With this the class documentation is created in doc/.</li> <li>Loading big xml-files tooks really long. The reason was the function uniqid() in Node(), which is now replaced by a combination of microtime() and rand(). I hope this is unique enough. ;=)</li> <li>Some litte bugs fixed...</li> </ul> <h3>Files</h3> <p> <a href="http://prdownloads.sf.net/phpxd/phpxd_0.21.tar.gz"> phpxd_0.21.tar.gz </a> (Size: 51620 Bytes) </p> </content> </page> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-namecase-general:t sgml-general-insert-case:lower sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:2 sgml-indent-data:t sgml-parent-document:nil sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: --> Index: index.xml =================================================================== RCS file: /cvsroot/phpxd/phpXD.www/data/en/index.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** index.xml 2002/01/26 17:10:44 1.1 --- index.xml 2002/01/28 19:37:26 1.2 *************** *** 5,18 **** </title> <content> <p> ! This page is currently offline. Please take a look at the ! <a href="http://sf.net/projects/phpxd">project site at ! Sourceforge. </a> </p> <p> ! <a href="http://sourceforge.net"><img ! src="http://sourceforge.net/sflogo.php?group_id=29609" ! width="88" height="31" alt="SourceForge" /></a> </p> </content> </page> --- 5,46 ---- </title> <content> + <h1>phpXMLDOM</h1> <p> ! phpXMLDOM (phpXD) is a XML DOM-Implementation for PHP4 written ! in PHP. It offers methods for accessing the nodes of a XML ! document using the W3C Document Object Model (DOM) Level 2 ! Core. </p> + <p> ! phpXMLDOM and all associated files are released unter the ! <a href="http://www.gnu.org/licenses/gpl.html">GNU Public ! License (GPL)</a>. </p> + + <h2>Releases</h2> + <p> + The current release is 0.21, see + <a href="$URL$$SESSION_ID$releases">Releases</a>. There is a + short <a href="$URL$$SESSION_ID$readme">ReadMe</a> and some + <a href="http://phpxd.sourceforge.net/doc/index.html">API + Documentation</a>. + </p> + + <h2>Contact</h2> + <p> + If you found a bug or would like to help developing phpXMLDOM, + please send an email to <a href="mailto:th...@do...">Thomas + Dohmke</a>. + </p> + + <h2>Sourceforge</h2> + <p> + phpXMLDOM ist hosted at <a href="http://sf.net/projects/phpxd"> + Sourceforge</a>. + </p> + <a href="http://sourceforge.net"><img + src="http://sourceforge.net/sflogo.php?group_id=29609" + width="88" height="31" alt="SourceForge" /></a> </content> </page> Index: navigation.xml =================================================================== RCS file: /cvsroot/phpxd/phpXD.www/data/en/navigation.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** navigation.xml 2002/01/26 17:10:44 1.1 --- navigation.xml 2002/01/28 19:37:26 1.2 *************** *** 6,22 **** </li> <li> ! <!--<a href="$URL$$SESSION_ID$sourceforge">phpXMLDOM on Sourceforge</a>--> ! <a href="http://sf.net/projects/phpxd/">phpXMLDOM on Sourceforge</a> ! <ul class="navbar"> ! <li> ! <a href="http://sf.net/projects/phpxd">Summary</a> </li> <li> ! <a href="http://sourceforge.net/project/showfiles.php?group_id=29609">Files</a> </li> <li> ! <a href="http://sourceforge.net/docman/?group_id=29609">Docs</a> </li> ! </ul> </li> </ul> --- 6,19 ---- </li> <li> ! <a href="$URL$$SESSION_ID$releases">Releases</a> </li> <li> ! <a href="$URL$$SESSION_ID$readme">ReadMe</a> </li> <li> ! <a href="http://phpxd.sourceforge.net/doc/index.html">API Documentation</a> </li> ! <li> ! <a href="http://sf.net/projects/phpxd/">phpXMLDOM on Sourceforge</a> </li> </ul> |