Update of /cvsroot/phpxd/phpXD/samples
In directory usw-pr-cvs1:/tmp/cvs-serv12482/samples
Modified Files:
sample.php sample.xml
Log Message:
Just started the implementation of a DTD parser.
Index: sample.php
===================================================================
RCS file: /cvsroot/phpxd/phpXD/samples/sample.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** sample.php 2002/01/25 22:31:28 1.1
--- sample.php 2002/01/26 13:20:01 1.2
***************
*** 15,19 ****
* @version $Revision$
*/
! require("phpXD.php");
function echoTree(&$dom, $deep = 0) {
--- 15,19 ----
* @version $Revision$
*/
! require("../phpXD.php");
function echoTree(&$dom, $deep = 0) {
***************
*** 153,157 ****
$parser = new DOMParser();
! //echoTree($parser->parseFile("sample.xml"));
! echoTree($parser->parse("<?xml version=\"1.0\"?><hallo>Thomas</hallo>"));
?>
--- 153,157 ----
$parser = new DOMParser();
! echoTree($parser->parseFile("sample.xml"));
! /*echoTree($parser->parse("<?xml version=\"1.0\"?><hallo>Thomas</hallo>"));*/
?>
Index: sample.xml
===================================================================
RCS file: /cvsroot/phpxd/phpXD/samples/sample.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** sample.xml 2002/01/25 22:31:28 1.1
--- sample.xml 2002/01/26 13:20:01 1.2
***************
*** 1,15 ****
! <?xml version="1.0"?>
! <hello>
! This is a phpXD sample dokument.
! Here are some sample XML features.
! <a_child>
! Hello World.
! </a_child>
! <an_empty_child />
! <!-- This is a comment... -->
! <![CDATA[ ... and this a CDATA-Section ... ]]>
! <?php
! // ... and this a Processing-Instruction
! echo "PHP is cool";
! ?>
! </hello>
--- 1,16 ----
! <?xml version="1.0"?>
! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
! <hello>
! This is a phpXD sample dokument.
! Here are some sample XML features.
! <a_child>
! Hello World.
! </a_child>
! <an_empty_child />
! <!-- This is a comment... -->
! <![CDATA[ ... and this a CDATA-Section ... ]]>
! <?php
! // ... and this a Processing-Instruction
! echo "PHP is cool";
! ?>
! </hello>
\ No newline at end of file
|