Re: [xml] xmlSplitQName2 problem and patch
- From: Daniel Veillard <veillard redhat com>
- To: Aleksey Sanin <aleksey aleksey com>
- Cc: xml <xml gnome org>
- Subject: Re: [xml] xmlSplitQName2 problem and patch
- Date: Wed, 18 Feb 2004 04:28:03 -0500
On Tue, Feb 17, 2004 at 04:17:44PM -0800, Aleksey Sanin wrote:
Daniel,
I think I found a small problem with xmlSplitQName2() function and I would
lake to confirm with you that this is actually a bug. The
xmlSplitQName2() function
returns NULL when QName does not have a prefix and this sounds wrong to me.
No, it's really on purpose. The goal is to minimize string allocations,
if the argument passed is an NCName, then no new string will be allocated.
The client code might be slightly more complex as a result but string
allocations and freeing is really very costly, so I try to avoid it as
much as possible, that's why I designed the function that way.
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]