Re: Re: DOMElement::setAttribute() manual example question
| From: | Gustav Wiberg | Date: | Fri, 03 Mar 2006 20:02:23 +0000 |
| Subject: | Re: Re: DOMElement::setAttribute() manual example question | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-231412@lists.php.net to get a copy of this message | ||
----- Original Message ----- From: "Rob" <rrichards@ctindustries.net>
To: "Gustav Wiberg" <gustav@varupiraten.se>
Cc: "Andreas Korthaus" <akorthaus@web.de>; <php-general@lists.php.net>
Sent: Friday, March 03, 2006 8:04 PM
Subject: Re: [PHP] Re: DOMElement::setAttribute() manual example question
Gustav Wiberg wrote:/GCheck out: http://de3.php.net/manual/en/function.dom-domdocument-createelement.php ( This function creates a new instance of class DOMElement. This node will not show up in the document unless it is inserted with e.g. DOMNode->appendChild().) I really don't understand WHY your next example is working...Every example so far has called appendChild(). The only difference has been when at which point it is called to append the element and how the element to append has been created. Rob Maybe it is so that the objects propertys is created in a certain order undependet of the script order?