[Phpxd-commits] CVS: phpXD sample.php,1.2,1.3 sample.xml,1.2,1.3
Status: Beta
Brought to you by:
growbal
From: Thomas D. <th...@us...> - 2001-07-11 21:53:40
|
Update of /cvsroot/phpxd/phpXD In directory usw-pr-cvs1:/tmp/cvs-serv9428 Modified Files: sample.php sample.xml Log Message: Index: sample.php =================================================================== RCS file: /cvsroot/phpxd/phpXD/sample.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** sample.php 2001/07/11 21:35:25 1.2 --- sample.php 2001/07/11 21:53:37 1.3 *************** *** 171,178 **** $dom = new phpXD("sample.xml"); - $dom->document->documentElement->appendChild($dom->document->createTextNode("a")); - $dom->document->documentElement->appendChild($dom->document->createTextNode(" ")); - $dom->document->documentElement->appendChild($dom->document->createTextNode("b")); - $dom->document->documentElement->normalize(); echoTree($dom->document); --- 171,174 ---- Index: sample.xml =================================================================== RCS file: /cvsroot/phpxd/phpXD/sample.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** sample.xml 2001/07/11 21:35:25 1.2 --- sample.xml 2001/07/11 21:53:37 1.3 *************** *** 1,9 **** <?xml version="1.0"?> ! <dc:hello xmlns:dc="http://www.w3.org/XML/1998/namespace"> This is a phpXD sample dokument. Here are some sample XML features. ! <dc:a_child> Hello World. ! </dc:a_child> <an_empty_child /> <!-- This is a comment... --> --- 1,9 ---- <?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... --> *************** *** 13,15 **** echo "PHP is cool"; ?> ! </dc:hello> --- 13,15 ---- echo "PHP is cool"; ?> ! </hello> |