Huh - I guess it could be useful. I still think this should be an option 
you could set with xml_parser_set_option(), or something.

In case anyone is interested, I solved the problem by creating a new 
global variable, $previousTag. Each time my character parsing function 
is called, it compares the previous tag to the current tag. If they are 
the same, the data gets stuffed into a buffer; if they are different, 
the buffer is returned, cleared, and the new data stuffed into it...and 
$previousTag is set to the current tag.


Ben

On Wednesday, January 2, 2002, at 06:41 PM, Matthew Clark wrote:

> well thats just the way XML parsers work, according to the parser, what 
> you
> have there is not a single string element, you have three child elements
> (the parent node being the <title>).. two string nodes broken up by an
> entity node.  In other circumstances, this behaviour can be very useful.
>
> Matt.
>
>
> -----Original Message-----
> From: Ben Gollmer [mailto:[EMAIL PROTECTED]]
> Sent: 02 January 2002 23:16
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] XML Parsing Problem
>
>
> Ok, I can understand the predefined entity replacement. But why does it
> break the string up into 3 parts? I think it should just return
> "Follow-up To Critique of BeOS &amp; Mac OS X".
>
> Ben
>
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to