xml and php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
yasercomeng
Forum Newbie
Posts: 2
Joined: Sun Jan 04, 2009 1:58 am

xml and php

Post 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.
Attachments
xmlhandler.rar
(1.17 KiB) Downloaded 8 times
User avatar
it2051229
Forum Contributor
Posts: 312
Joined: Tue Dec 25, 2007 8:34 pm

Re: xml and php

Post by it2051229 »

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

Post by yasercomeng »

yes.if you remove my encapsulate structure and use methods lonely,this code work correctly.
Post Reply