note 60070 added to ref.xml
| From: | sander at gameqube dot nl | Date: | Sat, 24 Dec 2005 23:07:55 +0000 |
| Subject: | note 60070 added to ref.xml | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-100669@lists.php.net to get a copy of this message | ||
There is flaw in the xml2array function of aerik. It can extract several different nodes with the
same name, but a child element with the same name as the parent will go wrong.
For example:
<root>
<element>
<element>2</element>
</element>
</root>
The value of the first 'element' attribute will be '<element>2'. This is
not easily solved and personaly I didn't find a solution for this. The problem lies in the use
of the regular expression for parsing the xml document, so beware of this drawback when using this
method.
----
Manual Page -- http://www.php.net/manual/en/ref.xml.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+60070
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+60070&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+60070&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+60070&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+60070&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+60070&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+60070&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+60070&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+60070&report=yes
Search -- http://master.php.net/manage/user-notes.php