Re: xml_parse() - Accessing attributes of empty elements

From: Date: Mon, 24 Jul 2000 20:52:51 +0000
Subject: Re: xml_parse() - Accessing attributes of empty elements
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-7967@lists.php.net to get a copy of this message
> > I am currently writing a script using the xml_parse functions of PHP3. > > Now how do I access attributes of empty elements? > > > > For example: > > <ELEMENT ATTR="test"/> > > > > Using the endElement function of > > xml_set_element_handler(parser,startElement,endElement) I cannot read any > > attribute, because the function is not passed an $attrs like "startElement". > > It can be fetched with the startElement() function. See example 3 in the > docs. > > -Egon OK sorry I had had a problem with that which seems to have disappeared now... thanks Mike

« previous php.general (#7967) next »