Re: [xml] Behaviour of xmlNodeAddContent() vs. xmlNodeSetContent()

On Wed, Oct 25, 2006 at 11:33:39AM +0200, Keim, Markus wrote:
So, the question: Am I simply wrong in using these calls,
or is it really an issue within libxml2?

  Well I think you're wrong in your expectation that both calls will
work the same way. xmlNodeAddContent really just does a concatenation
at the string level as its documenation implies

   "Append the extra substring to the node content."

while xmlNodeSetContent is more complex trying to process embbeded
entities references.

  Trying to change their behaviour sounds dangerous to me.


Red Hat Virtualization group
Daniel Veillard      | virtualization library
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]