Re: Re: DOMElement::setAttribute() manual example question
| From: | Rob | Date: | Fri, 03 Mar 2006 19:04:44 +0000 |
| Subject: | Re: Re: DOMElement::setAttribute() manual example question | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-231409@lists.php.net to get a copy of this message | ||
Gustav Wiberg wrote:
Check 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