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()orvar_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.
Mathematics
Q&A for people studying math at any level and professionals in related fields
Joined 8 months ago, last seen 2 months ago
101 reputation
1
badges
0 questions
0 answers
User Experience
Q&A for user experience researchers and experts
Joined 2 months ago, last seen 2 months ago
101 reputation
1
badges
0 questions
0 answers
Server Fault
Q&A for professional system and network administrators
Joined 1 year ago, last seen 1 month ago
101 reputation
0 questions
0 answers