Hello Adam,

Wednesday, January 7, 2004, 10:54:24 PM, you wrote:

> On Wed, 7 Jan 2004, Blake Schwendiman wrote:

>> Note that the embedded <i></i> text is missing.  Internally, the cast is
>> made using the xmlNodeListGetString function.  Is there any reason that
>> it makes more sense to do that rather than use the xmlNodeGetContent
>> function.  The latter function returns the complete text.  I am a newbie
>> to most of this, so there may be many reasons for the choice.

> I would say this is a bug and we should switch to xmlNodeGetContent
> instead.

From my opinion the current behavior is perfect because i see simplexml from
an xml developers side and not from an html developers side. The former must
typically know exactly where his strings comme from while the latter has
only text to deal with and often has situations where he needs to filter out
formatting tags like the <i> in the example.

So i'd say let us add a method for returning the complete content. Adam
could you do that?


Best regards,
 Marcus                            mailto:[EMAIL PROTECTED]

Reply via email to