PHP Classes

ParseStream

Recommend this page to a friend!

      Generic XML parser class  >  All threads  >  ParseStream  >  (Un) Subscribe thread alerts  
Subject:ParseStream
Summary:How to use ParseStream
Messages:2
Author:Renier Vermaak
Date:2008-02-20 16:01:41
Update:2008-02-21 21:21:37
 

  1. ParseStream   Reply   Report abuse  
Picture of Renier Vermaak Renier Vermaak - 2008-02-20 16:01:41
How to work with ParseStream?
When i call this function instead of XMLParseFile i get the following error:

Call to undefined function: parsestream()

Can you give me an example?

Thanks

  2. Re: ParseStream   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-02-21 21:21:37 - In reply to message 1 from Renier Vermaak
This is class, so you need to create an object of the class before using it like this:

$parser = new xml_parser_class;

The you call the ParseStream function passing the stream handler value, for instance like this:

$parser->ParseStream(fopen('http://www.phpclasses.org/browse/latest/latest.xml', 'r'));