Page 1 of 1

xml and php

Posted: Sun Jan 04, 2009 2:07 am
by yasercomeng
hi guys. I have a problem in php to parse my config.xml file. this file(config.xml) is represented in below.
I wrote a class to parse this file but my class didn’t work at all. the class code is on below,too.
I wrote a program to parse this file,too and this program work correctly but in class approach it doesn’t work. I want to know where is my fault. please check it and tell your opinion on it.

Re: xml and php

Posted: Mon Jan 05, 2009 6:40 pm
by it2051229
Have you tried PHP's ready made xml parser?

Re: xml and php

Posted: Mon Jan 12, 2009 1:44 am
by yasercomeng
yes.if you remove my encapsulate structure and use methods lonely,this code work correctly.