cvs: phpdoc /en/reference/dom/domattr construct.xml
| From: | Damien Seguy | Date: | Tue, 09 Jun 2009 11:25:00 +0000 |
| Subject: | cvs: phpdoc /en/reference/dom/domattr construct.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-4130@lists.php.net to get a copy of this message | ||
dams Tue Jun 9 11:25:00 2009 UTC
Modified files:
/phpdoc/en/reference/dom/domattr construct.xml
Log:
upgrade example
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/dom/domattr/construct.xml?r1=1.5&r2=1.6&diff_format=u
Index: phpdoc/en/reference/dom/domattr/construct.xml
diff -u phpdoc/en/reference/dom/domattr/construct.xml:1.5
phpdoc/en/reference/dom/domattr/construct.xml:1.6
--- phpdoc/en/reference/dom/domattr/construct.xml:1.5 Mon Jun 8 21:01:21 2009
+++ phpdoc/en/reference/dom/domattr/construct.xml Tue Jun 9 11:24:59 2009
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<refentry xml:id='domattr.construct' xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>DOMAttr::__construct</refname>
@@ -14,8 +14,9 @@
</methodsynopsis>
<para>
Creates a new DOMAttr object. This object is read only.
- It may be appended to a document, but additional nodes may not be appended to this node until
- the node is associated with a document. To create a writable node, use
+ It may be appended to a document, but additional nodes may
+ not be appended to this node until the node is associated
+ with a document. To create a writable node, use
<xref linkend="domdocument.createattribute" />.
</para>
</refsect1>
@@ -46,7 +47,7 @@
&reftitle.examples;
<para>
<example>
- <title>Creating a new DOMAttr</title>
+ <title>Creating a new <classname>DOMAttr</classname> object</title>
<programlisting role="php">
<![CDATA[
<?php
@@ -54,11 +55,18 @@
$dom = new DOMDocument('1.0', 'iso-8859-1');
$element = $dom->appendChild(new DOMElement('root'));
$attr = $element->setAttributeNode(new DOMAttr('attr', 'attrvalue'));
-echo $dom->saveXML(); /* <?xml version="1.0"
encoding="iso-8859-1"?><root attr="attrvalue" /> */
+echo $dom->saveXML();
?>
]]>
</programlisting>
+ &example.outputs;
+ <screen>
+<![CDATA[
+<?xml version="1.0" encoding="iso-8859-1"?>
+<root attr="attrvalue" />
+]]>
+ </screen>
</example>
</para>
</refsect1>