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.
xml and php
Moderator: General Moderators
-
yasercomeng
- Forum Newbie
- Posts: 2
- Joined: Sun Jan 04, 2009 1:58 am
xml and php
- Attachments
-
- xmlhandler.rar
- (1.17 KiB) Downloaded 8 times
Re: xml and php
Have you tried PHP's ready made xml parser?
-
yasercomeng
- Forum Newbie
- Posts: 2
- Joined: Sun Jan 04, 2009 1:58 am
Re: xml and php
yes.if you remove my encapsulate structure and use methods lonely,this code work correctly.