kennyt Sun Jul 18 13:02:11 2004 EDT
Modified files:
/phpdoc/en/reference/simplexml reference.xml
Log:
fixed path and changed to using an existing element
# manicdepressive at mindless dot com
http://cvs.php.net/diff.php/phpdoc/en/reference/simplexml/reference.xml?r1=1.11&r2=1.12&ty=u
Index: phpdoc/en/reference/simplexml/reference.xml
diff -u phpdoc/en/reference/simplexml/reference.xml:1.11
phpdoc/en/reference/simplexml/reference.xml:1.12
--- phpdoc/en/reference/simplexml/reference.xml:1.11 Mon May 24 17:40:20 2004
+++ phpdoc/en/reference/simplexml/reference.xml Sun Jul 18 13:02:11 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.11 $ -->
+<!-- $Revision: 1.12 $ -->
<reference id="ref.simplexml">
<title>SimpleXML functions</title>
<titleabbrev>SimpleXML</titleabbrev>
@@ -207,7 +207,7 @@
include 'example.php';
$xml = simplexml_load_string($xmlstr);
-$xml->movie[0]->actor[0]->age = '21';
+$xml->movie[0]->characters->character[0]->name = 'Miss Coder';
echo $xml->asXML();
?>
@@ -215,7 +215,7 @@
</programlisting>
<simpara>
The above code will output a new XML document, just like the original,
- except that the new XML will define Ms. Coder's age as 21.
+ except that the new XML will change Ms. Coder to Miss Coder.
</simpara>
</example>
</para>