Php wrapper class for XML
Posted
by gms8994
on Stack Overflow
See other posts from Stack Overflow
or by gms8994
Published on 2010-04-06T13:31:44Z
Indexed on
2010/04/07
18:53 UTC
Read the original article
Hit count: 288
I'm working on a new class to wrap XML handling. I want my class to use simplexml if it's installed, and the built in XML functions if it's not. Can anyone give me some suggestions on a skeleton class to do this? It seems "wrong" to litter each method with a bunch of if statements, and that also seems like it would make it nearly impossible to correctly test.
Any upfront suggestions would be great!
EDIT: I'm talking about these built-in xml functions.
© Stack Overflow or respective owner