101 reputation
1
bio website rwec.co.uk
location
age
visits member for 1 year, 5 months
seen yesterday

My main presence on this site seems to be correcting people's misunderstandings of PHP's SimpleXML module.

People jump through tortuous hoops, switching to DOM, using XPath, setting LIBXML settings, and 90% of the time, this is because they don't know how to use it, not because it doesn't work.

The top 3:

  • Never print_r() or var_dump() SimpleXML data, or you will be more confused than when you started. I have written some debug functions to use instead.
  • There is nothing wrong with CDATA sections in SimpleXML. Just always cast to string.
  • Namespaces are really easy - just use the ->children() method.

This user has not answered any questions
This user has not asked any questions
This user has not participated in any tags
Stack Overflow 16,025 rep 31626
Ask Ubuntu 343 rep 15
Server Fault 103 rep 4
Super User 101 rep 1
Meta Stack Exchange 101 rep 1

4 Votes Cast

all time   by type  
4 up 0 question
0 down 4 answer