From 4311c9643740a347c8786dbb926e274ed3cfa73b Mon Sep 17 00:00:00 2001 From: Damien Seguy Date: Tue, 9 Jun 2009 11:24:59 +0000 Subject: [PATCH] upgrade example git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@281866 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/dom/domattr/construct.xml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/reference/dom/domattr/construct.xml b/reference/dom/domattr/construct.xml index 7e0e106d85..ccff42de68 100644 --- a/reference/dom/domattr/construct.xml +++ b/reference/dom/domattr/construct.xml @@ -1,5 +1,5 @@ - + DOMAttr::__construct @@ -14,8 +14,9 @@ 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 . @@ -46,7 +47,7 @@ &reftitle.examples; - Creating a new DOMAttr + Creating a new <classname>DOMAttr</classname> object appendChild(new DOMElement('root')); $attr = $element->setAttributeNode(new DOMAttr('attr', 'attrvalue')); -echo $dom->saveXML(); /* */ +echo $dom->saveXML(); ?> ]]> + &example.outputs; + + + +]]> +