In a nuthsell, SimpleXMl has two things broken:
1. Elements that represent “emtpy” tags evaluate to false. This is weird design.
2. Other elements sometimes evaluate to false due to bugs.
I covered problem #1 in the
previous post. This post is about #2.
Unfortunately, due to bugs in the SimpleXML parser, a non-empty element may evaluate to false.
(
Read more... )