Oh man, I am a complete idiot!! :-D
"Andrew Lindeman" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> looks like you're missing a parenthesis at the end of the xml_set
line..
>
> --Andrew
>
> On Friday 22 March 2002 03:38 pm, arti wrote:
> > So, as I unde
On Fri, Mar 22, 2002 at 04:38:12PM -0500, arti wrote :
> So, as I understand this, I should do it like this???
>
>
> class stdxml
> {
>
> function stdxml($xmlfilename)
> {
>
> $parser=xml_parser_create();
>
> xml_set_element_handler($parser, array("stdxml","startElementHandler"),
> a
looks like you're missing a parenthesis at the end of the xml_set line..
--Andrew
On Friday 22 March 2002 03:38 pm, arti wrote:
> So, as I understand this, I should do it like this???
>
>
> class stdxml
> {
>
> function stdxml($xmlfilename)
> {
>
> $parser=xml_parser_create();
>
> xm
So, as I understand this, I should do it like this???
class stdxml
{
function stdxml($xmlfilename)
{
$parser=xml_parser_create();
xml_set_element_handler($parser, array("stdxml","startElementHandler"),
array("stdxml","endElementHandler");
This yields the wonderfully helpful error:
the syntax for passing methods of static classes or objects
is
array('class', 'methdod'); // static
or
array($object, 'method'); // without and
array(&$object, 'method')) // by reference
- Markus
On Fri, Mar 22, 2002 at 04:19:42PM -0500, arti wrote :
I am very new to PHP and have what is probably a dumb question. I am
attempting to parse an XML document with a Class.
But, you have to use "xml_set_element_handler" for this to work and that
means you have to pass it the names of your element handlers. How do I do
this in a class???
For exam