tags:

views:

191

answers:

3

I am using php 5.3 but when i try read an xml using xmlparser which shows the error Fatal error: Class 'XMLParser' not found .Please help me to solve this..

A: 

This one worked like a charm for me http://www.bin-co.com/php/scripts/xml2array/

Ergec
How do you know the OP wants to convert XML to an array?
Gordon
+1  A: 

No idea what that "XMLParser" class is supposed to be, doesn't ring a bell. Use SimpleXML instead.

Josh Davis
A: 

Not sure without having seen any of your code, but my assumption is you are using

new XMLParser;

instead of

xml_parser_create();

There is no OO interface to XML Parser to my knowledge.

Gordon