[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-cvs
Subject:    [DOC-CVS] [doc-en] master: SimpleXMLElement::children() returns null for attribute nodes
From:       "Christoph M. Becker" <noreply () php ! net>
Date:       2022-01-20 10:59:00
Message-ID: u9Tvute416WlVXfxXcrCxB6gqX11xMC1GJZ4qKqx0w () main ! php ! net
[Download RAW message or body]

Author: Christoph M. Becker (cmb69)
Date: 2022-01-20T12:00:39+01:00

Commit: https://github.com/php/doc-en/commit/1ceec35d4df77a07a473f1e794bb0fae85046069
Raw diff: https://github.com/php/doc-en/commit/1ceec35d4df77a07a473f1e794bb0fae85046069.diff


SimpleXMLElement::children() returns null for attribute nodes

Changed paths:
  M  reference/simplexml/simplexmlelement/children.xml


Diff:

diff --git a/reference/simplexml/simplexmlelement/children.xml \
b/reference/simplexml/simplexmlelement/children.xml index 90e6194fd66..6b9f7c695ff \
                100644
--- a/reference/simplexml/simplexmlelement/children.xml
+++ b/reference/simplexml/simplexmlelement/children.xml
@@ -51,7 +51,8 @@
   &reftitle.returnvalues;
   <para>
    Returns a <classname>SimpleXMLElement</classname> element, whether the node 
-   has children or not.
+   has children or not, unless the node represents an attribute, in which case
+   &null; is returned.
   </para>
  </refsect1>
 

-- 
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic